]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
AOSP: Fix scan notification in case of canceling scan
authorJouni Malinen <j@w1.fi>
Fri, 1 Nov 2013 10:47:53 +0000 (12:47 +0200)
committerJouni Malinen <j@w1.fi>
Fri, 1 Nov 2013 14:36:24 +0000 (16:36 +0200)
This is rebased version of this AOSP commit:

commit 20df807cb700c516ff346732f1bc8f914d0d26d8
Author: Dmitry Shmidt <dimitrysh@google.com>
Date:   Fri Apr 8 15:35:17 2011 -0700

    Fix scan notification in case of canceling scan

Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
wpa_supplicant/scan.c

index e953c851ef8ef137cca028ed7025e961729723bb..786549154eab105e3a49dc64419cd2cc397f9a35 100644 (file)
@@ -1201,6 +1201,9 @@ void wpa_supplicant_cancel_scan(struct wpa_supplicant *wpa_s)
        wpa_dbg(wpa_s, MSG_DEBUG, "Cancelling scan request");
        eloop_cancel_timeout(wpa_supplicant_scan, wpa_s, NULL);
        wpas_p2p_continue_after_scan(wpa_s);
+#ifdef ANDROID
+       wpa_supplicant_notify_scanning(wpa_s, 0);
+#endif
 }