mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-02-21 11:33:04 -05:00
Reset beacon_set_done on disabling interface
beacon_set_done did not get reset to zero on disabling interface using DISABLE control interface command and the subsequent ENABLE command will caused configuration of Beacon/Probe Response/Association Response frame IEs twice. The unnecessary two step configuration can be avoided by resetting beacon_set_done on DISABLE so that ENABLE can bring up the interface in a single step with fully updated IEs. Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
This commit is contained in:
parent
89bbe6f87a
commit
2ab19f4be9
@ -352,6 +352,7 @@ static void hostapd_free_hapd_data(struct hostapd_data *hapd)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
hapd->started = 0;
|
hapd->started = 0;
|
||||||
|
hapd->beacon_set_done = 0;
|
||||||
|
|
||||||
wpa_printf(MSG_DEBUG, "%s(%s)", __func__, hapd->conf->iface);
|
wpa_printf(MSG_DEBUG, "%s(%s)", __func__, hapd->conf->iface);
|
||||||
iapp_deinit(hapd->iapp);
|
iapp_deinit(hapd->iapp);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user