aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/interworking.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2012-09-14 01:07:02 (GMT)
committerJouni Malinen <j@w1.fi>2012-09-14 01:07:02 (GMT)
commit0dd54313127eb02fe45eded4b84ec6ea830495d3 (patch)
treecdf703d9bbd9db057a11183f24b4d57e7938dd50 /wpa_supplicant/interworking.c
parentab03f6da7a74d1c31ae0808def2806e218f77652 (diff)
downloadhostap-0dd54313127eb02fe45eded4b84ec6ea830495d3.zip
hostap-0dd54313127eb02fe45eded4b84ec6ea830495d3.tar.gz
hostap-0dd54313127eb02fe45eded4b84ec6ea830495d3.tar.bz2
Do not inform other virtual interfaces of scan results in all cases
If a connection operation is started on an interface based on scan results, other virtual interfaces should not be information about the results to avoid potential concurrent operations during the association steps. Since the sibling notification of scan results received was added as an optimization, skipping it for this type of cases is the simplest way of avoiding unnecessary concurrent operations. Signed-hostap: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'wpa_supplicant/interworking.c')
-rw-r--r--wpa_supplicant/interworking.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/wpa_supplicant/interworking.c b/wpa_supplicant/interworking.c
index b362bcb..22f709f 100644
--- a/wpa_supplicant/interworking.c
+++ b/wpa_supplicant/interworking.c
@@ -59,7 +59,7 @@ static void interworking_reconnect(struct wpa_supplicant *wpa_s)
if (now.sec - wpa_s->last_scan.sec <= 5) {
wpa_printf(MSG_DEBUG, "Interworking: Old scan results "
"are fresh - connect without new scan");
- if (wpas_select_network_from_last_scan(wpa_s) == 0)
+ if (wpas_select_network_from_last_scan(wpa_s) >= 0)
return;
}
}