From 64182e27d7124489524e1a9c9dca23ccd0455f32 Mon Sep 17 00:00:00 2001 From: Daniel Drake Date: Wed, 28 Jul 2010 02:08:17 -0700 Subject: [PATCH] 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. --- src/nm-device-wifi.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/nm-device-wifi.c b/src/nm-device-wifi.c index 895d4d1765..3973fe7bc5 100644 --- a/src/nm-device-wifi.c +++ b/src/nm-device-wifi.c @@ -2593,6 +2593,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; }