mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-03 20:54:32 +02:00
fix(esp_wifi): Set default ap mgmt cipher
This commit is contained in:
Submodule components/esp_wifi/lib updated: ef66afa203...e6c344109c
@@ -130,6 +130,21 @@ void *hostap_init(void)
|
||||
wpa_printf(MSG_DEBUG, "%s : pmf optional", __func__);
|
||||
}
|
||||
|
||||
if (auth_conf->ieee80211w != NO_MGMT_FRAME_PROTECTION) {
|
||||
switch (pairwise_cipher) {
|
||||
case WIFI_CIPHER_TYPE_CCMP:
|
||||
auth_conf->group_mgmt_cipher = WPA_CIPHER_AES_128_CMAC;
|
||||
break;
|
||||
case WIFI_CIPHER_TYPE_GCMP:
|
||||
auth_conf->group_mgmt_cipher = WPA_CIPHER_BIP_GMAC_128;
|
||||
break;
|
||||
case WIFI_CIPHER_TYPE_GCMP256:
|
||||
auth_conf->group_mgmt_cipher = WPA_CIPHER_BIP_GMAC_256;
|
||||
break;
|
||||
default:
|
||||
auth_conf->group_mgmt_cipher = WPA_CIPHER_AES_128_CMAC;
|
||||
}
|
||||
}
|
||||
if (authmode == WIFI_AUTH_WPA2_WPA3_PSK) {
|
||||
auth_conf->wpa_key_mgmt |= WPA_KEY_MGMT_SAE;
|
||||
}
|
||||
|
Reference in New Issue
Block a user