From 2ab19f4be9ea6573caf2864581fd474e2265f7d1 Mon Sep 17 00:00:00 2001 From: nakul kachhwaha Date: Wed, 3 Apr 2019 12:32:59 +0530 Subject: [PATCH] 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 --- src/ap/hostapd.c | 1 + 1 file changed, 1 insertion(+) 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); -- 2.39.2