Diff between 64f864173393f6e750a94b895f39119ca80b93df and 14569a33418a4c1dc07cca090b9336373d63a085
Changed Files
| File | Additions | Deletions | Status |
| src/device.c | +3 | -2 | modified |
Full Patch
diff --git a/src/device.c b/src/device.c
index 831efea..0dc8c86 100644
--- a/src/device.c
+++ b/src/device.c
@@ -3984,8 +3984,6 @@ static void gatt_client_ready_cb(bool success, uint8_t att_ecode,
device_accept_gatt_profiles(device);
- g_slist_foreach(device->attios, attio_connected, device->attrib);
-
btd_gatt_client_ready(device->client_dbus);
}
@@ -4007,6 +4005,9 @@ static void gatt_client_init(struct btd_device *device)
return;
}
+ /* Notify attio so it can react to notifications */
+ g_slist_foreach(device->attios, attio_connected, device->attrib);
+
if (!bt_gatt_client_set_ready_handler(device->client,
gatt_client_ready_cb,
device, NULL)) {