aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/scan.c
diff options
context:
space:
mode:
authorvamsi krishna <vamsin@qti.qualcomm.com>2017-02-08 12:10:34 (GMT)
committerJouni Malinen <j@w1.fi>2017-02-08 13:55:35 (GMT)
commitb4fd1f0ed7fa72fbbf91060bb9ca093eb72dbd70 (patch)
treee1a2fc1673697dc708d9d0d82ba20e899c05c0d8 /wpa_supplicant/scan.c
parent6f9b4de228d8b24ba6fb4f2d72bd5ce013bcdf8e (diff)
downloadhostap-b4fd1f0ed7fa72fbbf91060bb9ca093eb72dbd70.zip
hostap-b4fd1f0ed7fa72fbbf91060bb9ca093eb72dbd70.tar.gz
hostap-b4fd1f0ed7fa72fbbf91060bb9ca093eb72dbd70.tar.bz2
Allow PNO scan also in connection completed state
Sched scan is supported by the kernel also in the connected state, so allow PNO scan to be issued in the connected state from wpa_supplicant as well. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
Diffstat (limited to 'wpa_supplicant/scan.c')
-rw-r--r--wpa_supplicant/scan.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/wpa_supplicant/scan.c b/wpa_supplicant/scan.c
index 16f9c5c..6eb5e05 100644
--- a/wpa_supplicant/scan.c
+++ b/wpa_supplicant/scan.c
@@ -2449,7 +2449,7 @@ int wpas_start_pno(struct wpa_supplicant *wpa_s)
return 0;
if ((wpa_s->wpa_state > WPA_SCANNING) &&
- (wpa_s->wpa_state <= WPA_COMPLETED)) {
+ (wpa_s->wpa_state < WPA_COMPLETED)) {
wpa_printf(MSG_ERROR, "PNO: In assoc process");
return -EAGAIN;
}