dbus: Add dbus notify when wpa_s->key_mgmt changes
For WPA2/WPA3 authentication mode, wpa_supplicant needs to notify CurrentAuthMode property change when wpa_s->key_mgmt changes, so NetworkManager can judge whether it needs to request a password based on this. Call wpas_notify_auth_changed() when starting a new connection item, i.e., after having updated wpa_s->key_mgmt. Signed-off-by: xinpeng wang <wangxinpeng@uniontech.com>
This commit is contained in:
parent
af97aaa503
commit
2afb9b1a58
2 changed files with 3 additions and 0 deletions
|
@ -1027,6 +1027,7 @@ static void sme_auth_start_cb(struct wpa_radio_work *work, int deinit)
|
|||
wpa_s->rsnxe_len = 0;
|
||||
|
||||
sme_send_authentication(wpa_s, cwork->bss, cwork->ssid, 1);
|
||||
wpas_notify_auth_changed(wpa_s);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -4254,6 +4254,8 @@ static void wpas_start_assoc_cb(struct wpa_radio_work *work, int deinit)
|
|||
wpa_supplicant_initiate_eapol(wpa_s);
|
||||
if (old_ssid != wpa_s->current_ssid)
|
||||
wpas_notify_network_changed(wpa_s);
|
||||
if (!(wpa_s->drv_flags & WPA_DRIVER_FLAGS_SME))
|
||||
wpas_notify_auth_changed(wpa_s);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue