From: nakul kachhwaha Date: Wed, 3 Apr 2019 07:02:59 +0000 (+0530) Subject: Reset beacon_set_done on disabling interface X-Git-Tag: hostap_2_8~100 X-Git-Url: http://git.ipfire.org/?p=thirdparty%2Fhostap.git;a=commitdiff_plain;h=2ab19f4be9ea6573caf2864581fd474e2265f7d1 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 --- diff --git a/src/ap/hostapd.c b/src/ap/hostapd.c index 77742f441..20c8e8f5a 100644 --- a/src/ap/hostapd.c +++ b/src/ap/hostapd.c @@ -352,6 +352,7 @@ static void hostapd_free_hapd_data(struct hostapd_data *hapd) return; } hapd->started = 0; + hapd->beacon_set_done = 0; wpa_printf(MSG_DEBUG, "%s(%s)", __func__, hapd->conf->iface); iapp_deinit(hapd->iapp);