summaryrefslogtreecommitdiffstats
path: root/binding
diff options
context:
space:
mode:
authorMatt Ranostay <matt.ranostay@konsulko.com>2019-05-08 02:14:01 -0700
committerMatt Ranostay <matt.ranostay@konsulko.com>2019-05-08 02:56:12 -0700
commit063ca7cb02117d8788af450e3d382705440fe8f0 (patch)
tree74a3d259c604e2430851b4b7eddcb2303600f878 /binding
parent4fd90fb81a9ab329800c41473ba948af16bbda8e (diff)
binding: bluetooth-map: fix issue with other service OBEX transfers
Don't pick up other services OBEX transfers by checking path of MAP session. This was an issue that a notification event was being sent with the PBAP contact vCards. Bug-AGL: SPEC-2351 Change-Id: I88e34056430760deeeb3815feff5cdca33b20435 Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
Diffstat (limited to 'binding')
-rw-r--r--binding/bluetooth-map-api.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/binding/bluetooth-map-api.c b/binding/bluetooth-map-api.c
index 898487f..c897838 100644
--- a/binding/bluetooth-map-api.c
+++ b/binding/bluetooth-map-api.c
@@ -445,6 +445,13 @@ static void bluez_map_signal_callback(
if (g_strcmp0(key, BLUEZ_OBEX_TRANSFER_INTERFACE))
continue;
+ call_work_lock(ns);
+ if (!ns->session_path || strncmp(ns->session_path, path, strlen(ns->session_path))) {
+ call_work_unlock(ns);
+ continue;
+ }
+ call_work_unlock(ns);
+
array1 = g_variant_iter_new(var);
while (g_variant_iter_next(array1, "{&sv}", &name, &val)) {