OSDN Git Service

core/gatt: Don't register attribute handler until core service are registered
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Tue, 8 Nov 2016 08:38:43 +0000 (10:38 +0200)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Tue, 8 Nov 2016 15:09:49 +0000 (17:09 +0200)
commitf558fca8d64e3795b0654a90d343af1dd1d8b33c
tree4d6dfb90203719b955bd9f910e2ea6d45027a453
parent7237771ed9ac3c338c30399fd8e1e643ba659952
core/gatt: Don't register attribute handler until core service are registered

Wait until GAP and GATT service are registered to register attribute
handlers otherwise it may attempt to generate service changed without
having service changed registered which leads to print errors:

bluetoothd[2376]: Failed to obtain handles for "Service Changed" characteristic
src/gatt-database.c