diff options
author | Dan Williams <dcbw@redhat.com> | 2009-05-27 21:06:40 +0300 |
---|---|---|
committer | Jouni Malinen <j@w1.fi> | 2009-05-27 21:06:40 +0300 |
commit | cb8564b1ddf2738fa26a80523078749bb7a55c5f (patch) | |
tree | 11dadd55fd6d5833df2d83a8faf6c16cec103fd4 /wpa_supplicant/wpa_supplicant_i.h | |
parent | 2976121955ba0e2f52c09fbffc93f91dbf0d845b (diff) | |
download | external_wpa_supplicant_8_ti-cb8564b1ddf2738fa26a80523078749bb7a55c5f.zip external_wpa_supplicant_8_ti-cb8564b1ddf2738fa26a80523078749bb7a55c5f.tar.gz external_wpa_supplicant_8_ti-cb8564b1ddf2738fa26a80523078749bb7a55c5f.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>
Diffstat (limited to 'wpa_supplicant/wpa_supplicant_i.h')
-rw-r--r-- | wpa_supplicant/wpa_supplicant_i.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/wpa_supplicant/wpa_supplicant_i.h b/wpa_supplicant/wpa_supplicant_i.h index 8d131fc..63984d8 100644 --- a/wpa_supplicant/wpa_supplicant_i.h +++ b/wpa_supplicant/wpa_supplicant_i.h @@ -329,6 +329,7 @@ struct wpa_supplicant { struct ctrl_iface_priv *ctrl_iface; wpa_states wpa_state; + int scanning; int new_connection; int reassociated_connection; @@ -431,6 +432,8 @@ int wpa_supplicant_scard_init(struct wpa_supplicant *wpa_s, /* scan.c */ void wpa_supplicant_req_scan(struct wpa_supplicant *wpa_s, int sec, int usec); void wpa_supplicant_cancel_scan(struct wpa_supplicant *wpa_s); +void wpa_supplicant_notify_scanning(struct wpa_supplicant *wpa_s, + int scanning); /* events.c */ void wpa_supplicant_mark_disassoc(struct wpa_supplicant *wpa_s); |