From 3263fca289a4493b3dfae6219ec6d6e846a18643 Mon Sep 17 00:00:00 2001 From: Sunil Dutt Date: Tue, 6 Aug 2019 21:34:21 +0530 Subject: [PATCH] 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 --- wpa_supplicant/events.c | 1 + 1 file changed, 1 insertion(+) 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);