aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2012-09-13 18:05:55 -0700
committerDmitry Shmidt <dimitrysh@google.com>2012-09-14 12:54:53 -0700
commitfa08f9eb31989e0973eb8ed0bd14c238be19ab0b (patch)
tree3d8d63b373717de32103af1630dc9cc8b5b75b86 /wpa_supplicant
parent043a5a9d2586bf379a3f3e811c8c64d92050e131 (diff)
downloadexternal_wpa_supplicant_8-fa08f9eb31989e0973eb8ed0bd14c238be19ab0b.zip
external_wpa_supplicant_8-fa08f9eb31989e0973eb8ed0bd14c238be19ab0b.tar.gz
external_wpa_supplicant_8-fa08f9eb31989e0973eb8ed0bd14c238be19ab0b.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')
-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 093ab0d..b030a73 100644
--- a/wpa_supplicant/events.c
+++ b/wpa_supplicant/events.c
@@ -1064,6 +1064,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;
}
}