In some cases we got to the assoc cb function even though the was not associated. fix it by ignoring the assoc cb. Signed-off-by: Sarada Prasanna Garnayak <sarada.prasanna.garnayak@xxxxxxxxx> --- src/ap/ieee802_11.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/ap/ieee802_11.c b/src/ap/ieee802_11.c index d2d6b1767..c29eb57b5 100644 --- a/src/ap/ieee802_11.c +++ b/src/ap/ieee802_11.c @@ -4153,6 +4153,13 @@ static void handle_assoc_cb(struct hostapd_data *hapd, else status = le_to_host16(mgmt->u.assoc_resp.status_code); + if (!(sta->flags & WLAN_STA_ASSOC_REQ_OK)) { + hostapd_logger(hapd, sta->addr, HOSTAPD_MODULE_IEEE80211, + HOSTAPD_LEVEL_INFO, + "STA is not associated, ignoring assoc cb"); + return; + } + if (!ok) { hostapd_logger(hapd, mgmt->da, HOSTAPD_MODULE_IEEE80211, HOSTAPD_LEVEL_DEBUG, -- 2.11.0 _______________________________________________ Hostap mailing list Hostap@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/hostap