From: Mark E. Lee Date: Sun, 01 Dec 2013 00:41:52 -0500 Subject: [ath9k-devel] TPlink TL-WN822Nv2 drops out connections randomly on Arch Linux with Kernel 3.12.1-3 In-Reply-To: <1385868046.9054.5.camel@melech-server.localdomain> References: <1385786446.6163.4.camel@melech-server.localdomain> <52999A53.4020102@rempel-privat.de> <1385868046.9054.5.camel@melech-server.localdomain> Message-ID: <1385876512.9054.11.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 > > -----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, See below for my dmesg when my script doesn't work (USB power goes out). --- [13142.700486] usb 6-1.7: USB disconnect, device number 9 [13142.971669] ath: phy4: Chip reset failed [13142.971674] ath: phy4: Unable to reset channel (2462 Mhz) reset status -22 [13142.971675] ath: phy4: Unable to set channel [13143.072128] ath: phy4: RX failed to go idle in 10 ms RXSM=0x0 [13143.082216] ath: phy4: Failed to wakeup in 500us [13143.182668] ath: phy4: RX failed to go idle in 10 ms RXSM=0x0 [13143.182717] cfg80211: Calling CRDA to update world regulatory domain [13143.414662] ath: phy4: RX failed to go idle in 10 ms RXSM=0x8f2a8e1 [13143.424787] ath: phy4: Failed to wakeup in 500us [13143.731675] ath: phy4: RX failed to go idle in 10 ms RXSM=0x8f2a8e1 [13143.761438] cfg80211: World regulatory domain updated: [13143.761442] cfg80211: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp) [13143.761444] cfg80211: (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm) [13143.761445] cfg80211: (2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 2000 mBm) [13143.761447] cfg80211: (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm) [13143.761448] cfg80211: (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm) [13143.761450] cfg80211: (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm) [13143.764451] cfg80211: Calling CRDA for country: US [13143.768256] cfg80211: Regulatory domain changed to country: US [13143.768259] cfg80211: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp) [13143.768261] cfg80211: (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2700 mBm) [13143.768263] cfg80211: (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 1700 mBm) [13143.768264] cfg80211: (5250000 KHz - 5330000 KHz @ 40000 KHz), (300 mBi, 2000 mBm) [13143.768266] cfg80211: (5490000 KHz - 5600000 KHz @ 40000 KHz), (300 mBi, 2000 mBm) [13143.768267] cfg80211: (5650000 KHz - 5710000 KHz @ 40000 KHz), (300 mBi, 2000 mBm) [13143.768269] cfg80211: (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 3000 mBm) [13143.768271] cfg80211: (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 4000 mBm) [13143.781871] usb 6-1.7: ath9k_htc: USB layer deinitialized [13161.809974] usb 6-1.7: new high-speed USB device number 10 using ehci-pci [13161.894255] usb 6-1.7: ath9k_htc: Firmware htc_7010.fw requested [13161.998152] usb 6-1.7: ath9k_htc: Transferred FW: htc_7010.fw, size: 72992 [13162.060965] ath9k_htc 6-1.7:1.0: ath9k_htc: HTC initialized with 45 credits [13162.255370] ath9k_htc 6-1.7:1.0: ath9k_htc: FW Version: 1.3 [13162.255374] ath: EEPROM regdomain: 0x809c [13162.255375] ath: EEPROM indicates we should expect a country code [13162.255376] ath: doing EEPROM country->regdmn map search [13162.255377] ath: country maps to regdmn code: 0x52 [13162.255378] ath: Country alpha2 being used: CN [13162.255379] ath: Regpair used: 0x52 [13162.257846] ieee80211 phy5: Atheros AR9287 Rev:2 [13162.257884] cfg80211: Calling CRDA for country: CN [13162.259624] cfg80211: Current regulatory domain intersected: [13162.259627] cfg80211: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp) [13162.259629] cfg80211: (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 2000 mBm) [13162.259631] cfg80211: (5735000 KHz - 5835000 KHz @ 40000 KHz), (N/A, 3000 mBm) [13162.259633] cfg80211: (57240000 KHz - 59400000 KHz @ 2160000 KHz), (N/A, 2800 mBm) [13162.259635] cfg80211: (59400000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 4000 mBm) [13162.509814] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready --- 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/20131201/7de4cb89/attachment.pgp