]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Allow PNO scan also in connection completed state
authorvamsi krishna <vamsin@qti.qualcomm.com>
Wed, 8 Feb 2017 12:10:34 +0000 (17:40 +0530)
committerJouni Malinen <j@w1.fi>
Wed, 8 Feb 2017 13:55:35 +0000 (15:55 +0200)
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>
wpa_supplicant/scan.c

index 16f9c5c60ff0778217a43af73b2e65ab1b29a873..6eb5e052288039607c24e8855db888a108443312 100644 (file)
@@ -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;
        }