mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
esp_supplicant: wpa pmf should be disabled
This commit is contained in:
parent
3048251be0
commit
8d383980a1
@ -40,7 +40,7 @@ void *hostap_init(void)
|
|||||||
struct wpa_auth_config *auth_conf;
|
struct wpa_auth_config *auth_conf;
|
||||||
u16 spp_attrubute = 0;
|
u16 spp_attrubute = 0;
|
||||||
u8 pairwise_cipher;
|
u8 pairwise_cipher;
|
||||||
wifi_pmf_config_t pmf_cfg;
|
wifi_pmf_config_t pmf_cfg = {0};
|
||||||
uint8_t authmode;
|
uint8_t authmode;
|
||||||
|
|
||||||
hapd = (struct hostapd_data *)os_zalloc(sizeof(struct hostapd_data));
|
hapd = (struct hostapd_data *)os_zalloc(sizeof(struct hostapd_data));
|
||||||
@ -85,11 +85,12 @@ void *hostap_init(void)
|
|||||||
pairwise_cipher = esp_wifi_ap_get_prof_pairwise_cipher_internal();
|
pairwise_cipher = esp_wifi_ap_get_prof_pairwise_cipher_internal();
|
||||||
|
|
||||||
#ifdef CONFIG_IEEE80211W
|
#ifdef CONFIG_IEEE80211W
|
||||||
|
if((auth_conf->wpa & WPA_PROTO_RSN) == WPA_PROTO_RSN)
|
||||||
esp_wifi_get_pmf_config_internal(&pmf_cfg, WIFI_IF_AP);
|
{
|
||||||
|
esp_wifi_get_pmf_config_internal(&pmf_cfg, WIFI_IF_AP);
|
||||||
if (pmf_cfg.required) {
|
if (pmf_cfg.required) {
|
||||||
pairwise_cipher = WIFI_CIPHER_TYPE_CCMP;
|
pairwise_cipher = WIFI_CIPHER_TYPE_CCMP;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
#endif /* CONFIG_IEEE80211W */
|
#endif /* CONFIG_IEEE80211W */
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user