001-4addr-fix-reconnecting-client-on-connection-lost.patch 874 B

12345678910111213141516171819202122232425
  1. From: Matthias May <[email protected]>
  2. Date: Tue, 5 Jul 2016 15:00:43 +0200
  3. Subject: [PATCH] 4addr: fix reconnecting client on connection lost
  4. When a 4addr client suddenly looses its connection (no deauth/deassoc)
  5. the AP still thinks it is connected.
  6. If the client reconnects before the AP timeoutes the client, traffic
  7. cannot flow.
  8. Fix this by making sure the WLAN_STA_WDS flag is unset in the sta->flags
  9. when the client completes association.
  10. Signed-off-by: Matthias May <[email protected]>
  11. ---
  12. --- a/src/ap/ieee802_11.c
  13. +++ b/src/ap/ieee802_11.c
  14. @@ -2826,6 +2826,7 @@ static void handle_assoc_cb(struct hosta
  15. new_assoc = 0;
  16. sta->flags |= WLAN_STA_ASSOC;
  17. sta->flags &= ~WLAN_STA_WNM_SLEEP_MODE;
  18. + sta->flags &= ~WLAN_STA_WDS;
  19. if ((!hapd->conf->ieee802_1x && !hapd->conf->wpa && !hapd->conf->osen) ||
  20. sta->auth_alg == WLAN_AUTH_FT) {
  21. /*