Patchwork hostap: fix client reassociation after disconnect due to ACK failure

login
register
mail settings
Submitter Felix Fietkau
Date March 12, 2013, 12:47 a.m.
Message ID <1363049261-57285-1-git-send-email-nbd@openwrt.org>
Download mbox | patch
Permalink /patch/226729/
State Accepted
Commit ba873c12845b620be6405ece2512fe8d9691b8f6
Headers show

Comments

Felix Fietkau - March 12, 2013, 12:47 a.m.
Clear WLAN_STA_ASSOC_REQ_OK, otherwise no Class 3 frame will be sent to
the disconnected STA in response to data frames.

Signed-hostap: Felix Fietkau <nbd@openwrt.org>
---
 src/ap/sta_info.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Jouni Malinen - March 16, 2013, 10:36 a.m.
On Tue, Mar 12, 2013 at 01:47:41AM +0100, Felix Fietkau wrote:
> Clear WLAN_STA_ASSOC_REQ_OK, otherwise no Class 3 frame will be sent to
> the disconnected STA in response to data frames.

Thanks, applied.

Patch

diff --git a/src/ap/sta_info.c b/src/ap/sta_info.c
index 8ada121..cbafb47 100644
--- a/src/ap/sta_info.c
+++ b/src/ap/sta_info.c
@@ -576,7 +576,7 @@  void ap_sta_disassociate(struct hostapd_data *hapd, struct sta_info *sta,
 {
 	wpa_printf(MSG_DEBUG, "%s: disassociate STA " MACSTR,
 		   hapd->conf->iface, MAC2STR(sta->addr));
-	sta->flags &= ~WLAN_STA_ASSOC;
+	sta->flags &= ~(WLAN_STA_ASSOC | WLAN_STA_ASSOC_REQ_OK);
 	ap_sta_set_authorized(hapd, sta, 0);
 	sta->timeout_next = STA_DEAUTH;
 	wpa_printf(MSG_DEBUG, "%s: reschedule ap_handle_timer timeout "