android/gatt: Fix incorrect UUID conversion

System Internals / BlueZ - Szymon Janc [tieto.com] - 14 December 2014 13:14 UTC

Android framework requires 128 bit UUIDs to be passed to it. It was expected that bt_string_to_uuid() creates 128bit UUID if passed string was in 128bit format.

Since e5af5138 "lib/uuid: Simplify BT base UUIDs when possible" this is no longer valid. Resulting UUID was shortened and Android Framework didn't recognized it.

This results in non-working HoG and possibly other GATT profiles. Fix this by explicitly converting UUID to 128bit before accessing u128 data.

bf67892 android/gatt: Fix incorrect UUID conversion
android/gatt.c | 12 +++++++-----
1 file changed, 7 insertions(+), 5 deletions(-)

Upstream: git.kernel.org


  • Share