mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-04 09:50:17 +01:00
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:
parent
bebf8d48b0
commit
64182e27d7
1 changed files with 5 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue