mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04: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:
parent
8b94183c9c
commit
128aba4892
@ -1 +1 @@
|
||||
Subproject commit 8ac58d5636c1218577583705a76d765a385b2f6d
|
||||
Subproject commit acbfd4bc9ad91aed497d466828edb6f890873dac
|
@ -274,5 +274,6 @@ bool esp_wifi_is_mbo_enabled_internal(uint8_t if_index);
|
||||
uint8_t esp_wifi_sta_get_config_sae_pwe_h2e_internal(void);
|
||||
uint8_t esp_wifi_sta_get_use_h2e_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_ */
|
||||
|
@ -2649,6 +2649,12 @@ void eapol_txcb(void *eb)
|
||||
case WPA_FIRST_HALF_4WAY_HANDSHAKE:
|
||||
break;
|
||||
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) {
|
||||
sm->txcb_flags &= ~WPA_4_4_HANDSHAKE_BIT;
|
||||
isdeauth = wpa_supplicant_send_4_of_4_txcallback(sm);
|
||||
|
Loading…
x
Reference in New Issue
Block a user