From: Sunil Dutt Date: Tue, 6 Aug 2019 16:04:21 +0000 (+0530) Subject: Set the default scan IEs on interface restart X-Git-Tag: hostap_2_9~7 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3263fca289a4493b3dfae6219ec6d6e846a18643;p=thirdparty%2Fhostap.git Set the default scan IEs on interface restart Previously, these default scan IEs were set only when parameter values changed and during the interface initialization, which can get lost in the driver on an interface restart. Hence, also set these IEs on an interface restart notification even when there has been no change in the values since the last update to the driver. Signed-off-by: Jouni Malinen --- diff --git a/wpa_supplicant/events.c b/wpa_supplicant/events.c index 255562173..87dad0811 100644 --- a/wpa_supplicant/events.c +++ b/wpa_supplicant/events.c @@ -4716,6 +4716,7 @@ void wpa_supplicant_event(void *ctx, enum wpa_event_type event, wpa_dbg(wpa_s, MSG_DEBUG, "Interface was enabled"); if (wpa_s->wpa_state == WPA_INTERFACE_DISABLED) { wpa_supplicant_update_mac_addr(wpa_s); + wpa_supplicant_set_default_scan_ies(wpa_s); if (wpa_s->p2p_mgmt) { wpa_supplicant_set_state(wpa_s, WPA_DISCONNECTED);