@ -372,6 +372,7 @@ static int wpa_supplicant_wps_cred(void *ctx,
# ifdef CONFIG_WPS_REG_DISABLE_OPEN
# ifdef CONFIG_WPS_REG_DISABLE_OPEN
int registrar = 0 ;
int registrar = 0 ;
# endif /* CONFIG_WPS_REG_DISABLE_OPEN */
# endif /* CONFIG_WPS_REG_DISABLE_OPEN */
bool add_sae ;
if ( ( wpa_s - > conf - > wps_cred_processing = = 1 | |
if ( ( wpa_s - > conf - > wps_cred_processing = = 1 | |
wpa_s - > conf - > wps_cred_processing = = 2 ) & & cred - > cred_attr ) {
wpa_s - > conf - > wps_cred_processing = = 2 ) & & cred - > cred_attr ) {
@ -534,8 +535,12 @@ static int wpa_supplicant_wps_cred(void *ctx,
case WPS_AUTH_WPA2PSK :
case WPS_AUTH_WPA2PSK :
ssid - > auth_alg = WPA_AUTH_ALG_OPEN ;
ssid - > auth_alg = WPA_AUTH_ALG_OPEN ;
ssid - > key_mgmt = WPA_KEY_MGMT_PSK ;
ssid - > key_mgmt = WPA_KEY_MGMT_PSK ;
if ( wpa_s - > conf - > wps_cred_add_sae & &
add_sae = wpa_s - > conf - > wps_cred_add_sae ;
cred - > key_len ! = 2 * PMK_LEN ) {
# ifdef CONFIG_P2P
if ( ssid - > p2p_group & & is_p2p_6ghz_capable ( wpa_s - > global - > p2p ) )
add_sae = true ;
# endif /* CONFIG_P2P */
if ( add_sae & & cred - > key_len ! = 2 * PMK_LEN ) {
ssid - > auth_alg = 0 ;
ssid - > auth_alg = 0 ;
ssid - > key_mgmt | = WPA_KEY_MGMT_SAE ;
ssid - > key_mgmt | = WPA_KEY_MGMT_SAE ;
ssid - > ieee80211w = MGMT_FRAME_PROTECTION_OPTIONAL ;
ssid - > ieee80211w = MGMT_FRAME_PROTECTION_OPTIONAL ;