2010-08-07 15:52:03

by Björn Smedman

[permalink] [raw]
Subject: ath9k: association lost on ap side only

Hi all,

I'm trying out compat-wireless-2010-07-29 with openwrt/trunk@22474
patches on AR913x and quite often (a few times a day) run into a
problem where my laptop thinks it's associated but the router thinks
it's not.

Basically, on the laptop side I am still associated but on the access
point iw says there are no stas:

root@OpenWrt:/sys/kernel/debug/ieee80211/phy0# iw dev wlan0 station dump
root@OpenWrt:/sys/kernel/debug/ieee80211/phy0#

The log looks like this:

Aug 7 14:53:24 OpenWrt daemon.info dnsmasq-dhcp[1601]:
DHCPREQUEST(br-lan) 192.168.1.241 00:17:f2:51:b2:2d
Aug 7 14:53:24 OpenWrt daemon.info dnsmasq-dhcp[1601]:
DHCPACK(br-lan) 192.168.1.241 00:17:f2:51:b2:2d
Aug 7 14:56:19 OpenWrt daemon.info hostapd: wlan0: STA
00:17:f2:51:b2:2d WPA: group key handshake completed (RSN)
Aug 7 14:56:19 OpenWrt daemon.info hostapd: wlan0: STA
00:17:f2:51:b2:2d WPA: received EAPOL-Key 2/2 Group with unexpected
replay counter
Aug 7 15:06:19 OpenWrt daemon.info hostapd: wlan0: STA
00:17:f2:51:b2:2d WPA: group key handshake completed (RSN)
Aug 7 15:06:19 OpenWrt daemon.info hostapd: wlan0: STA
00:17:f2:51:b2:2d WPA: received EAPOL-Key 2/2 Group with unexpected
replay counter
Aug 7 15:16:20 OpenWrt daemon.info hostapd: wlan0: STA
00:17:f2:51:b2:2d WPA: group key handshake completed (RSN)
Aug 7 15:16:20 OpenWrt daemon.info hostapd: wlan0: STA
00:17:f2:51:b2:2d WPA: received EAPOL-Key 2/2 Group with unexpected
replay counter
Aug 7 15:16:20 OpenWrt daemon.info hostapd: wlan0: STA
00:17:f2:51:b2:2d WPA: received EAPOL-Key 2/2 Group with unexpected
replay counter
Aug 7 15:26:22 OpenWrt daemon.info hostapd: wlan0: STA
00:17:f2:51:b2:2d IEEE 802.11: deauthenticated due to local deauth
request
Aug 7 15:30:14 OpenWrt user.debug kernel: ath: DMA failed to stop in
10 ms AR_CR=0x00000024 AR_DIAG_SW=0x40000020
Aug 7 15:30:14 OpenWrt user.debug kernel: ath: DMA failed to stop in
10 ms AR_CR=0x00000024 AR_DIAG_SW=0x42000020

Those "unexpected replay counters" messages are quite common. What can
cause these? A lost ack and retransmission?

Apart from that I guess there are two questions here: (1) why was the
association lost on the ap side? and (2) why is there no indication
from the router that it does not expect data frames in this state?

/Bj?rn


2010-08-08 18:29:49

by Björn Smedman

[permalink] [raw]
Subject: Re: ath9k: association lost on ap side only

2010/8/7 Bj?rn Smedman <[email protected]>:
> Hi all,
>
> I'm trying out compat-wireless-2010-07-29 with openwrt/trunk@22474
> patches on AR913x and quite often (a few times a day) run into a
> problem where my laptop thinks it's associated but the router thinks
> it's not.

I also run into some weirdness where the laptop disassociates (macos
reports it as "AirPort: Link Down on en1. Reason 4 (Disassociated due
to inactivity)"). From end-users point of view it's like if somebody
pulled the power on the router, but it comes back faster than it would
in that case.

The log looks like this when that happened:

Aug 8 18:20:11 OpenWrt user.debug kernel: ath: Timeout while waiting
for nf to load: AR_PHY_AGC_CONTROL=0x40d22
Aug 8 18:20:32 OpenWrt user.debug kernel: ath: DMA failed to stop in
10 ms AR_CR=0x00000024 AR_DIAG_SW=0x40000020
Aug 8 18:20:32 OpenWrt user.debug kernel: ath: DMA failed to stop in
10 ms AR_CR=0x00000024 AR_DIAG_SW=0x42000020
Aug 8 18:20:48 OpenWrt user.debug kernel: ath: DMA failed to stop in
10 ms AR_CR=0x00000024 AR_DIAG_SW=0x40000020
Aug 8 18:20:48 OpenWrt user.debug kernel: ath: DMA failed to stop in
10 ms AR_CR=0x00000024 AR_DIAG_SW=0x42000020

/Bj?rn