Add characteristic if CCCD value cannot be read
Add the characteristic UUID to mIndicateChars as soon as its Client
Characteristic Configuration descriptor is found.
Previously, the characteristic was added only after attempting to read
the descriptor value. If reading the descriptor failed, the
characteristic was not added to mIndicateChars. As a result, value
changes from the characteristic were not handled and data could not be
read from the device.
Registering the characteristic before reading the descriptor allows
value changes to be handled even when reading the descriptor value
fails.
Fixes: QTBUG-80580
Pick-to: 6.12 6.11 6.8
Change-Id: I97813d16351143e39b46d0be0832ec7addeacc94
Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>