mirror of
https://github.com/espressif/esp-idf
synced 2025-03-10 01:29:21 -04:00
Merge branch 'bugfix/load_access_fault_upon_auth_v5.1' into 'release/v5.1'
fix(wifi): Add a check on hostapd instance while handling an Auth frame (Backport v5.1) See merge request espressif/esp-idf!34120
This commit is contained in:
commit
648ff3c825
@ -638,6 +638,9 @@ bool wpa3_hostap_auth_deinit(void)
|
||||
static int wpa3_hostap_handle_auth(u8 *buf, size_t len, u32 auth_transaction, u16 status, u8 *bssid)
|
||||
{
|
||||
struct hostapd_data *hapd = (struct hostapd_data *)esp_wifi_get_hostap_private_internal();
|
||||
if (!hapd) {
|
||||
return ESP_FAIL;
|
||||
}
|
||||
struct sta_info *sta = ap_get_sta(hapd, bssid);
|
||||
if (auth_transaction == SAE_MSG_COMMIT) {
|
||||
if (sta && sta->sae_commit_processing) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user