[PATCH] Fix drop connection attempt issue when attempting to reconnect same bss,ess.
김우용
wykim at newratek.com
Fri Nov 4 00:32:41 PDT 2022
Issue : Drop connection attempt intermittently occurs when reconnect same bss,ess.
Cause: Issue occurs when removing current bss immediately after disconnect for reconnect same bss,ess.
Fix: Add code to block "remove current bss" when reconnect same bss,ess.
testing enviroment : wpa_supplicant conf : SAE, wpa_ptk_rekey = 60, wpa_deny_ptk0_rekey = 2
Signed-off-by : WooYong Kim <wykim at newratek.com>
---
wpa_supplicant/bss.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/wpa_supplicant/bss.c b/wpa_supplicant/bss.c index a3da86cae..bcf5173fc 100644
--- a/wpa_supplicant/bss.c
+++ b/wpa_supplicant/bss.c
@@ -992,6 +992,11 @@ void wpa_bss_flush_by_age(struct wpa_supplicant *wpa_s, int age)
if (wpa_bss_in_use(wpa_s, bss))
continue;
+ if((memcmp(bss->ssid, wpa_s->last_ssid->ssid, bss->ssid_len) == 0)&&
+ (wpa_s->wpa_state != WPA_COMPLETED) &&
+ wpa_s->reassoc_same_ess)
+ continue;
+
if (os_reltime_before(&bss->last_update, &t)) {
wpa_bss_remove(wpa_s, bss, __func__);
} else
--
2.25.1
More information about the Hostap
mailing list