diff options
author | h.sandeep <h.sandeep@samsung.com> | 2017-05-25 04:05:39 +0530 |
---|---|---|
committer | Sandeep Hattiholi <h.sandeep@samsung.com> | 2017-05-24 10:35:35 +0000 |
commit | 4c4d24f7a4fb57a53d9ac1411be7f6f4e60bbe4d (patch) | |
tree | 5237617949fd5825cefc9784bc4c5022a6c9eb48 | |
parent | f81d02c4312a649771a3d94897c77453da17b2e8 (diff) | |
download | bluez-4c4d24f7a4fb57a53d9ac1411be7f6f4e60bbe4d.tar.gz bluez-4c4d24f7a4fb57a53d9ac1411be7f6f4e60bbe4d.tar.bz2 bluez-4c4d24f7a4fb57a53d9ac1411be7f6f4e60bbe4d.zip |
[Gatt-Client]: Fix Notification callback issue.
This patch fixes the notification callback issue
when gatt client clone logic is used.
Change-Id: I2f15256ab27dd401d93bdb49ae16199fed00bff5
Signed-off-by: h.sandeep <h.sandeep@samsung.com>
-rw-r--r-- | src/gatt-client.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/gatt-client.c b/src/gatt-client.c index 9ed62cf2..f72fbf26 100644 --- a/src/gatt-client.c +++ b/src/gatt-client.c @@ -2109,8 +2109,16 @@ void btd_gatt_client_connected(struct btd_gatt_client *client) DBG("Device connected."); bt_gatt_client_unref(client->gatt); +#ifdef TIZEN_FEATURE_BLUEZ_MODIFY + /* The Client data is not getting updated + * while clone logic is used, because of which + * the notification callbacks and other debug callbacks + * are not getting set properly, untill the clone logic + * is fixed, the ref logic is used */ + client->gatt = bt_gatt_client_ref(gatt); +#else client->gatt = bt_gatt_client_clone(gatt); - +#endif /* * Services have already been created before. Re-enable notifications * for any pre-registered notification sessions. |