[PATCH] Current auth mode should be set as real auth type when authentication is in progress. Wpa has property "State" which indicating the authentication stage already. I think set auth mode as "INACTIVE" in all auth progress seems not good idea, because sometimes we need to handle this connection according to auth type even authentication is not complete. For exsample, NetworkManager may recall ask-password-dialog when auth mode is "wpa-psk" and "sae", try next access point when auth mode is "EAP-xx" when password is incorrect. Since "CurrentAuthMode" is set as "INACTIVE" in all situation, we do not know how to handle it.
Jan Ceuleers
jan.ceuleers at gmail.com
Fri Mar 11 07:48:51 PST 2022
On 11/03/2022 08:02, ArisAachen wrote:
> Signed-off-by: Aris Aachen <chenyunxiong at unionitech.com>
> Signed-off-by: ArisAachen <chenyunxiong at uniontech.com>
> ---
> wpa_supplicant/dbus/dbus_new_handlers.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/wpa_supplicant/dbus/dbus_new_handlers.c b/wpa_supplicant/dbus/dbus_new_handlers.c
> index 959a68b4c..1c9ded09a 100644
> --- a/wpa_supplicant/dbus/dbus_new_handlers.c
> +++ b/wpa_supplicant/dbus/dbus_new_handlers.c
> @@ -3951,7 +3951,7 @@ dbus_bool_t wpas_dbus_getter_current_auth_mode(
> const char *auth_mode;
> char eap_mode_buf[WPAS_DBUS_AUTH_MODE_MAX];
>
> - if (wpa_s->wpa_state != WPA_COMPLETED) {
> + if (wpa_s->wpa_state <= WPA_SCANNING) {
> auth_mode = "INACTIVE";
> } else if (wpa_s->key_mgmt == WPA_KEY_MGMT_IEEE8021X ||
> wpa_s->key_mgmt == WPA_KEY_MGMT_IEEE8021X_NO_WPA) {
Could I suggest breaking up the commit message across multiple lines
rather than putting it all in the subject?
More information about the Hostap
mailing list