2016-05-12 13:48:39

by François Beaufort

[permalink] [raw]
Subject: [PATCH BlueZ] gap: Enable external flag

This enable GAP Characteristics to be accessed over D-Bus.

In Web Bluetooth world, we would like developers to access GAP characteristics
the same way they already do with other characteristics. Sadly,
`generic_access` service seems to be unaccessible when not marked as `external`.


Francois Beaufort (1):
gap: Enable external flag

profiles/gap/gas.c | 1 +
1 file changed, 1 insertion(+)

--
2.7.0



2016-05-12 13:48:40

by François Beaufort

[permalink] [raw]
Subject: [PATCH BlueZ] gap: Enable external flag

---
profiles/gap/gas.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/profiles/gap/gas.c b/profiles/gap/gas.c
index 35b996c..e3b2c40 100644
--- a/profiles/gap/gas.c
+++ b/profiles/gap/gas.c
@@ -306,6 +306,7 @@ static int gap_driver_accept(struct btd_service *service)
static struct btd_profile gap_profile = {
.name = "gap-profile",
.remote_uuid = GAP_UUID,
+ .external = true,
.device_probe = gap_driver_probe,
.device_remove = gap_driver_remove,
.accept = gap_driver_accept
--
2.7.0