From d01713989051d7651378994316acbdacd8ab8a4d Mon Sep 17 00:00:00 2001 From: Matt Ranostay Date: Sun, 5 May 2019 21:29:22 -0700 Subject: binding: bluetooth-map: change uuid from MNS to MAS_UUID Not all devices will have Message Notification Service initially when paired, and so check for Message Access Service instead. Bug-AGL: SPEC-2351 Change-Id: Ia5172c53631c6137626135795b97549f467bafe6 Signed-off-by: Matt Ranostay --- binding/bluetooth-map-api.c | 2 +- binding/bluetooth-map-common.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'binding') diff --git a/binding/bluetooth-map-api.c b/binding/bluetooth-map-api.c index d05709e..c72e7e2 100644 --- a/binding/bluetooth-map-api.c +++ b/binding/bluetooth-map-api.c @@ -391,7 +391,7 @@ static gboolean is_map_dev_and_init(struct map_state *ns, struct json_object *de const char *address = NULL; struct json_object *val1 = NULL; - if (g_strcmp0(MAP_UUID, uuid)) + if (g_strcmp0(MAS_UUID, uuid)) continue; json_object_object_get_ex(props, "address", &val1); diff --git a/binding/bluetooth-map-common.h b/binding/bluetooth-map-common.h index 0ce618e..4b43c7e 100644 --- a/binding/bluetooth-map-common.h +++ b/binding/bluetooth-map-common.h @@ -32,7 +32,7 @@ #define AFB_BINDING_VERSION 3 #include -#define MAP_UUID "00001133-0000-1000-8000-00805f9b34fb" +#define MAS_UUID "00001132-0000-1000-8000-00805f9b34fb" struct call_work; -- cgit 1.2.3-korg