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:
nakul kachhwaha 2019-04-03 12:32:59 +05:30 committed by Jouni Malinen
parent 89bbe6f87a
commit 2ab19f4be9

View file

@ -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);