wsc: Remove WSC dbus interface when device disappears

Previously device.c would remove the whole object at the path of the
Device and the WSC interfaces but now the watches are called without the
whole object appearing and disappearing.
This commit is contained in:
Andrew Zaborowski 2016-07-14 02:38:04 +02:00 committed by Denis Kenzior
parent 19fa024bd8
commit d08874f842
1 changed files with 4 additions and 0 deletions

View File

@ -313,6 +313,10 @@ static void device_appeared(struct device *device, void *userdata)
static void device_disappeared(struct device *device, void *userdata)
{
struct l_dbus *dbus = dbus_get_bus();
l_dbus_object_remove_interface(dbus, device_get_path(device),
IWD_WSC_INTERFACE);
}
bool wsc_init(struct l_genl_family *in)