@ -372,6 +372,21 @@ static void hostapd_ext_capab_byte(struct hostapd_data *hapd, u8 *pos, int idx)
* pos | = 0x01 ;
# endif /* CONFIG_FILS */
break ;
case 10 : /* Bits 80-87 */
# ifdef CONFIG_SAE
if ( hapd - > conf - > wpa & &
wpa_key_mgmt_sae ( hapd - > conf - > wpa_key_mgmt ) ) {
int in_use = hostapd_sae_pw_id_in_use ( hapd - > conf ) ;
if ( in_use )
* pos | = 0x02 ; /* Bit 81 - SAE Password
* Identifiers In Use */
if ( in_use = = 2 )
* pos | = 0x04 ; /* Bit 82 - SAE Password
* Identifiers Used Exclusively */
}
# endif /* CONFIG_SAE */
break ;
}
}
@ -411,6 +426,12 @@ u8 * hostapd_eid_ext_capab(struct hostapd_data *hapd, u8 *eid)
! wpa_key_mgmt_fils ( hapd - > conf - > wpa_key_mgmt ) ) & & len < 10 )
len = 10 ;
# endif /* CONFIG_FILS */
# ifdef CONFIG_SAE
if ( len < 11 & & hapd - > conf - > wpa & &
wpa_key_mgmt_sae ( hapd - > conf - > wpa_key_mgmt ) & &
hostapd_sae_pw_id_in_use ( hapd - > conf ) )
len = 11 ;
# endif /* CONFIG_SAE */
if ( len < hapd - > iface - > extended_capa_len )
len = hapd - > iface - > extended_capa_len ;
if ( len = = 0 )