Parent: 93bfa5fa925e2ed8271d65d363b7abd4911e2d43
Author: Arman Uguray <armansito@chromium.org>
Committer: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date: 2015-02-06 14:40:36
Tree: 7612f0590956efa5cc0207c61a9d0e0014082f7d
shared/gatt: Allow register_notify without CCC Most OSes allow to register characteristics without a CCC even if they do support notification/indication, this is not according to the specification and may not even work in practice since there is no way to enable notifications/indications without a CCC to write to but there has been some applications that do that anyway. This patch fixes this behavior so that bt_gatt_client_register_notify immediately registers the callback and returns success for characteristics with no CCC, this does cause any air traffic therefore it is safe to assume it won't cause any problems.
Diffstat
| M | src/shared/gatt-client.c | | | 43 | +++++++++++++++++++++++++- - - - - - - - - - - - - - - - - - |
1 files changed, 25 insertions(+), 18 deletions(-)