diff options
author | Matt Ranostay <matt.ranostay@konsulko.com> | 2018-11-04 14:49:18 -0800 |
---|---|---|
committer | Matt Ranostay <matt.ranostay@konsulko.com> | 2018-11-12 03:58:47 -0800 |
commit | b379d641c4d1862baa47c7d2522773925aa4dd43 (patch) | |
tree | 9a5d9b89b2b2129259e3031cea363fba801930af /binding/bluetooth-api.h | |
parent | 28dae92e48c05478bb05a9d6de3ff26dbd103037 (diff) |
binding: bluetooth: fix interface removal event
Don't send adapter name in 'device' parameter on removal of
bluetooth interface.
Bug-AGL: SPEC-1630
Change-Id: I15cb4dcc791d36beb8e8b41993644cad331d3cae
Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
Diffstat (limited to 'binding/bluetooth-api.h')
-rw-r--r-- | binding/bluetooth-api.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/binding/bluetooth-api.h b/binding/bluetooth-api.h index 31a1d76..209f992 100644 --- a/binding/bluetooth-api.h +++ b/binding/bluetooth-api.h @@ -92,6 +92,11 @@ static inline gchar *bluez_return_device(const char *path) if (!basename) return NULL; basename++; + + /* be sure it is a bluez path with device */ + if (strncmp(basename, "dev_", 4)) + return NULL; + /* at least one character */ return *basename ? g_strdup(basename) : NULL; } |