aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSunil Dutt <usdutt@codeaurora.org>2019-08-06 16:04:21 (GMT)
committerJouni Malinen <j@w1.fi>2019-08-07 08:43:12 (GMT)
commit3263fca289a4493b3dfae6219ec6d6e846a18643 (patch)
treed998fd0c40ac5435ae21f52f0c664a98763ac8d7
parentaeb7ab8edb25dd504bbe9704c39573aab349c5fe (diff)
downloadhostap-3263fca289a4493b3dfae6219ec6d6e846a18643.zip
hostap-3263fca289a4493b3dfae6219ec6d6e846a18643.tar.gz
hostap-3263fca289a4493b3dfae6219ec6d6e846a18643.tar.bz2
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 <jouni@codeaurora.org>
-rw-r--r--wpa_supplicant/events.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/wpa_supplicant/events.c b/wpa_supplicant/events.c
index 2555621..87dad08 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);