mirror of
https://github.com/espressif/esp-idf.git
synced 2025-12-06 00:38:10 +00:00
fix(wifi): Fix encryption/decryption issue for mgmt packets
* Fix issues related to mgmt packets encryption in GCMP * Fix issue of wrong decryption of mgmt packets when PMF is enabled * Fix softAP bug in handling of SAE Reauthentication
This commit is contained in:
@@ -2560,7 +2560,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)
|
||||
bool *pmf_enable, int subtype, uint8_t *pairwise_cipher)
|
||||
{
|
||||
struct hostapd_data *hapd = (struct hostapd_data*)esp_wifi_get_hostap_private_internal();
|
||||
enum wpa_validate_result status_code = WPA_IE_OK;
|
||||
@@ -2611,6 +2611,7 @@ send_resp:
|
||||
|
||||
//Check whether AP uses Management Frame Protection for this connection
|
||||
*pmf_enable = wpa_auth_uses_mfp(sta->wpa_sm);
|
||||
*pairwise_cipher = GET_BIT_POSITION(sta->wpa_sm->pairwise);
|
||||
}
|
||||
|
||||
wpa_auth_sta_associated(hapd->wpa_auth, sta->wpa_sm);
|
||||
|
||||
Reference in New Issue
Block a user