aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/events.c
diff options
context:
space:
mode:
authorDan Williams <dcbw@redhat.com>2009-05-27 18:06:40 (GMT)
committerJouni Malinen <j@w1.fi>2009-11-25 22:46:59 (GMT)
commit91690872f4c1236684489bcde99a52cbe428ee59 (patch)
treed440de20547227d047f7369db51e751342476b12 /wpa_supplicant/events.c
parentc5c52d5a6de3b0032b44beee63a665f9a027a3e9 (diff)
downloadhostap-06-91690872f4c1236684489bcde99a52cbe428ee59.zip
hostap-06-91690872f4c1236684489bcde99a52cbe428ee59.tar.gz
hostap-06-91690872f4c1236684489bcde99a52cbe428ee59.tar.bz2
dbus: add 'scanning' property
When the supplicant is connected and performs a scan, it doesn't enter WPA_SCANNING state for various reasons. However, external programs still need to know that the supplicant is scanning since they may not wish to perform certain operations during a scan (as those operations will likely fail or yield incorrect results). Add a 'scanning' property and signal to the supplicant dbus interface to allow clients to synchronize better with the supplicant when it scans. Signed-off-by: Dan Williams <dcbw@redhat.com> (cherry picked from commit cb8564b1ddf2738fa26a80523078749bb7a55c5f)
Diffstat (limited to 'wpa_supplicant/events.c')
-rw-r--r--wpa_supplicant/events.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/wpa_supplicant/events.c b/wpa_supplicant/events.c
index c1b0c78..7d13d02 100644
--- a/wpa_supplicant/events.c
+++ b/wpa_supplicant/events.c
@@ -623,6 +623,8 @@ static void wpa_supplicant_event_scan_results(struct wpa_supplicant *wpa_s)
struct wpa_scan_res *selected = NULL;
struct wpa_ssid *ssid = NULL;
+ wpa_supplicant_notify_scanning(wpa_s, 0);
+
if (wpa_supplicant_get_scan_results(wpa_s) < 0) {
if (wpa_s->conf->ap_scan == 2)
return;