aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/interworking.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2012-09-14 13:03:12 -0700
committerDmitry Shmidt <dimitrysh@google.com>2012-09-14 13:03:12 -0700
commit89ca702e8ed3247d7007dbdebe531036671c34af (patch)
tree6871ab5f9e468a37e0a685455abf46a48b09d73a /wpa_supplicant/interworking.c
parentfa08f9eb31989e0973eb8ed0bd14c238be19ab0b (diff)
downloadexternal_wpa_supplicant_8-89ca702e8ed3247d7007dbdebe531036671c34af.zip
external_wpa_supplicant_8-89ca702e8ed3247d7007dbdebe531036671c34af.tar.gz
external_wpa_supplicant_8-89ca702e8ed3247d7007dbdebe531036671c34af.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. Change-Id: I145b4237074a97cc75fd68933fff7ed99b850630 Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
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;
}
}