summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAlex Blasche <alexander.blasche@qt.io>2019-01-08 10:52:41 +0100
committerAlex Blasche <alexander.blasche@qt.io>2019-01-08 15:19:44 +0000
commit45608abda7b9470ec0b3ea26e849ec71b637288d (patch)
tree1e689ccb6dbd35f601cb37764961da3e2a3dda62 /src
parent99b308ab5488e5cfa77f5078eebc2fa9387217b8 (diff)
Don't reverse uuids which are derived from Bluetooth's base uuid
The related bug only happens for custom uuids. Fixes: QTBUG-72681 Change-Id: I22d87b84bf3958ecce9b6020e3323f1e6c6a9255 Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
Diffstat (limited to 'src')
-rw-r--r--src/bluetooth/qbluetoothsocket_android.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bluetooth/qbluetoothsocket_android.cpp b/src/bluetooth/qbluetoothsocket_android.cpp
index a478819b..d7f17d17 100644
--- a/src/bluetooth/qbluetoothsocket_android.cpp
+++ b/src/bluetooth/qbluetoothsocket_android.cpp
@@ -196,7 +196,7 @@ static QBluetoothUuid reverseUuid(const QBluetoothUuid &serviceUuid)
bool isBaseUuid = false;
serviceUuid.toUInt32(&isBaseUuid);
if (isBaseUuid)
- return QBluetoothUuid();
+ return serviceUuid;
const quint128 original = serviceUuid.toUInt128();
quint128 reversed;