[RFC 2/2] wpa_supplicant: Notify scheduled scan stop, add notify logging

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Add call to wpa_supplicant_notify_scanning() into
wpa_supplicant_stop_sched_scan() to notify also the end of the scheduled
scan. This is for upper layer components relying on the scan state to be
able to trigger their own scan requests. Also add more logging for the
scan start and stop notifies.

Signed-off-by: Jussi Laakkonen <jussi.laakkonen@xxxxxxxxx>
---
 wpa_supplicant/scan.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/wpa_supplicant/scan.c b/wpa_supplicant/scan.c
index f0ab122f5..dd9c8a854 100644
--- a/wpa_supplicant/scan.c
+++ b/wpa_supplicant/scan.c
@@ -211,6 +211,8 @@ static void wpas_trigger_scan_cb(struct wpa_radio_work *work, int deinit)
 		return;
 	}
 
+	wpa_printf(MSG_DEBUG,
+			   "wpas_trigger_scan_cb notify scanning 1");
 	wpa_supplicant_notify_scanning(wpa_s, 1);
 
 	if (wpa_s->clear_driver_scan_cache) {
@@ -372,6 +374,8 @@ wpa_supplicant_start_sched_scan(struct wpa_supplicant *wpa_s,
 {
 	int ret;
 
+	wpa_printf(MSG_DEBUG,
+			   "wpa_supplicant_start_sched_scan notify scanning 1");
 	wpa_supplicant_notify_scanning(wpa_s, 1);
 	ret = wpa_drv_sched_scan(wpa_s, params);
 	if (ret)
@@ -394,6 +398,10 @@ static int wpa_supplicant_stop_sched_scan(struct wpa_supplicant *wpa_s)
 		return -1;
 	}
 
+	wpa_printf(MSG_DEBUG,
+			   "wpa_supplicant_start_sched_scan notify scanning 0");
+	wpa_supplicant_notify_scanning(wpa_s, 0);
+
 	return ret;
 }
 
-- 
2.39.2


_______________________________________________
Hostap mailing list
Hostap@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/hostap



[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux