mirror of
https://github.com/espressif/esp-idf.git
synced 2025-07-30 18:57:19 +02:00
esp_wifi: Install keys after eapol and NVS store security values
1. Bugfix store authmode security in NVS 2. Install keys after successful transmission of EAPOL 4/4 Message
This commit is contained in:
Submodule components/esp_wifi/lib updated: 07f3665430...26b2a6da3b
@ -280,5 +280,6 @@ esp_err_t esp_wifi_remain_on_channel(uint8_t ifx, uint8_t type, uint8_t channel,
|
|||||||
uint8_t esp_wifi_sta_get_config_sae_pwe_h2e_internal(void);
|
uint8_t esp_wifi_sta_get_config_sae_pwe_h2e_internal(void);
|
||||||
uint8_t esp_wifi_sta_get_use_h2e_internal(void);
|
uint8_t esp_wifi_sta_get_use_h2e_internal(void);
|
||||||
void esp_wifi_sta_disable_wpa2_authmode_internal(void);
|
void esp_wifi_sta_disable_wpa2_authmode_internal(void);
|
||||||
|
bool esp_wifi_eb_tx_status_success_internal(void *eb);
|
||||||
|
|
||||||
#endif /* _ESP_WIFI_DRIVER_H_ */
|
#endif /* _ESP_WIFI_DRIVER_H_ */
|
||||||
|
@ -2581,6 +2581,12 @@ void eapol_txcb(void *eb)
|
|||||||
case WPA_FIRST_HALF_4WAY_HANDSHAKE:
|
case WPA_FIRST_HALF_4WAY_HANDSHAKE:
|
||||||
break;
|
break;
|
||||||
case WPA_LAST_HALF_4WAY_HANDSHAKE:
|
case WPA_LAST_HALF_4WAY_HANDSHAKE:
|
||||||
|
|
||||||
|
if (esp_wifi_eb_tx_status_success_internal(eb) != true) {
|
||||||
|
wpa_printf(MSG_ERROR, "Eapol message 4/4 tx failure, not installing keys");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (sm->txcb_flags & WPA_4_4_HANDSHAKE_BIT) {
|
if (sm->txcb_flags & WPA_4_4_HANDSHAKE_BIT) {
|
||||||
sm->txcb_flags &= ~WPA_4_4_HANDSHAKE_BIT;
|
sm->txcb_flags &= ~WPA_4_4_HANDSHAKE_BIT;
|
||||||
isdeauth = wpa_supplicant_send_4_of_4_txcallback(sm);
|
isdeauth = wpa_supplicant_send_4_of_4_txcallback(sm);
|
||||||
|
Reference in New Issue
Block a user