aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/wpa_supplicant.c
diff options
context:
space:
mode:
authorSunil Dutt <usdutt@codeaurora.org>2018-09-06 17:27:29 (GMT)
committerJouni Malinen <j@w1.fi>2018-10-12 16:59:26 (GMT)
commit91073ccaaa9b3d7e3af750ea9a0d18f097df0d4c (patch)
treedb8c1aa348d8a05393332174618e2e06baea5fe7 /wpa_supplicant/wpa_supplicant.c
parente8581183f98d5fab6ba15b405564152d7161de7d (diff)
downloadhostap-91073ccaaa9b3d7e3af750ea9a0d18f097df0d4c.zip
hostap-91073ccaaa9b3d7e3af750ea9a0d18f097df0d4c.tar.gz
hostap-91073ccaaa9b3d7e3af750ea9a0d18f097df0d4c.tar.bz2
OWE: Attempt more scans for OWE transition SSID if expected BSS not seen
This commit introduces a threshold for OWE transition BSS selection, which signifies the maximum number of selection attempts (scans) done for finding OWE BSS. This aims to do more scan attempts for OWE BSS and eventually select the open BSS if the selection/scan attempts for OWE BSS exceed the configured threshold. Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
Diffstat (limited to 'wpa_supplicant/wpa_supplicant.c')
-rw-r--r--wpa_supplicant/wpa_supplicant.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/wpa_supplicant/wpa_supplicant.c b/wpa_supplicant/wpa_supplicant.c
index 4531c62..eed9735 100644
--- a/wpa_supplicant/wpa_supplicant.c
+++ b/wpa_supplicant/wpa_supplicant.c
@@ -3307,6 +3307,7 @@ static void wpa_supplicant_enable_one_network(struct wpa_supplicant *wpa_s,
return;
ssid->disabled = 0;
+ ssid->owe_transition_bss_select_count = 0;
wpas_clear_temp_disabled(wpa_s, ssid, 1);
wpas_notify_network_enabled_changed(wpa_s, ssid);
@@ -3571,6 +3572,8 @@ void wpa_supplicant_select_network(struct wpa_supplicant *wpa_s,
wpa_s->disconnected = 0;
wpa_s->reassociate = 1;
wpa_s->last_owe_group = 0;
+ if (ssid)
+ ssid->owe_transition_bss_select_count = 0;
if (wpa_s->connect_without_scan ||
wpa_supplicant_fast_associate(wpa_s) != 1) {