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.
This commit is contained in:
Daniel Drake 2010-07-28 02:08:17 -07:00 committed by Dan Williams
parent bebf8d48b0
commit 64182e27d7

View file

@ -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;
}