forked from espressif/esp-idf
fix(wifi): Add a check on hostapd instance while handling an Auth frame
This commit is contained in:
@ -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)
|
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();
|
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);
|
struct sta_info *sta = ap_get_sta(hapd, bssid);
|
||||||
if (auth_transaction == SAE_MSG_COMMIT) {
|
if (auth_transaction == SAE_MSG_COMMIT) {
|
||||||
if (sta && sta->sae_commit_processing) {
|
if (sta && sta->sae_commit_processing) {
|
||||||
|
Reference in New Issue
Block a user