3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-12-21 03:32:42 +01:00

device: PropertyChanged events when interface goes down

This commit is contained in:
Andrew Zaborowski 2016-07-02 16:42:37 +02:00 committed by Denis Kenzior
parent fe6485147c
commit 0095b1d9e4

View File

@ -957,8 +957,19 @@ static void device_netdev_notify(struct netdev *netdev, bool up,
dbus_pending_reply(&device->connect_pending,
dbus_error_aborted(device->connect_pending));
device->connected_bss = NULL;
device->connected_network = NULL;
if (device->connected_network) {
struct network *network = device->connected_network;
device->connected_bss = 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,
device_remove_network, device);