mirror of
https://github.com/espressif/esp-idf.git
synced 2025-10-08 13:57:39 +00:00
esp_wifi: WPA3 softap set PMF required true
1) Set NVS PMF required true if not specified by application when authmode is WPA3 2) Fix issue regarding cleanup of non associated sta_info 3) Fix implementation of sta lock to avoid concurrency issues 4) Fix softAP deinit crash when password is configured with max length
This commit is contained in:
@@ -2578,19 +2578,21 @@ static void ap_free_sta_timeout(void *ctx, void *data)
|
||||
}
|
||||
#endif
|
||||
|
||||
bool wpa_ap_remove(void* sta_info)
|
||||
bool wpa_ap_remove(u8* bssid)
|
||||
{
|
||||
struct hostapd_data *hapd = hostapd_get_hapd_data();
|
||||
|
||||
if (!sta_info || !hapd) {
|
||||
if (!hapd) {
|
||||
return false;
|
||||
}
|
||||
struct sta_info *sta = ap_get_sta(hapd, bssid);
|
||||
if (!sta) {
|
||||
return false;
|
||||
}
|
||||
struct sta_info *sta = NULL;
|
||||
sta = (struct sta_info*)sta_info;
|
||||
|
||||
#ifdef CONFIG_SAE
|
||||
if (sta->lock) {
|
||||
if (os_mutex_lock(sta->lock)) {
|
||||
if (os_semphr_take(sta->lock, 0)) {
|
||||
ap_free_sta(hapd, sta);
|
||||
} else {
|
||||
sta->remove_pending = true;
|
||||
|
Reference in New Issue
Block a user