mirror of
https://github.com/espressif/esp-idf.git
synced 2025-10-08 13:57:39 +00:00
wpa_supplicant: Resolve WPA3 SAE softAP coverity issues
1) Resolve wpa_suppliant coverity issues caused by SAE softAP 2) Fix crash occured while deinitialization of softAP when authmode is changed 3) Fix issue related to anti clogging token and send_confirm 4) Put some AP specific functions under ESP_WIFI_SOFTAP_SUPPORT compilation flags
This commit is contained in:
@@ -495,7 +495,7 @@ static void wpa_free_sta_sm(struct wpa_state_machine *sm)
|
||||
void wpa_auth_sta_deinit(struct wpa_state_machine *sm)
|
||||
{
|
||||
#ifdef ESP_SUPPLICANT
|
||||
if (esp_wifi_ap_is_sta_sae_reauth_node(sm->addr)) {
|
||||
if (sm && esp_wifi_ap_is_sta_sae_reauth_node(sm->addr)) {
|
||||
wpa_printf( MSG_DEBUG, "deinit old sm=%p\n", sm);
|
||||
}
|
||||
#else /* ESP_SUPPLICANT */
|
||||
@@ -2509,6 +2509,7 @@ void wpa_deinit(struct wpa_authenticator *wpa_auth)
|
||||
|
||||
}
|
||||
|
||||
#ifdef CONFIG_ESP_WIFI_SOFTAP_SUPPORT
|
||||
bool wpa_ap_join(struct sta_info *sta, uint8_t *bssid, uint8_t *wpa_ie,
|
||||
uint8_t wpa_ie_len, uint8_t *rsnxe, uint8_t rsnxe_len,
|
||||
bool *pmf_enable, int subtype)
|
||||
@@ -2614,6 +2615,7 @@ bool wpa_ap_remove(void* sta_info)
|
||||
|
||||
return true;
|
||||
}
|
||||
#endif /* CONFIG_ESP_WIFI_SOFTAP_SUPPORT */
|
||||
|
||||
void wpa_auth_pmksa_remove(struct wpa_authenticator *wpa_auth,
|
||||
const u8 *sta_addr)
|
||||
|
Reference in New Issue
Block a user