aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/events.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2012-09-14 01:05:55 (GMT)
committerJouni Malinen <j@w1.fi>2012-09-14 01:05:55 (GMT)
commitab03f6da7a74d1c31ae0808def2806e218f77652 (patch)
treefdbf8bc61a2a707d7eef32500290ffd6a46f55a2 /wpa_supplicant/events.c
parent58d3760e7e7dc623a702cc712fd282710ff5ce40 (diff)
downloadhostap-ab03f6da7a74d1c31ae0808def2806e218f77652.zip
hostap-ab03f6da7a74d1c31ae0808def2806e218f77652.tar.gz
hostap-ab03f6da7a74d1c31ae0808def2806e218f77652.tar.bz2
P2P: Schedule new scan if P2P operation delays scan
This makes sure that the interrupted station mode scan can be completed after the P2P operations have had their chance of using the radio. 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 f8aa50d..64a5554 100644
--- a/wpa_supplicant/events.c
+++ b/wpa_supplicant/events.c
@@ -1056,6 +1056,8 @@ static int _wpa_supplicant_event_scan_results(struct wpa_supplicant *wpa_s,
if (p2p_other_scan_completed(wpa_s->global->p2p) == 1) {
wpa_dbg(wpa_s, MSG_DEBUG, "P2P: Pending P2P operation "
"stopped scan processing");
+ wpa_s->sta_scan_pending = 1;
+ wpa_supplicant_req_scan(wpa_s, 5, 0);
return -1;
}
}