mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-12-21 11:52:34 +01:00
device: PropertyChanged events when interface goes down
This commit is contained in:
parent
fe6485147c
commit
0095b1d9e4
11
src/device.c
11
src/device.c
@ -957,9 +957,20 @@ static void device_netdev_notify(struct netdev *netdev, bool up,
|
|||||||
dbus_pending_reply(&device->connect_pending,
|
dbus_pending_reply(&device->connect_pending,
|
||||||
dbus_error_aborted(device->connect_pending));
|
dbus_error_aborted(device->connect_pending));
|
||||||
|
|
||||||
|
if (device->connected_network) {
|
||||||
|
struct network *network = device->connected_network;
|
||||||
|
|
||||||
device->connected_bss = NULL;
|
device->connected_bss = NULL;
|
||||||
device->connected_network = NULL;
|
device->connected_network = NULL;
|
||||||
|
|
||||||
|
l_dbus_property_changed(dbus, device_get_path(device),
|
||||||
|
IWD_DEVICE_INTERFACE,
|
||||||
|
"ConnectedNetwork");
|
||||||
|
l_dbus_property_changed(dbus, network_get_path(network),
|
||||||
|
IWD_NETWORK_INTERFACE,
|
||||||
|
"Connected");
|
||||||
|
}
|
||||||
|
|
||||||
l_hashmap_foreach_remove(device->networks,
|
l_hashmap_foreach_remove(device->networks,
|
||||||
device_remove_network, device);
|
device_remove_network, device);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user