]> git.ipfire.org Git - thirdparty/hostap.git/blobdiff - wpa_supplicant/events.c
Update internal MAC address on EVENT_INTERFACE_ENABLED events
[thirdparty/hostap.git] / wpa_supplicant / events.c
index f062d0a89b610674c38af6ceefbf1f1f881e669a..dd17a4280cc928d00fe1ea7196324843df63413e 100644 (file)
@@ -2380,6 +2380,7 @@ void wpa_supplicant_event(void *ctx, enum wpa_event_type event,
        case EVENT_INTERFACE_ENABLED:
                wpa_dbg(wpa_s, MSG_DEBUG, "Interface was enabled");
                if (wpa_s->wpa_state == WPA_INTERFACE_DISABLED) {
+                       wpa_supplicant_update_mac_addr(wpa_s);
 #ifdef CONFIG_AP
                        if (!wpa_s->ap_iface) {
                                wpa_supplicant_set_state(wpa_s,