Skip to content

Commit

Permalink
Merge branch 'bugfix/load_access_fault_upon_auth' into 'master'
Browse files Browse the repository at this point in the history
fix(wifi): Add a check on hostapd instance while handling an Auth frame

Closes WIFIBUG-739

See merge request espressif/esp-idf!33362
  • Loading branch information
jack0c committed Oct 11, 2024
2 parents a74730e + ff4620f commit 90cfc52
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions components/wpa_supplicant/esp_supplicant/src/esp_wpa3.c
Original file line number Diff line number Diff line change
Expand Up @@ -647,6 +647,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) {
Expand Down

0 comments on commit 90cfc52

Please sign in to comment.