]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Set the default scan IEs on interface restart
authorSunil Dutt <usdutt@codeaurora.org>
Tue, 6 Aug 2019 16:04:21 +0000 (21:34 +0530)
committerJouni Malinen <j@w1.fi>
Wed, 7 Aug 2019 08:43:12 +0000 (11:43 +0300)
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>
wpa_supplicant/events.c

index 255562173d8e1c3a257d0d7ab7bd94bba4490f45..87dad0811e3039d3951e9b728fe655765d972e98 100644 (file)
@@ -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);