aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/events.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2012-11-25 10:47:43 (GMT)
committerJouni Malinen <j@w1.fi>2012-11-25 10:47:43 (GMT)
commit5cc703223982e735e74a027fe2fc6cfa321c5ee5 (patch)
tree3cfc17ea5f974309017f0a8630124f5634aeb524 /wpa_supplicant/events.c
parent13e1d2e29228c3896856b154114d64e81f2e1f52 (diff)
downloadhostap-5cc703223982e735e74a027fe2fc6cfa321c5ee5.zip
hostap-5cc703223982e735e74a027fe2fc6cfa321c5ee5.tar.gz
hostap-5cc703223982e735e74a027fe2fc6cfa321c5ee5.tar.bz2
P2P: Avoid multi-channel scans when they are not needed
If the driver does not support multi-channel concurrency and a virtual interface that shares the same radio with the current interface is operating there may not be need to scan other channels apart from the current operating channel on the other virtual interface. Filter out other channels in case we are trying to find a connection for a station interface when we are not configured to prefer station connection and a concurrent operation is already in process. Signed-hostap: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'wpa_supplicant/events.c')
-rw-r--r--wpa_supplicant/events.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/wpa_supplicant/events.c b/wpa_supplicant/events.c
index 13e5ab7..35ba8e4 100644
--- a/wpa_supplicant/events.c
+++ b/wpa_supplicant/events.c
@@ -877,6 +877,8 @@ static void wpa_supplicant_req_new_scan(struct wpa_supplicant *wpa_s,
#endif /* CONFIG_P2P */
return;
}
+
+ wpa_s->scan_for_connection = 1;
wpa_supplicant_req_scan(wpa_s, timeout_sec, timeout_usec);
}