diff options
author | Daniel Drake <dsd@laptop.org> | 2010-07-28 02:08:17 -0700 |
---|---|---|
committer | Dan Williams <dcbw@redhat.com> | 2010-07-28 02:08:17 -0700 |
commit | 9a6dcee6a00dd4539456149968c92a53642e8c13 (patch) | |
tree | c70c0a78a712debc471b817236147a84ea592450 | |
parent | e9cd843f48cc5f9686025eecee18337ec4f4801a (diff) |
wifi: ensure scanning property is updated on supplicant interface state changes
The wifi device is considered to be 'scanning' if the supplicant emits
the scanning signal or if it's in the scanning state; but the code
didn't correctly handle notifications when the supplicant was in the
scanning state.
-rw-r--r-- | src/nm-device-wifi.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/nm-device-wifi.c b/src/nm-device-wifi.c index d33ec4ca1d..c44ffeb6e0 100644 --- a/src/nm-device-wifi.c +++ b/src/nm-device-wifi.c @@ -2433,6 +2433,11 @@ supplicant_iface_connection_state_cb_handler (gpointer user_data) } out: + /* Signal scanning state changes */ + if ( task->new_state == NM_SUPPLICANT_INTERFACE_CON_STATE_SCANNING + || task->old_state == NM_SUPPLICANT_INTERFACE_CON_STATE_SCANNING) + g_object_notify (G_OBJECT (self), "scanning"); + finish_supplicant_task (task, FALSE); return FALSE; } |