OpenWrt/LEDE Project

  • Status Unconfirmed
  • Percent Complete
    0%
  • Task Type Bug Report
  • Category Base system
  • Assigned To No-one
  • Operating System All
  • Severity High
  • Priority Very Low
  • Reported Version Trunk
  • Due in Version Undecided
  • Due Date Undecided
  • Votes 1
  • Private
Attached to Project: OpenWrt/LEDE Project
Opened by Enrico - 08.03.2017

FS#608 - wds AP/STA disconnecting every 10 minutes

Devices:
AP WDS: Netgear r7800
STA WDS: TP-LINK Archer c7 v2

Problem exists on:

  1. with both latest trunk and 17.01
  2. with both ath10k and ath10k-ct
  3. with STP enabled or not on both sides
  4. with STP enabled or not on only one side
  5. with both WPA2 tkip and aes
  6. with 2.4Ghz and 5Ghz bands

Steps to reproduce

  1. Configure AP WDS
  2. Configure STA WDS
  3. Wait exactly 10 minutes and you’ll see this in the log:

AP:

daemon.info hostapd: wlan1-1: STA 30:b5:c2:08:b9:e1 IEEE 802.11: authenticated
daemon.info hostapd: wlan1-1: STA 30:b5:c2:08:b9:e1 IEEE 802.11: associated (aid 1)
daemon.info hostapd: wlan1-1: STA 30:b5:c2:08:b9:e1 RADIUS: starting accounting session F72C76B14648E205
daemon.info hostapd: wlan1-1: STA 30:b5:c2:08:b9:e1 WPA: pairwise key handshake completed (RSN)

STA:

daemon.notice netifd: Network device 'wlan1' link is down
kern.info kernel: [  387.179978] wlan1: deauthenticated from de:ef:09:f2:99:75 (Reason: 2=PREV_AUTH_NOT_VALID)
kern.info kernel: [  387.188344] br-lan: port 3(wlan1) entered disabled state
kern.info kernel: [  388.139233] wlan1: authenticate with de:ef:09:f2:99:75
kern.info kernel: [  388.170697] wlan1: send auth to de:ef:09:f2:99:75 (try 1/3)
kern.info kernel: [  388.195249] wlan1: authenticated
Wkern.info kernel: [  388.225092] wlan1: associate with de:ef:09:f2:99:75 (try 1/3)
kern.info kernel: [  388.235224] wlan1: RX AssocResp from de:ef:09:f2:99:75 (capab=0x431 status=0 aid=1)
kern.info kernel: [  388.243356] wlan1: associated
daemon.notice netifd: Network device 'wlan1' link is up

I think this has to do with wpa_supplicant in some way, maybe it doesn’t receive the correct packets and force disconnect the client?

Now, this only happens in WDS bridge mode. I’m currently using relayd in order to overcome this issue and it works like a charm.
I want to solve this problem since relayd uses much more cpu power (indeed this is a true routing procotol after all) and total troughput is halved right now.


Enrico commented on 08.03.2017 23:17

I'll gladly provide you any addition information.
I can also compile lede with patches if necessary.

Enrico commented on 11.03.2017 11:40

I confirm this is a wpad/hostapd/wpa_supplicant issue, AP side.

If I change the "wpa_ptk_rekey" value in hostapd conf to 30, every 30 seconds my WDS AP disconnects the WDS STA with the same reason:

wlan1: deauthenticated from de:ef:09:f2:99:75 (Reason: 2=PREV_AUTH_NOT_VALID)

Setting "wpa_ptk_rekey" to 3600 makes the disconnection appears every hour.

Enrico commented on 11.03.2017 21:34

bug confirmed also on dd-wrt: DD-WRT ticket

it seems a ath10k 10.4 firmware bug so not a problem in LEDE. do you know how to report to qualcomm?

aversario commented on 08.05.2017 18:31

I do not have WDS and I can confirm events on exactly 10 minutes:

