aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/events.c
diff options
context:
space:
mode:
authorMahesh A Saptasagar <c_msapta@qti.qualcomm.com>2015-06-30 07:11:27 (GMT)
committerJouni Malinen <j@w1.fi>2015-08-13 18:10:16 (GMT)
commit0d0f7ecbb18990299e394c60e9dae842a54cf1ca (patch)
tree153798d742824fdcad4ca8fb81d505258563001f /wpa_supplicant/events.c
parent76de2b6708e050caf1f84c9ddc2c435c9f2e114a (diff)
downloadhostap-0d0f7ecbb18990299e394c60e9dae842a54cf1ca.zip
hostap-0d0f7ecbb18990299e394c60e9dae842a54cf1ca.tar.gz
hostap-0d0f7ecbb18990299e394c60e9dae842a54cf1ca.tar.bz2
Do not stop ongoing PNO sched_scan on association/disconnection
PNO was stopped by the wpa_supplicant during the connection attempts or while handling disassociation indication. External entities, mainly, the Android Wi-Fi framework, does not expects PNO to be stopped by other modules. Hence, do not stop the sched_scan in these scenarios if it is triggered externally for PNO. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
Diffstat (limited to 'wpa_supplicant/events.c')
-rw-r--r--wpa_supplicant/events.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/wpa_supplicant/events.c b/wpa_supplicant/events.c
index 829cd3f..d95e066 100644
--- a/wpa_supplicant/events.c
+++ b/wpa_supplicant/events.c
@@ -2377,7 +2377,8 @@ static void wpa_supplicant_event_disassoc_finish(struct wpa_supplicant *wpa_s,
"try to re-connect");
wpa_s->reassociate = 0;
wpa_s->disconnected = 1;
- wpa_supplicant_cancel_sched_scan(wpa_s);
+ if (!wpa_s->pno)
+ wpa_supplicant_cancel_sched_scan(wpa_s);
}
bssid = wpa_s->bssid;
if (is_zero_ether_addr(bssid))