]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
hostapd: Fix client reassociation after disconnect due to ACK failure
authorFelix Fietkau <nbd@openwrt.org>
Sat, 16 Mar 2013 10:35:49 +0000 (12:35 +0200)
committerJouni Malinen <j@w1.fi>
Sat, 16 Mar 2013 10:35:49 +0000 (12:35 +0200)
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

index 8ada121817a83814a4bf86d464da8d41de1d6c4e..cbafb47f0d711459f1f6f3e8f4c04ec3b10f076a 100644 (file)
@@ -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 "