2012-04-27 21:31:12

by Bartosz Brachaczek

[permalink] [raw]
Subject: AR9285 (ath9k) network adapter often deauthenticates from a certain network

Hi,

I am often deauthenticated from my network at home. When
NetworkManager reconnects after this, the connection sometimes is
unusable until full reconnect is manually requested. These
deauthendications happen only with my home network (I have a custom
"Netia Spot" wireless router from my ISP at home), I have no problems
with my university networks.

I'm attaching syslog output which shows kernel and NetworkManager
messages. Kernel was compiled with debugging output enabled for
mac80211 and Atheros. As can be seen (use `grep '\(Reason:
6\|user-req\)'`), deauthentications happen quite often but only after
two of them my connection was unusable - they are followed by manual
disconnect+connect through nm-applet.

When connection breaks, `ping` running in the background outputs
nothing for a while, and then outputs "Destination Host Unreachable"
messages. Trying to run `ping` when the connection is already broken
ends in ping exiting after timeout or something.

I don't have any problems on Windows 7 on the same machine, although I
don't know whether it doesn't have problems with deauthentications or
if it is able to always quickly restore the connection.

I reported it also to NetworkManager as I suppose that
deauthentications are driver bug and failures to restore the
connection are NetworkManager bug:
https://bugzilla.gnome.org/show_bug.cgi?id=674996

NetworkManager version: 0.9.4.0 (0.9.2.0 had the same problem, earlier
not tested)
Kernel version: 3.3.3 (3.0 had the same problem, earlier not tested)

Wireless network adapter (lspci -vnn):
02:00.0 Network controller [0280]: Atheros Communications Inc. AR9285 Wireless
Network Adapter (PCI-Express) [168c:002b] (rev 01)
Subsystem: AzureWave AW-NB037H 802.11bgn Wireless Half-size
Mini PCIe Card [AR9002WB-1NGCD] [1a3b:2c37]
Flags: bus master, fast devsel, latency 0, IRQ 17
Memory at dea00000 (64-bit, non-prefetchable) [size=64K]
Capabilities: [40] Power Management version 3
Capabilities: [50] MSI: Enable- Count=1/1 Maskable- 64bit-
Capabilities: [60] Express Legacy Endpoint, MSI 00
Capabilities: [100] Advanced Error Reporting
Capabilities: [140] Virtual Channel
Capabilities: [160] Device Serial Number 00-15-17-ff-ff-24-14-12
Capabilities: [170] Power Budgeting <?>
Kernel driver in use: ath9k



Bartosz Brachaczek


Attachments:
syslog.txt (237.01 kB)

2012-04-30 13:22:58

by Mohammed Shafi

[permalink] [raw]
Subject: Re: AR9285 (ath9k) network adapter often deauthenticates from a certain network

On Sat, Apr 28, 2012 at 3:01 AM, Bartosz Brachaczek
<[email protected]> wrote:
> Hi,
>
> I am often deauthenticated from my network at home. When
> NetworkManager reconnects after this, the connection sometimes is
> unusable until full reconnect is manually requested. These
> deauthendications happen only with my home network (I have a custom
> "Netia Spot" wireless router from my ISP at home), I have no problems
> with my university networks.

providing some information regarding the difference between your home
network and university
network would be useful, like which is more congested and does your
home network has some
sort of security.

>
> I'm attaching syslog output which shows kernel and NetworkManager
> messages. Kernel was compiled with debugging output enabled for
> mac80211 and Atheros. As can be seen (use `grep '\(Reason:
> 6\|user-req\)'`), deauthentications happen quite often but only after
> two of them my connection was unusable - they are followed by manual
> disconnect+connect through nm-applet.
>
> When connection breaks, `ping` running in the background outputs
> nothing for a while, and then outputs "Destination Host Unreachable"
> messages. Trying to run `ping` when the connection is already broken
> ends in ping exiting after timeout or something.
>
> I don't have any problems on Windows 7 on the same machine, although I
> don't know whether it doesn't have problems with deauthentications or
> if it is able to always quickly restore the connection.
>
> I reported it also to NetworkManager as I suppose that
> deauthentications are driver bug and failures to restore the
> connection are NetworkManager bug:
> https://bugzilla.gnome.org/show_bug.cgi?id=674996

if you can disable the NM and see using supplicant with bg scan enabled helps
also pls try with the latest compat build
http://linuxwireless.org/en/users/Download#Where_to_download_bleeding_edge


