On Mon, Oct 04, 2021 at 09:36:29PM +0000, Piotr Lobacz wrote:
Hi Beniamino, i have added printf's in this patched file for wpa_supplicant like that: --- a/wpa_supplicant/dbus/dbus_new_handlers.c 2021-10-04 22:50:45.114545070 +0200 +++ b/wpa_supplicant/dbus/dbus_new_handlers.c 2021-10-04 22:54:14.478466782 +0200 @@ -2790,10 +2790,18 @@ goto nomem; #endif /* CONFIG_WPS */ + printf("before if capa.key_mgmt SAE !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n"); #ifdef CONFIG_SAE if ((capa.key_mgmt & WPA_DRIVER_CAPA_KEY_MGMT_SAE) && !wpa_dbus_dict_string_array_add_element(&iter_array, "sae")) + { + printf("got into if statement !!!!!!!!!!!!!!!!!!!!!\n"); goto nomem; + } + else + { + printf("got into else statement !!!!!!!!!!!!!!!!!!!\n"); + } #endif /* CONFIG_SAE */ if (!wpa_dbus_dict_end_string_array(&iter_dict,
Hi, probably capa.key_mgmt doesn't contain WPA_DRIVER_CAPA_KEY_MGMT_SAE. It's probably shown somewhere in supplicant logs, but to be sure can you please check with: --- a/wpa_supplicant/dbus/dbus_new_handlers.c +++ b/wpa_supplicant/dbus/dbus_new_handlers.c @@ -2880,6 +2880,8 @@ dbus_bool_t wpas_dbus_getter_capabilities( #endif /* CONFIG_WPS */ #ifdef CONFIG_SAE + printf("capa.key_mgmt: %08x, (sae: %d)\n", capa.key_mgmt, + !!(capa.key_mgmt & WPA_DRIVER_CAPA_KEY_MGMT_SAE)); if ((capa.key_mgmt & WPA_DRIVER_CAPA_KEY_MGMT_SAE) && !wpa_dbus_dict_string_array_add_element(&iter_array, "sae")) goto nomem; Beniamino
Attachment:
signature.asc
Description: PGP signature