From d08874f8426f5a3596fec96d75829d65c34c2d98 Mon Sep 17 00:00:00 2001 From: Andrew Zaborowski Date: Thu, 14 Jul 2016 02:38:04 +0200 Subject: [PATCH] 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. --- src/wsc.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/wsc.c b/src/wsc.c index a240ab3d..7c151652 100644 --- a/src/wsc.c +++ b/src/wsc.c @@ -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)