mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-25 08:48:31 -05:00
Ignore Management frames while AP interface is not fully enabled
It is possible for drivers to report received Management frames while AP is going through initial setup (e.g., during ACS or DFS CAC). hostapd and the driver is not yet ready for actually sending out responses to such frames at this point and as such, it is better to explicitly ignore such received frames rather than try to process them and have the response (e.g., a Probe Response frame) getting dropped by the driver as an invalid or getting out with some incorrect information. Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
c82535edd6
commit
5a04a76aa2
@ -4858,6 +4858,11 @@ int ieee802_11_mgmt(struct hostapd_data *hapd, const u8 *buf, size_t len,
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (hapd->iface->state != HAPD_IFACE_ENABLED) {
|
||||||
|
wpa_printf(MSG_DEBUG, "MGMT: Ignore management frame while interface is not enabled (SA=" MACSTR " DA=" MACSTR " subtype=%u)",
|
||||||
|
MAC2STR(mgmt->sa), MAC2STR(mgmt->da), stype);
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
if (stype == WLAN_FC_STYPE_PROBE_REQ) {
|
if (stype == WLAN_FC_STYPE_PROBE_REQ) {
|
||||||
handle_probe_req(hapd, mgmt, len, ssi_signal);
|
handle_probe_req(hapd, mgmt, len, ssi_signal);
|
||||||
|
Loading…
Reference in New Issue
Block a user