wpa_supplicant : Prevent h2e config overwrite

Current esp_wifi_get_config doesn't return correct value of h2e config which will cause h2e config to be overwritten in Station connected handler.

Add one preventative condition to take care of this.
This commit is contained in:
jgujarathi
2023-02-01 12:20:39 +05:30
committed by Sarvesh Bodakhe
parent 37a2cce163
commit f87afae48d

View File

@@ -161,8 +161,10 @@ static void clear_bssid_flag(struct wpa_supplicant *wpa_s)
}
esp_wifi_get_config(WIFI_IF_STA, config);
if (config->sta.bssid_set) {
config->sta.bssid_set = 0;
esp_wifi_set_config(WIFI_IF_STA, config);
}
os_free(config);
wpa_printf(MSG_DEBUG, "cleared bssid flag");
}