All of lore.kernel.org
 help / color / mirror / Atom feed
* [ath9k-devel] TPlink TL-WN822Nv2 drops out connections randomly on Arch Linux with Kernel 3.12.1-3
@ 2013-11-30  4:40 Mark E. Lee
  2013-11-30  7:57 ` Oleksij Rempel
  0 siblings, 1 reply; 10+ messages in thread
From: Mark E. Lee @ 2013-11-30  4:40 UTC (permalink / raw)
  To: ath9k-devel

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
----

Regards,
Mark
-- 
Mark E. Lee <mark@markelee.com>

-------------- 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/20131129/9a0fe04f/attachment.pgp 

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2013-12-02 22:33 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-30  4:40 [ath9k-devel] TPlink TL-WN822Nv2 drops out connections randomly on Arch Linux with Kernel 3.12.1-3 Mark E. Lee
2013-11-30  7:57 ` Oleksij Rempel
2013-12-01  3:20   ` Mark E. Lee
2013-12-01  3:33     ` Mark E. Lee
2013-12-01  5:41     ` Mark E. Lee
2013-12-01  9:30     ` Oleksij Rempel
2013-12-02 18:27       ` Mark E. Lee
2013-12-02 19:06         ` Oleksij Rempel
2013-12-02 21:13           ` Mark E. Lee
2013-12-02 22:33             ` Mark E. Lee

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.