gatt: Either notify or indicate, do not do both
authorCurtis Maves <curtis@maves.io>
Mon, 12 Apr 2021 20:34:26 +0000 (16:34 -0400)
committerAyush Garg <ayush.garg@samsung.com>
Fri, 11 Mar 2022 13:38:35 +0000 (19:08 +0530)
commit0000962ba5abd8ffe67e6e585557a6466b523cbf
treed0f6739d6fac43413ff57cbc71a471a49e029b2e
parent383d485bf6567524163355d5364003dbfc3bc8ef
gatt: Either notify or indicate, do not do both

AcquireNotify and StartNotify starts notifications and/or indications
by whether the characteristic supports them. Before this patch, if both
were supported, Bluez would try to start both simultaneously. This
patch changes this behavior so if both are supported, only
notifications are started. Test cases have also be updated accordingly.

Signed-off-by: Anuj Jain <anuj01.jain@samsung.com>
Signed-off-by: Ayush Garg <ayush.garg@samsung.com>
src/shared/gatt-client.c
unit/test-gatt.c