aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/events.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2012-06-30 17:30:40 (GMT)
committerJouni Malinen <j@w1.fi>2012-06-30 17:30:40 (GMT)
commit10ac7ddf334c794b7354d3078a1084030e029b92 (patch)
tree4702206569e2e56fafe244fda8663f5646c7d148 /wpa_supplicant/events.c
parent3df2f4fe99e18f7fb449477a63d13abb3ad4c891 (diff)
downloadhostap-10ac7ddf334c794b7354d3078a1084030e029b92.zip
hostap-10ac7ddf334c794b7354d3078a1084030e029b92.tar.gz
hostap-10ac7ddf334c794b7354d3078a1084030e029b92.tar.bz2
Do not share special scan results with virtual interfaces
When a special scan_res_handler is used the scan parameters may not have been suitable for other purposes (e.g., during a p2p_find operation). As such, do not indicate such scan results to other virtual interfaces using the same radio. Signed-hostap: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'wpa_supplicant/events.c')
-rw-r--r--wpa_supplicant/events.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/wpa_supplicant/events.c b/wpa_supplicant/events.c
index 6685b6b..59b103e 100644
--- a/wpa_supplicant/events.c
+++ b/wpa_supplicant/events.c
@@ -1001,7 +1001,8 @@ static int wpa_supplicant_need_to_roam(struct wpa_supplicant *wpa_s,
}
-/* Return < 0 if no scan results could be fetched. */
+/* Return < 0 if no scan results could be fetched or if scan results should not
+ * be shared with other virtual interfaces. */
static int _wpa_supplicant_event_scan_results(struct wpa_supplicant *wpa_s,
union wpa_event_data *data)
{
@@ -1067,7 +1068,7 @@ static int _wpa_supplicant_event_scan_results(struct wpa_supplicant *wpa_s,
scan_res_handler(wpa_s, scan_res);
wpa_scan_results_free(scan_res);
- return 0;
+ return -2;
}
if (ap) {