From: Mark E. Lee Date: Mon, 02 Dec 2013 17:33:39 -0500 Subject: [ath9k-devel] TPlink TL-WN822Nv2 drops out connections randomly on Arch Linux with Kernel 3.12.1-3 In-Reply-To: <1386018701.12526.1.camel@melech-server.localdomain> References: <1385786446.6163.4.camel@melech-server.localdomain> <52999A53.4020102@rempel-privat.de> <1385868046.9054.5.camel@melech-server.localdomain> <529B019B.5000200@rempel-privat.de> <1386008832.2023.1.camel@melech-server.localdomain> <529CDA48.9040306@rempel-privat.de> <1386018701.12526.1.camel@melech-server.localdomain> Message-ID: <1386023619.12526.3.camel@melech-server.localdomain> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: ath9k-devel@lists.ath9k.org On Mon, 2013-12-02 at 16:11 -0500, Mark E. Lee wrote: > > > On Mon, 2013-12-02 at 20:06 +0100, Oleksij Rempel wrote: > > Am 02.12.2013 19:27, schrieb Mark E. Lee: > > > > > > > > > On Sun, 2013-12-01 at 10:30 +0100, Oleksij Rempel wrote: > > >> Finally i found a router to reproduce this or similar issue. It > > >> is dlink dir-615 H1... (there is much more problems with it) In > > >> my case it is ath9k-htc firmware issue, so it will take some > > >> time to debug it. > > >> > > >> Am 01.12.2013 04:20, schrieb Mark E. Lee: > > >>> > > >>> -----Original Message----- From: Oleksij Rempel > > >>> To: Mark E. Lee , > > >>> ath9k-devel at lists.ath9k.org Subject: Re: [ath9k-devel] TPlink > > >>> TL-WN822Nv2 drops out connections randomly on Arch Linux with > > >>> Kernel 3.12.1-3 Date: Sat, 30 Nov 2013 08:57:07 +0100 > > >>> > > >>> Am 30.11.2013 05:40, schrieb Mark E. Lee: > > >>>>> Salutations, > > >>>>> > > >>>>> I am still having an error with my TPLINK TL-WN822N V.2 > > >>>>> using Arch Linux (64bit) Kernel 3.12.1-3. This issue has > > >>>>> persisted since I got the adapter (since kernel 3.8.4). > > >>>>> When examining my network router's log, I found I was > > >>>>> getting the error: [WLAN access rejected: incorrect > > >>>>> security] > > >>>>> > > >>>>> Sometimes the usb adapter not only disconnects from the > > >>>>> internet, but it also seems to poweroff. I set up a script > > >>>>> to disable autosuspend for the usb wifi adapter and to > > >>>>> reload the ath9k_htc module (see below). This still > > >>>>> doesn't stop the adapter from turning off though. Any > > >>>>> help? > > >>>>> > > >>>>> ---- #!/bin/bash > > >>>>> > > >>>>> main() { ## main insertion function ping-daemon & ## fork > > >>>>> and run the ping daemon } > > >>>>> > > >>>>> ping-daemon() { ## daemon to ping and restart the network > > >>>>> adapter while :; do ping -c 1 192.168.1.1 &> /dev/null || > > >>>>> ( ## ping the router id="$(lsusb | awk '/TP-Link/ {print > > >>>>> $2}')"; echo "on" > \ > > >>>>> /sys/bus/usb/devices/usb${id//00/}/power/level; ## tell > > >>>>> the kernel to always leave the usb adapter on rmmod > > >>>>> ath9k_htc; ## remove the > > >>>>> wifi adapter driver modprobe ath9k_htc; ## load the wifi > > >>>>> adapter driver ) sleep 1m; ## pause for 1 minute done; } > > >>>>> > > >>>>> main; ## run the main insertion function ---- > > >>>>> > > >>>> Hi Mark, > > >>>> > > >>>> so... router decided to kick you out. Why? It has some > > >>>> security configurations which made this decision. Incorrect > > >>>> key? too many packed on different IPs? > > >>>> > > >>>> Please send your dmesg with reconnections. May be it will > > >>>> provide us some interesting info. > > >>>> > > >>>> > > >>> > > >>> Salutations, > > >>> > > >>> I have attached my dmesg log to this email. There may be some > > >>> excess stuff inside. > > >>> > > >>> Regards, Mark > > >>> > > >> > > >> > > > > > > Salutations, > > > > > > I got a new error (when the wifi adapter shuts off and can't seem > > > to recover even when replugging in the device). > > > > > > --- [63351.157325] DMA: Out of SW-IOMMU space for 16 bytes at > > > device 0000:00:1d.0 > > > > It is not firmware issue. In all errors i had, replugging will recover > > it. In your case it sounds more like usb controller. > > Beside, what is your usb controller? > > > > Salutations, > > I am not sure what kind of a hub it is; it's rated at USB 3.0 and was > supplied with my chassis (thermaltake armor a30). I have now plugged it > directly into my motherboard (Asus Maximus IV Gene-z) and will see if > the error returns. I originally plugged it in directly but found the > wifi adapter disconnecting too many times and difficult to pull out from > the back. > > Regards, > Mark Salutations, My internet dropped out again but my wifi restarting daemon managed to recover it quickly. I found the following error in my dmesg log though. --- [11503.278845] ath: phy3: Corrupted RX frame, dropping (len: 3) [14821.558230] usbcore: deregistering interface driver ath9k_htc [14821.581191] wlan0: deauthenticating from c4:3d:c7:a4:57:1e by local choice (reason=3) [14821.811910] cfg80211: Calling CRDA to update world regulatory domain [14821.814388] cfg80211: World regulatory domain updated: [14821.814391] cfg80211: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp) [14821.814392] cfg80211: (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm) [14821.814394] cfg80211: (2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 2000 mBm) [14821.814395] cfg80211: (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm) [14821.814396] cfg80211: (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm) [14821.814397] cfg80211: (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm) [14821.814410] cfg80211: Calling CRDA for country: US [14821.834367] cfg80211: Regulatory domain changed to country: US [14821.834372] cfg80211: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp) [14821.834374] cfg80211: (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2700 mBm) [14821.834376] cfg80211: (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 1700 mBm) [14821.834377] cfg80211: (5250000 KHz - 5330000 KHz @ 40000 KHz), (300 mBi, 2000 mBm) [14821.834379] cfg80211: (5490000 KHz - 5600000 KHz @ 40000 KHz), (300 mBi, 2000 mBm) [14821.834381] cfg80211: (5650000 KHz - 5710000 KHz @ 40000 KHz), (300 mBi, 2000 mBm) [14821.834382] cfg80211: (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 3000 mBm) [14821.834384] cfg80211: (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 4000 mBm) [14821.974388] usb 6-1.1: ath9k_htc: USB layer deinitialized --- Regards, Mark -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 230 bytes Desc: This is a digitally signed message part Url : http://lists.ath9k.org/pipermail/ath9k-devel/attachments/20131202/bf758221/attachment.pgp