aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2012-02-14 19:04:14 (GMT)
committerJouni Malinen <j@w1.fi>2012-02-14 19:04:14 (GMT)
commit0c01d65d6deb4b4d721d255d0e7ca24d8ea2c6b5 (patch)
tree0541358478f03442c836073144bf2b4cb46ed56f
parentff22d1e10e9d0ae870e4bb9986f863c17d2990cc (diff)
downloadhostap-0c01d65d6deb4b4d721d255d0e7ca24d8ea2c6b5.zip
hostap-0c01d65d6deb4b4d721d255d0e7ca24d8ea2c6b5.tar.gz
hostap-0c01d65d6deb4b4d721d255d0e7ca24d8ea2c6b5.tar.bz2
Ignore TX status for Data frames from not associated STAaosp-jb-start
Commit d9a38716ccf90b0ab307f570a30931684a1b8730 did this for hostapd_eapol_tx_status() but missed the older hostapd_tx_status() path. Address that case, too. The TX status event may be received after a station has been disassociated in cases where the disassociation is following a transmission of a Data frame. Ignore such events if the STA is not associated at the moment the event is being processed. This avoids confusing debug entries and rescheduling of the EAPOL TX timeouts for STAs that are still in the STA table, but are not really in active EAPOL session. Signed-hostap: Jouni Malinen <j@w1.fi> intended-for: hostap-1
-rw-r--r--src/ap/ieee802_11.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ap/ieee802_11.c b/src/ap/ieee802_11.c
index b1dc3b0..9c931ca 100644
--- a/src/ap/ieee802_11.c
+++ b/src/ap/ieee802_11.c
@@ -1738,7 +1738,7 @@ void hostapd_tx_status(struct hostapd_data *hapd, const u8 *addr,
break;
}
}
- if (sta == NULL)
+ if (sta == NULL || !(sta->flags & WLAN_STA_ASSOC))
return;
if (sta->flags & WLAN_STA_PENDING_POLL) {
wpa_printf(MSG_DEBUG, "STA " MACSTR " %s pending "