Re: [ath9k-devel] TPlink TL-WN822Nv2 drops out connections randomly on Arch Linux with Kernel 3.12.1-3

2013-12-02 Thread Mark E. Lee



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@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 :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 chassi

Re: [ath9k-devel] TPlink TL-WN822Nv2 drops out connections randomly on Arch Linux with Kernel 3.12.1-3

2013-12-02 Thread Mark E. Lee



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


signature.asc
Description: This is a digitally signed message part
___
ath9k-devel mailing list
ath9k-devel@lists.ath9k.org
https://lists.ath9k.org/mailman/listinfo/ath9k-devel


Re: [ath9k-devel] TPlink TL-WN822Nv2 drops out connections randomly on Arch Linux with Kernel 3.12.1-3

2013-12-02 Thread 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@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
:00:1d.0
---

Regards,
Mark


signature.asc
Description: This is a digitally signed message part
___
ath9k-devel mailing list
ath9k-devel@lists.ath9k.org
https://lists.ath9k.org/mailman/listinfo/ath9k-devel


Re: [ath9k-devel] TPlink TL-WN822Nv2 drops out connections randomly on Arch Linux with Kernel 3.12.1-3

2013-11-30 Thread Mark E. Lee

> 
> -Original Message-
> From: Oleksij Rempel 
> To: Mark E. Lee , ath9k-devel@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 @ 4 KHz), (300
mBi, 2000 mBm)
[13143.761445] cfg80211:   (2457000 KHz - 2482000 KHz @ 2 KHz), (300
mBi, 2000 mBm)
[13143.761447] cfg80211:   (2474000 KHz - 2494000 KHz @ 2 KHz), (300
mBi, 2000 mBm)
[13143.761448] cfg80211:   (517 KHz - 525 KHz @ 4 KHz), (300
mBi, 2000 mBm)
[13143.761450] cfg80211:   (5735000 KHz - 5835000 KHz @ 4 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 @ 4 KHz), (300
mBi, 2700 mBm)
[13143.768263] cfg80211:   (517 KHz - 525 KHz @ 4 KHz), (300
mBi, 1700 mBm)
[13143.768264] cfg80211:   (525 KHz - 533 KHz @ 4 KHz), (300
mBi, 2000 mBm)
[13143.768266] cfg80211:   (549 KHz - 560 KHz @ 4 KHz), (300
mBi, 2000 mBm)
[13143.768267] cfg80211:   (565 KHz - 571 KHz @ 4 KHz), (300
mBi, 2000 mBm)
[13143.768269] cfg80211:   (5735000 KHz - 5835000 KHz @ 4 KHz), (300
mBi, 3000 mBm)
[13143.768271] cfg80211:   (5724 KHz - 6372 KHz @ 2

Re: [ath9k-devel] TPlink TL-WN822Nv2 drops out connections randomly on Arch Linux with Kernel 3.12.1-3

2013-11-30 Thread Mark E. Lee

-- 
Mark E. Lee 

From: Mark E. Lee 
To: Oleksij Rempel 
Cc: ath9k-devel@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 22:20:46 -0500


-Original Message-
From: Oleksij Rempel 
To: Mark E. Lee , ath9k-devel@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

Apparently my attachment didn't go through. See below for my dmesg:
[ 4954.520778] cfg80211: Calling CRDA for country: US
[ 4954.523050] cfg80211: Regulatory domain changed to country: US
[ 4954.523056] cfg80211:   (start_freq - end_freq @ bandwidth),
(max_antenna_gain, max_eirp)
[ 4954.523059] cfg80211:   (2402000 KHz - 2472000 KHz @ 4 KHz), (300
mBi, 2700 mBm)
[ 4954.523061] cfg80211:   (517 KHz - 525 KHz @ 4 KHz), (300
mBi, 1700 mBm)
[ 4954.523063] cfg80211:   (525 KHz - 533 KHz @ 4 KHz), (300
mBi, 2000 mBm)
[ 4954.523065] cfg80211:   (549 KHz - 560 KHz @ 4 KHz), (300
mBi, 2000 mBm)
[ 4954.523066] cfg80211:   (565 KHz - 571 KHz @ 4 KHz), (300
mBi, 2000 mBm)
[ 4954.523068] cfg80211:   (5735000 KHz - 5835000 KHz @ 4 KHz), (300
mBi, 3000 mBm)
[ 4954.523070] cfg80211:   (5724 KHz - 6372 KHz @ 216 KHz),
(N/A, 4000 mBm)
[ 4955.766053] wlan0: authenticate with <>
[ 4955.997394] wlan0: send auth to <> (try 1/3)
[ 4956.022265] wlan0: authenticated
[ 4956.025151] wlan0: associate with <> (try 1/3)
[ 4956.045915] wlan0: RX AssocResp from <>
(capab=0x431 status=0 aid=3)
[ 4956.053586] wlan0: associated
[ 4976.559812] perf samples too long (2503 > 2500), lowering
kernel.perf_event_max_sample_rate to 50100
[ 5137.633585] ath: phy0: Unable to remove station entry for: <>
[ 5160.459288] usbcore: deregistering interface driver ath9k_htc
[ 5275.619919] INFO: task NetworkManager:636 blocked for more than 120
seconds.
[ 5275.619924]   Tainted: G C O 3.12.1-3-ARCH #1
[ 5275.619925] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs"
disables this message.
[ 5275.619927] NetworkManager  D 0246 0   636  1
0x
[ 5275.619931]  8807dfbdb890 0082 000144c0
8807dfbdbfd8
[ 5275.619934]  8807dfbdbfd8 000144c0 8807e1b9f0f0

[ 5275.619937]    
0486
[ 5275.619939] Call Trace:
[ 5275.619948]  [] ? cpumask_next_and+0x30/0x50
[ 5275.619951]  [] ? update_curr+0x72/0x1b0
[ 5275.619955]  [] schedule+0x29/0x70
[ 5275.619957]  [] schedule_preempt_disabled+0x23/0x30

Re: [ath9k-devel] TPlink TL-WN822Nv2 drops out connections randomly on Arch Linux with Kernel 3.12.1-3

2013-11-30 Thread Mark E. Lee

-Original Message-
From: Oleksij Rempel 
To: Mark E. Lee , ath9k-devel@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
-- 
Mark E. Lee 
[ 4954.520778] cfg80211: Calling CRDA for country: US
[ 4954.523050] cfg80211: Regulatory domain changed to country: US
[ 4954.523056] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
[ 4954.523059] cfg80211:   (2402000 KHz - 2472000 KHz @ 4 KHz), (300 mBi, 2700 mBm)
[ 4954.523061] cfg80211:   (517 KHz - 525 KHz @ 4 KHz), (300 mBi, 1700 mBm)
[ 4954.523063] cfg80211:   (525 KHz - 533 KHz @ 4 KHz), (300 mBi, 2000 mBm)
[ 4954.523065] cfg80211:   (549 KHz - 560 KHz @ 4 KHz), (300 mBi, 2000 mBm)
[ 4954.523066] cfg80211:   (565 KHz - 571 KHz @ 4 KHz), (300 mBi, 2000 mBm)
[ 4954.523068] cfg80211:   (5735000 KHz - 5835000 KHz @ 4 KHz), (300 mBi, 3000 mBm)
[ 4954.523070] cfg80211:   (5724 KHz - 6372 KHz @ 216 KHz), (N/A, 4000 mBm)
[ 4955.766053] wlan0: authenticate with <>
[ 4955.997394] wlan0: send auth to <> (try 1/3)
[ 4956.022265] wlan0: authenticated
[ 4956.025151] wlan0: associate with <> (try 1/3)
[ 4956.045915] wlan0: RX AssocResp from <> (capab=0x431 status=0 aid=3)
[ 4956.053586] wlan0: associated
[ 4976.559812] perf samples too long (2503 > 2500), lowering kernel.perf_event_max_sample_rate to 50100
[ 5137.633585] ath: phy0: Unable to remove station entry for: <>
[ 5160.459288] usbcore: deregistering interface driver ath9k_htc
[ 5275.619919] INFO: task NetworkManager:636 blocked for more than 120 seconds.
[ 5275.619924]   Tainted: G C O 3.12.1-3-ARCH #1
[ 5275.619925] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
[ 5275.619927] NetworkManager  D 0246 0   636  1 0x
[ 5275.619931]  8807dfbdb890 0082 000144c0 8807dfbdbfd8
[ 5275.619934]  8807dfbdbfd8 000144c0 8807e1b9f0f0 
[ 5275.619937]     0486
[ 5275.619939] Call Trace:
[ 5275.619948]  [] ? cpumask_next_and+0x30/0x50
[ 5275.619951]  [] ? update_curr+0x72/0x1b0
[ 5275.619955]  [] schedule+0x29/0x70
[ 5275.619957]  [] schedule_preempt_disabled+0x23/0x30
[ 5275.619961]  [] __mutex_lock_slowpath+0x158/0x3e0
[ 5275.619971]  [] mutex_lock+0x12/0x30
[ 5275.619979]  [] nl80211_dump_scan+0x5d/0x630 [cfg80211]
[ 5275.619982]  [] ? __kmalloc_reserve.isra.36+0x31/0x90
[ 5275.619986]  [] genl_lock_dumpit+0x2e/0x50
[ 5275.619989]  [] netlink_dump+0x88/0x250
[ 5275.619992]  [] __n

[ath9k-devel] TPlink TL-WN822Nv2 drops out connections randomly on Arch Linux with Kernel 3.12.1-3

2013-11-29 Thread 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


Regards,
Mark
-- 
Mark E. Lee 



signature.asc
Description: This is a digitally signed message part
___
ath9k-devel mailing list
ath9k-devel@lists.ath9k.org
https://lists.ath9k.org/mailman/listinfo/ath9k-devel


Re: [ath9k-devel] Tplink TL-WN822N drops out connections randomly on Arch Linux with Kernel 3.9.4 (Mark Lee)

2013-06-18 Thread Mark E. Lee
(2d, 22:56:57)
> >>  freq: 2412
> >>  beacon interval: 100 TUs
> >>  capability: ESS Privacy ShortSlotTime (0x0411)
> >>  signal: -59.00 dBm
> >>  last seen: 386 ms ago
> >>  Information elements from Probe Response frame:
> >>  SSID: predok
> >>  Supported rates: 1.0* 2.0* 5.5* 11.0* 6.0 9.0 12.0 18.0
> >>  DS Parameter set: channel 1
> >>  ERP: 
> >>  Extended supported rates: 24.0 36.0 48.0 54.0
> >>  WPA: * Version: 1
> >>   * Group cipher: TKIP
> >>   * Pairwise ciphers: TKIP
> >>   * Authentication suites: PSK
> >>  RSN: * Version: 1
> >>   * Group cipher: TKIP
> >>   * Pairwise ciphers: CCMP
> >>   * Authentication suites: PSK
> >>   * Capabilities: (0x)
> >>
> >>
> >>
> >> Thanks and greetings
> >
> >
> 

-- 
Mark E. Lee 


signature.asc
Description: This is a digitally signed message part
___
ath9k-devel mailing list
ath9k-devel@lists.ath9k.org
https://lists.ath9k.org/mailman/listinfo/ath9k-devel


Re: [ath9k-devel] Tplink TL-WN822N drops out connections randomly on Arch Linux with Kernel 3.9.4 (Mark Lee)

2013-06-05 Thread Mark E. Lee
I reset my router to the default netgear firmware and found the issue
still continues. 

After seeing this message board post :
<https://bbs.archlinux.org/viewtopic.php?id=137643>
I set an option for ath9k_htc to "nohwcrypt=1". I will see how it goes
in terms of stability. In addition, I was wondering if one could tell me
what that option means.


On Tue, 2013-06-04 at 12:00 +0200, ath9k-devel-requ...@lists.ath9k.org
wrote:
> On 3 June 2013 11:44, Mark E. Lee  wrote:
> > I couldn't find hostapd.conf on my access point.
> >
> > I did however switch the algorithm from WPA2 to WEP and found that I
> no
> > longer lost connection during skype calls.
> 
> That kinda points at the rekey or the crypto handling in general.
> 
> Please find and enable hostapd logging on your AP. I've seen and fixed
> bugs in freebsd recently where traffic would fill up buffers and cause
> the EAPOL rekey packets to get discarded by the driver. Thus a group
> rekey would fail, and the unit would be disconnected.
> 
> 
> 
> adrian

-- 
Mark E. Lee 


signature.asc
Description: This is a digitally signed message part
___
ath9k-devel mailing list
ath9k-devel@lists.ath9k.org
https://lists.ath9k.org/mailman/listinfo/ath9k-devel


Re: [ath9k-devel] Tplink TL-WN822N drops out connections randomly on Arch Linux with Kernel 3.9.4 (Mark Lee)

2013-06-03 Thread Mark E. Lee
I couldn't find hostapd.conf on my access point.

I did however switch the algorithm from WPA2 to WEP and found that I no
longer lost connection during skype calls.

-- 
Mark E. Lee 


signature.asc
Description: This is a digitally signed message part
___
ath9k-devel mailing list
ath9k-devel@lists.ath9k.org
https://lists.ath9k.org/mailman/listinfo/ath9k-devel


Re: [ath9k-devel] Tplink TL-WN822N drops out connections randomly on Arch Linux with Kernel 3.9.4 (Mark Lee)

2013-06-02 Thread Mark E. Lee
Access Point Firmware:  DD-WRT v24-sp2 (03/19/12) std
Access Point Hardware:  netgear-wnr2000v3

Output of # iw dev wlan0 get power_save :
Power save: off

Output of $ iw dev wlan0 scan dump :
Attached log file (unix ending)

On Sun, 2013-06-02 at 12:00 +0200, ath9k-devel-requ...@lists.ath9k.org
wrote:
> Send ath9k-devel mailing list submissions to
>   ath9k-devel@lists.ath9k.org
> 
> To subscribe or unsubscribe via the World Wide Web, visit
>   https://lists.ath9k.org/mailman/listinfo/ath9k-devel
> or, via email, send a message with subject or body 'help' to
>   ath9k-devel-requ...@lists.ath9k.org
> 
> You can reach the person managing the list at
>   ath9k-devel-ow...@lists.ath9k.org
> 
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of ath9k-devel digest..."
> 
> 
> Today's Topics:
> 
>1. Re: Tplink TL-WN822N drops out connections randomly on Arch
>   Linux with Kernel 3.9.4 (Mark Lee) (Oleksij Rempel)
> 
> 
> --
> 
> Message: 1
> Date: Sat, 01 Jun 2013 19:22:22 +0200
> From: Oleksij Rempel 
> Subject: Re: [ath9k-devel] Tplink TL-WN822N drops out connections
>   randomly on Arch Linux with Kernel 3.9.4 (Mark Lee)
> To: ath9k-devel@lists.ath9k.org
> Message-ID: <51aa2dce.20...@rempel-privat.de>
> Content-Type: text/plain; charset=UTF-8; format=flowed
> 
> Am 01.06.2013 19:00, schrieb Mark E. Lee:
> > output of lsusb : Bus 006 Device 003: ID 0cf3:7015 Atheros
> > Communications, Inc. TP-Link TL-WN821N v3 802.11n [Atheros AR7010
> > +AR9287]
> >
> > Wireless N USb adapter has a "version 2.0" label though.
> >
> > I have attached my dmesg.
> 
> I have same adapter, here are images of it:
> http://wikidevi.com/wiki/TP-LINK_TL-WN822N_v2
> 
> but i don't have this problem. It will be interesting to have more 
> information:
> - please send output of "sudo iw dev wlan0 scan dump"
> - information about your access point. if possible name of wireless chip 
> in it. you can link it with wikidevi.com
> - do you use power_save mode? you can check it with "iw dev wlan0 get 
> power_save"
> 

-- 
Mark E. Lee 
BSS c4:3d:c7:a4:57:21(on wlan0) -- associated
	TSF: 68911385231 usec (0d, 19:08:31)
	freq: 2437
	beacon interval: 100 TUs
	capability: ESS Privacy ShortSlotTime (0x0411)
	signal: -35.00 dBm
	last seen: 46703 ms ago
	Information elements from Probe Response frame:
	SSID: Folgers
	Supported rates: 1.0* 2.0* 5.5* 11.0* 6.0 9.0 12.0 18.0 
	DS Parameter set: channel 6
	ERP: Barker_Preamble_Mode
	Extended supported rates: 24.0 36.0 48.0 54.0 
	RSN:	 * Version: 1
		 * Group cipher: CCMP
		 * Pairwise ciphers: CCMP
		 * Authentication suites: PSK
		 * Capabilities: 16-PTKSA-RC (0x000c)
	HT capabilities:
		Capabilities: 0x11ec
			HT20
			SM Power Save disabled
			RX HT20 SGI
			RX HT40 SGI
			TX STBC
			RX STBC 1-stream
			Max AMSDU length: 3839 bytes
			DSSS/CCK HT40
		Maximum RX AMPDU length 65535 bytes (exponent: 0x003)
		Minimum RX AMPDU time spacing: 8 usec (0x06)
		HT TX/RX MCS rate indexes supported: 0-15
	HT operation:
		 * primary channel: 6
		 * secondary channel offset: no secondary
		 * STA channel width: 20 MHz
		 * RIFS: 0
		 * HT protection: non-HT mixed
		 * non-GF present: 1
		 * OBSS non-GF present: 1
		 * dual beacon: 0
		 * dual CTS protection: 0
		 * STBC beacon: 0
		 * L-SIG TXOP Prot: 0
		 * PCO active: 0
		 * PCO phase: 0
	WMM:	 * Parameter version 1
		 * BE: CW 15-1023, AIFSN 3
		 * BK: CW 15-1023, AIFSN 7
		 * VI: CW 7-15, AIFSN 2, TXOP 3008 usec
		 * VO: CW 3-7, AIFSN 2, TXOP 1504 usec


signature.asc
Description: This is a digitally signed message part
___
ath9k-devel mailing list
ath9k-devel@lists.ath9k.org
https://lists.ath9k.org/mailman/listinfo/ath9k-devel


[ath9k-devel] Tplink TL-WN822N drops out connections randomly on Arch Linux with Kernel 3.9.4

2013-05-31 Thread Mark E. Lee
I recently purchased a TPLINK TL-WN822N for my desktop running 64 bit
Arch Linux. For some reason, the connection drops out every now and then
(it is especially evident during Skype calls). I have run skype on
ethernet and have not been able to replicate this problem using
ethernet. In addition, I have run the usb wifi adapter in Windows 8
without any issues. Anyone got any advice on how to fix the issue?

From,
Mark
-- 
Mark E. Lee 


signature.asc
Description: This is a digitally signed message part
___
ath9k-devel mailing list
ath9k-devel@lists.ath9k.org
https://lists.ath9k.org/mailman/listinfo/ath9k-devel