From mboxrd@z Thu Jan 1 00:00:00 1970 From: Oleksij Rempel Date: Sat, 30 Nov 2013 08:57:07 +0100 Subject: [ath9k-devel] TPlink TL-WN822Nv2 drops out connections randomly on Arch Linux with Kernel 3.12.1-3 In-Reply-To: <1385786446.6163.4.camel@melech-server.localdomain> References: <1385786446.6163.4.camel@melech-server.localdomain> Message-ID: <52999A53.4020102@rempel-privat.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: ath9k-devel@lists.ath9k.org 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. -- Regards, Oleksij