Mon May 8 15:04:10 2017 daemon.info hostapd: wi11: STA 00:0c:42:61:18:de WPA: group key handshake completed (RSN)
Mon May 8 15:04:10 2017 daemon.info hostapd: wi11: STA 64:70:02:fc:85:d8 WPA: group key handshake completed (RSN)
Mon May 8 15:04:11 2017 daemon.info hostapd: wi11: STA 00:0c:42:66:7d:94 WPA: group key handshake completed (RSN)
Mon May 8 15:14:10 2017 daemon.info hostapd: wi11: STA 00:0c:42:61:18:de WPA: group key handshake completed (RSN)
Mon May 8 15:14:10 2017 daemon.info hostapd: wi11: STA 64:70:02:fc:85:d8 WPA: group key handshake completed (RSN)
Mon May 8 15:14:10 2017 daemon.info hostapd: wi11: STA 00:0c:42:66:7d:94 WPA: group key handshake completed (RSN)
Mon May 8 15:24:10 2017 daemon.info hostapd: wi11: STA 00:0c:42:66:7d:94 WPA: group key handshake completed (RSN)
Mon May 8 15:24:10 2017 daemon.info hostapd: wi11: STA 00:0c:42:61:18:de WPA: group key handshake completed (RSN)
Mon May 8 15:24:10 2017 daemon.info hostapd: wi11: STA 64:70:02:fc:85:d8 WPA: group key handshake completed (RSN)
Mon May 8 15:34:10 2017 daemon.info hostapd: wi11: STA 00:0c:42:61:18:de WPA: group key handshake completed (RSN)
Mon May 8 15:34:10 2017 daemon.info hostapd: wi11: STA 64:70:02:fc:85:d8 WPA: group key handshake completed (RSN)
Mon May 8 15:34:10 2017 daemon.info hostapd: wi11: STA 00:0c:42:66:7d:94 WPA: group key handshake completed (RSN)
Mon May 8 15:44:10 2017 daemon.info hostapd: wi11: STA 00:0c:42:66:7d:94 WPA: group key handshake completed (RSN)
Mon May 8 15:44:10 2017 daemon.info hostapd: wi11: STA 00:0c:42:61:18:de WPA: group key handshake completed (RSN)
Mon May 8 15:44:10 2017 daemon.info hostapd: wi11: STA 64:70:02:fc:85:d8 WPA: group key handshake completed (RSN)
Mon May 8 15:54:10 2017 daemon.info hostapd: wi11: STA 00:0c:42:61:18:de WPA: group key handshake completed (RSN)
Mon May 8 15:54:10 2017 daemon.info hostapd: wi11: STA 64:70:02:fc:85:d8 WPA: group key handshake completed (RSN)
Mon May 8 15:54:10 2017 daemon.info hostapd: wi11: STA 00:0c:42:66:7d:94 WPA: group key handshake completed (RSN)
Mon May 8 16:04:10 2017 daemon.info hostapd: wi11: STA 00:0c:42:66:7d:94 WPA: group key handshake completed (RSN)
Mon May 8 16:04:10 2017 daemon.info hostapd: wi11: STA 00:0c:42:61:18:de WPA: group key handshake completed (RSN)
Mon May 8 16:04:10 2017 daemon.info hostapd: wi11: STA 64:70:02:fc:85:d8 WPA: group key handshake completed (RSN)
Mon May 8 16:14:10 2017 daemon.info hostapd: wi11: STA 00:0c:42:66:7d:94 WPA: group key handshake completed (RSN)
Mon May 8 16:14:10 2017 daemon.info hostapd: wi11: STA 00:0c:42:61:18:de WPA: group key handshake completed (RSN)
Mon May 8 16:14:10 2017 daemon.info hostapd: wi11: STA 64:70:02:fc:85:d8 WPA: group key handshake completed (RSN)
Mon May 8 16:24:10 2017 daemon.info hostapd: wi11: STA 00:0c:42:61:18:de WPA: group key handshake completed (RSN)
Mon May 8 16:24:10 2017 daemon.info hostapd: wi11: STA 64:70:02:fc:85:d8 WPA: group key handshake completed (RSN)
Mon May 8 16:24:10 2017 daemon.info hostapd: wi11: STA 00:0c:42:66:7d:94 WPA: group key handshake completed (RSN)
Mon May 8 16:34:10 2017 daemon.info hostapd: wi11: STA 00:0c:42:66:7d:94 WPA: group key handshake completed (RSN)
Mon May 8 16:34:10 2017 daemon.info hostapd: wi11: STA 00:0c:42:61:18:de WPA: group key handshake completed (RSN)
Mon May 8 16:34:10 2017 daemon.info hostapd: wi11: STA 64:70:02:fc:85:d8 WPA: group key handshake completed (RSN)
Mon May 8 16:44:10 2017 daemon.info hostapd: wi11: STA 00:0c:42:61:18:de WPA: group key handshake completed (RSN)
Mon May 8 16:44:10 2017 daemon.info hostapd: wi11: STA 64:70:02:fc:85:d8 WPA: group key handshake completed (RSN)
Mon May 8 16:44:10 2017 daemon.info hostapd: wi11: STA 00:0c:42:66:7d:94 WPA: group key handshake completed (RSN)
Mon May 8 16:54:10 2017 daemon.info hostapd: wi11: STA 00:0c:42:61:18:de WPA: group key handshake completed (RSN)
Mon May 8 16:54:10 2017 daemon.info hostapd: wi11: STA 64:70:02:fc:85:d8 WPA: group key handshake completed (RSN)
Mon May 8 16:54:10 2017 daemon.info hostapd: wi11: STA 00:0c:42:66:7d:94 WPA: group key handshake completed (RSN)
Mon May 8 17:04:10 2017 daemon.info hostapd: wi11: STA 00:0c:42:66:7d:94 WPA: group key handshake completed (RSN)
Mon May 8 17:04:10 2017 daemon.info hostapd: wi11: STA 00:0c:42:61:18:de WPA: group key handshake completed (RSN)
Mon May 8 17:04:10 2017 daemon.info hostapd: wi11: STA 64:70:02:fc:85:d8 WPA: group key handshake completed (RSN)
Mon May 8 17:14:10 2017 daemon.info hostapd: wi11: STA 00:0c:42:61:18:de WPA: group key handshake completed (RSN)
Mon May 8 17:14:10 2017 daemon.info hostapd: wi11: STA 64:70:02:fc:85:d8 WPA: group key handshake completed (RSN)
Mon May 8 17:14:10 2017 daemon.info hostapd: wi11: STA 00:0c:42:66:7d:94 WPA: group key handshake completed (RSN)
Mon May 8 17:24:10 2017 daemon.info hostapd: wi11: STA 00:0c:42:66:7d:94 WPA: group key handshake completed (RSN)
Mon May 8 17:24:10 2017 daemon.info hostapd: wi11: STA 00:0c:42:61:18:de WPA: group key handshake completed (RSN)
Mon May 8 17:24:10 2017 daemon.info hostapd: wi11: STA 64:70:02:fc:85:d8 WPA: group key handshake completed (RSN)
Mon May 8 17:34:10 2017 daemon.info hostapd: wi11: STA 00:0c:42:66:7d:94 WPA: group key handshake completed (RSN)
Mon May 8 17:34:10 2017 daemon.info hostapd: wi11: STA 64:70:02:fc:85:d8 WPA: group key handshake completed (RSN)
Mon May 8 17:34:10 2017 daemon.info hostapd: wi11: STA 00:0c:42:61:18:de WPA: group key handshake completed (RSN)
Mon May 8 17:44:10 2017 daemon.info hostapd: wi11: STA 00:0c:42:61:18:de WPA: group key handshake completed (RSN)
Mon May 8 17:44:10 2017 daemon.info hostapd: wi11: STA 64:70:02:fc:85:d8 WPA: group key handshake completed (RSN)
Mon May 8 17:44:10 2017 daemon.info hostapd: wi11: STA 00:0c:42:66:7d:94 WPA: group key handshake completed (RSN)
Mon May 8 17:54:10 2017 daemon.info hostapd: wi11: STA 00:0c:42:66:7d:94 WPA: group key handshake completed (RSN)
Mon May 8 17:54:10 2017 daemon.info hostapd: wi11: STA 00:0c:42:61:18:de WPA: group key handshake completed (RSN)
Mon May 8 17:54:10 2017 daemon.info hostapd: wi11: STA 64:70:02:fc:85:d8 WPA: group key handshake completed (RSN)
Mon May 8 18:04:10 2017 daemon.info hostapd: wi11: STA 00:0c:42:66:7d:94 WPA: group key handshake completed (RSN)
Mon May 8 18:04:10 2017 daemon.info hostapd: wi11: STA 64:70:02:fc:85:d8 WPA: group key handshake completed (RSN)
Mon May 8 18:04:10 2017 daemon.info hostapd: wi11: STA 00:0c:42:61:18:de WPA: group key handshake completed (RSN)
Mon May 8 18:14:10 2017 daemon.info hostapd: wi11: STA 00:0c:42:66:7d:94 WPA: group key handshake completed (RSN)
Mon May 8 18:14:10 2017 daemon.info hostapd: wi11: STA 00:0c:42:61:18:de WPA: group key handshake completed (RSN)
Mon May 8 18:14:10 2017 daemon.info hostapd: wi11: STA 64:70:02:fc:85:d8 WPA: group key handshake completed (RSN)
Mon May 8 18:24:10 2017 daemon.info hostapd: wi11: STA 00:0c:42:66:7d:94 WPA: group key handshake completed (RSN)
Mon May 8 18:24:10 2017 daemon.info hostapd: wi11: STA 00:0c:42:61:18:de WPA: group key handshake completed (RSN)
Mon May 8 18:24:10 2017 daemon.info hostapd: wi11: STA 64:70:02:fc:85:d8 WPA: group key handshake completed (RSN)
Mon May 8 18:34:10 2017 daemon.info hostapd: wi11: STA 00:0c:42:66:7d:94 WPA: group key handshake completed (RSN)
Mon May 8 18:34:10 2017 daemon.info hostapd: wi11: STA 00:0c:42:61:18:de WPA: group key handshake completed (RSN)
Mon May 8 18:34:10 2017 daemon.info hostapd: wi11: STA 64:70:02:fc:85:d8 WPA: group key handshake completed (RSN)
Mon May 8 18:44:10 2017 daemon.info hostapd: wi11: STA 00:0c:42:61:18:de WPA: group key handshake completed (RSN)
Mon May 8 18:44:10 2017 daemon.info hostapd: wi11: STA 64:70:02:fc:85:d8 WPA: group key handshake completed (RSN)
Mon May 8 18:44:10 2017 daemon.info hostapd: wi11: STA 00:0c:42:66:7d:94 WPA: group key handshake completed (RSN)
Mon May 8 18:54:10 2017 daemon.info hostapd: wi11: STA 00:0c:42:61:18:de WPA: group key handshake completed (RSN)
Mon May 8 18:54:10 2017 daemon.info hostapd: wi11: STA 64:70:02:fc:85:d8 WPA: group key handshake completed (RSN)
Mon May 8 18:54:10 2017 daemon.info hostapd: wi11: STA 00:0c:42:66:7d:94 WPA: group key handshake completed (RSN)
Mon May 8 19:04:10 2017 daemon.info hostapd: wi11: STA 00:0c:42:61:18:de WPA: group key handshake completed (RSN)
Mon May 8 19:04:10 2017 daemon.info hostapd: wi11: STA 64:70:02:fc:85:d8 WPA: group key handshake completed (RSN)
Mon May 8 19:04:10 2017 daemon.info hostapd: wi11: STA 00:0c:42:66:7d:94 WPA: group key handshake completed (RSN)
Mon May 8 19:14:10 2017 daemon.info hostapd: wi11: STA 00:0c:42:66:7d:94 WPA: group key handshake completed (RSN)
Mon May 8 19:14:10 2017 daemon.info hostapd: wi11: STA 00:0c:42:61:18:de WPA: group key handshake completed (RSN)
Mon May 8 19:14:10 2017 daemon.info hostapd: wi11: STA 64:70:02:fc:85:d8 WPA: group key handshake completed (RSN)
Mon May 8 19:24:10 2017 daemon.info hostapd: wi11: STA 00:0c:42:66:7d:94 WPA: group key handshake completed (RSN)
Mon May 8 19:24:10 2017 daemon.info hostapd: wi11: STA 00:0c:42:61:18:de WPA: group key handshake completed (RSN)
Mon May 8 19:24:10 2017 daemon.info hostapd: wi11: STA 64:70:02:fc:85:d8 WPA: group key handshake completed (RSN)
Mon May 8 19:34:10 2017 daemon.info hostapd: wi11: STA 00:0c:42:61:18:de WPA: group key handshake completed (RSN)
Mon May 8 19:34:10 2017 daemon.info hostapd: wi11: STA 00:0c:42:66:7d:94 WPA: group key handshake completed (RSN)
Mon May 8 19:34:10 2017 daemon.info hostapd: wi11: STA 64:70:02:fc:85:d8 WPA: group key handshake completed (RSN)
Mon May 8 19:44:10 2017 daemon.info hostapd: wi11: STA 00:0c:42:61:18:de WPA: group key handshake completed (RSN)
Mon May 8 19:44:10 2017 daemon.info hostapd: wi11: STA 64:70:02:fc:85:d8 WPA: group key handshake completed (RSN)
Mon May 8 19:44:10 2017 daemon.info hostapd: wi11: STA 00:0c:42:66:7d:94 WPA: group key handshake completed (RSN)
Mon May 8 19:54:10 2017 daemon.info hostapd: wi11: STA 00:0c:42:66:7d:94 WPA: group key handshake completed (RSN)
Mon May 8 19:54:10 2017 daemon.info hostapd: wi11: STA 00:0c:42:61:18:de WPA: group key handshake completed (RSN)
Mon May 8 19:54:10 2017 daemon.info hostapd: wi11: STA 64:70:02:fc:85:d8 WPA: group key handshake completed (RSN)
Mon May 8 20:04:10 2017 daemon.info hostapd: wi11: STA 00:0c:42:61:18:de WPA: group key handshake completed (RSN)
Mon May 8 20:04:10 2017 daemon.info hostapd: wi11: STA 64:70:02:fc:85:d8 WPA: group key handshake completed (RSN)
Mon May 8 20:04:10 2017 daemon.info hostapd: wi11: STA 00:0c:42:66:7d:94 WPA: group key handshake completed (RSN)
Mon May 8 20:14:10 2017 daemon.info hostapd: wi11: STA 00:0c:42:66:7d:94 WPA: group key handshake completed (RSN)
Mon May 8 20:14:10 2017 daemon.info hostapd: wi11: STA 00:0c:42:61:18:de WPA: group key handshake completed (RSN)
Mon May 8 20:14:10 2017 daemon.info hostapd: wi11: STA 64:70:02:fc:85:d8 WPA: group key handshake completed (RSN)
Mon May 8 20:24:10 2017 daemon.info hostapd: wi11: STA 00:0c:42:61:18:de WPA: group key handshake completed (RSN)
Mon May 8 20:24:10 2017 daemon.info hostapd: wi11: STA 64:70:02:fc:85:d8 WPA: group key handshake completed (RSN)
Mon May 8 20:24:10 2017 daemon.info hostapd: wi11: STA 00:0c:42:66:7d:94 WPA: group key handshake completed (RSN)

MikroTik RouterBOARD 411/A/AH
LEDE Reboot SNAPSHOT r3968-e20965811d / LuCI Master (git-17.103.24187-a82ca22)
WiFi card supported with ath9k

aversario commented on 09.05.2017 07:26

I don know if related, but I have also got "ath: phy0: DMA failed to stop in 10 ms" in kernel log on AP and could not reach both STAtions until reboot.

aversario commented on 11.05.2017 20:16

May be related #770

Benjamin Xiao commented on 07.06.2017 06:44

I am seeing the exact same thing when using WDS. I get (Reason: 2=PREV_AUTH_NOT_VALID) disconnects every 10 minutes.

I have a Netgear R7800 (ath10k) as AP and a Linksys WRT1900ACS (mwlwifi) as client.

I don't want to use relayd because it doesn't seem to support IPv6, as far as I can tell.

Loading...

Available keyboard shortcuts

Tasklist

Task Details

Task Editing