>
> NetworkManager version: 0.9.4.0 (0.9.2.0 had the same problem, earlier
> not tested)
> Kernel version: 3.3.3 (3.0 had the same problem, earlier not tested)
>
> Wireless network adapter (lspci -vnn):
> 02:00.0 Network controller [0280]: Atheros Communications Inc. AR9285 Wireless
> Network Adapter (PCI-Express) [168c:002b] (rev 01)
> ? ? ? ?Subsystem: AzureWave AW-NB037H 802.11bgn Wireless Half-size
> Mini PCIe Card [AR9002WB-1NGCD] [1a3b:2c37]
> ? ? ? ?Flags: bus master, fast devsel, latency 0, IRQ 17
> ? ? ? ?Memory at dea00000 (64-bit, non-prefetchable) [size=64K]
> ? ? ? ?Capabilities: [40] Power Management version 3
> ? ? ? ?Capabilities: [50] MSI: Enable- Count=1/1 Maskable- 64bit-
> ? ? ? ?Capabilities: [60] Express Legacy Endpoint, MSI 00
> ? ? ? ?Capabilities: [100] Advanced Error Reporting
> ? ? ? ?Capabilities: [140] Virtual Channel
> ? ? ? ?Capabilities: [160] Device Serial Number 00-15-17-ff-ff-24-14-12
> ? ? ? ?Capabilities: [170] Power Budgeting <?>
> ? ? ? ?Kernel driver in use: ath9k
>
>
>
> Bartosz Brachaczek



--
thanks,
shafi

2012-05-04 10:14:44

by Bartosz Brachaczek

[permalink] [raw]
Subject: Re: AR9285 (ath9k) network adapter often deauthenticates from a certain network

2012/4/30 Mohammed Shafi <[email protected]>:
> On Sat, Apr 28, 2012 at 3:01 AM, Bartosz Brachaczek
> <[email protected]> wrote:
>> Hi,
>>
>> I am often deauthenticated from my network at home. When
>> NetworkManager reconnects after this, the connection sometimes is
>> unusable until full reconnect is manually requested. These
>> deauthendications happen only with my home network (I have a custom
>> "Netia Spot" wireless router from my ISP at home), I have no problems
>> with my university networks.
>
> providing some information regarding the difference between your home
> network and university
> network would be useful, like which is more congested and does your
> home network has some
> sort of security.
>
>>
>> I'm attaching syslog output which shows kernel and NetworkManager
>> messages. Kernel was compiled with debugging output enabled for
>> mac80211 and Atheros. As can be seen (use `grep '\(Reason:
>> 6\|user-req\)'`), deauthentications happen quite often but only after
>> two of them my connection was unusable - they are followed by manual
>> disconnect+connect through nm-applet.
>>
>> When connection breaks, `ping` running in the background outputs
>> nothing for a while, and then outputs "Destination Host Unreachable"
>> messages. Trying to run `ping` when the connection is already broken
>> ends in ping exiting after timeout or something.
>>
>> I don't have any problems on Windows 7 on the same machine, although I
>> don't know whether it doesn't have problems with deauthentications or
>> if it is able to always quickly restore the connection.
>>
>> I reported it also to NetworkManager as I suppose that
>> deauthentications are driver bug and failures to restore the
>> connection are NetworkManager bug:
>> https://bugzilla.gnome.org/show_bug.cgi?id=674996
>
> if you can disable the NM and see using supplicant with bg scan enabled helps
> also pls try with the latest compat build
> http://linuxwireless.org/en/users/Download#Where_to_download_bleeding_edge
>
>
>>
>> NetworkManager version: 0.9.4.0 (0.9.2.0 had the same problem, earlier
>> not tested)
>> Kernel version: 3.3.3 (3.0 had the same problem, earlier not tested)
>>
>> Wireless network adapter (lspci -vnn):
>> 02:00.0 Network controller [0280]: Atheros Communications Inc. AR9285 Wireless
>> Network Adapter (PCI-Express) [168c:002b] (rev 01)
>>        Subsystem: AzureWave AW-NB037H 802.11bgn Wireless Half-size
>> Mini PCIe Card [AR9002WB-1NGCD] [1a3b:2c37]
>>        Flags: bus master, fast devsel, latency 0, IRQ 17
>>        Memory at dea00000 (64-bit, non-prefetchable) [size=64K]
>>        Capabilities: [40] Power Management version 3
>>        Capabilities: [50] MSI: Enable- Count=1/1 Maskable- 64bit-
>>        Capabilities: [60] Express Legacy Endpoint, MSI 00
>>        Capabilities: [100] Advanced Error Reporting
>>        Capabilities: [140] Virtual Channel
>>        Capabilities: [160] Device Serial Number 00-15-17-ff-ff-24-14-12
>>        Capabilities: [170] Power Budgeting <?>
>>        Kernel driver in use: ath9k
>>
>>
>>
>> Bartosz Brachaczek
>
>
>
> --
> thanks,
> shafi

I tried disabling NM and using just wpa_supplicant and it seems it
solves the problem -- I tried multiple times with and without NM and
with it I can always reproduce the problem after at least one hour,
and without it I wasn't able to reproduce it even after many hours.

So I guess I don't need to provide more information here, I'll keep
working with the NetworkManager guys.

Thanks,
Bartosz Brachaczek