GATT: Initialise service discovery handle range to support GATT-caching 50/253450/1 accepted/tizen/unified/20210218.042152 submit/tizen/20210216.223518
authorAyush Garg <ayush.garg@samsung.com>
Wed, 10 Feb 2021 06:40:38 +0000 (12:10 +0530)
committerAyush Garg <ayush.garg@samsung.com>
Wed, 10 Feb 2021 06:40:38 +0000 (12:10 +0530)
commitae3f7f943354c56e4449184096684a5a66a95af2
tree802ded88aa889e959b0f3dfc96f6c672f7fdcd88
parentd798c68a8a39d6a3ae22e91d50c06275f6d61e5f
GATT: Initialise service discovery handle range to support GATT-caching

This change will initialise handle range based on
whether GATT database is empty or not.
This is done to properly handle GATT-Cached data and
prevent resetting it in case when same database-hash
is received from GATT-Server during service discovery.

Change-Id: Ic2a8dc4ff9a5ccf563615156b7b5e97d1e2b3bca
Signed-off-by: Ayush Garg <ayush.garg@samsung.com>
src/shared/gatt-client.c