shared/gatt-client: Ignore orphaned characteristics
authorAlain Michaud <alainm@chromium.org>
Fri, 1 May 2020 19:22:17 +0000 (19:22 +0000)
committerAyush Garg <ayush.garg@samsung.com>
Mon, 12 Apr 2021 09:00:49 +0000 (14:30 +0530)
commita9f1f74db01d6761da0a3a48b6c6e16bf26fb124
tree7814a8d9e5602189788d2c0b7b2d361aedf340f9
parent9ec8aefcec0cdb6db36b244013129eec29e2f068
shared/gatt-client: Ignore orphaned characteristics

The gatt discovery proceedure simplification to discover all
characteristics at once has exposed a device side issue where some
device implementation reports orphaned characteristics.  While this
technically shouldn't be allowed, some instances of this were observed
(namely on some Android phones).

The fix is to simply skip over orphaned characteristics and continue
with everything else that is valid.

This has been tested as part of the Android CTS tests against an
affected platform and was confirmed to have worked around the issue.

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