summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@theqtcompany.com>2016-01-14 16:03:49 +0100
committerChristian Kandeler <christian.kandeler@theqtcompany.com>2016-01-15 12:35:30 +0000
commit3ebb79fbb63f422248232db61ff9ca7c48540855 (patch)
tree804de02349fa096d6f7863317636abe969f0c860 /src
parent4a44e0b40422680401c0fd6f588618d2c7a0ff2c (diff)
Bluetooth: Fix mapping of device address to HCI id.
The previous code always returned the id of the first device in the list. Change-Id: I6f3cde2405d53eab009d7409d9e3c6b47d97e53b Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
Diffstat (limited to 'src')
-rw-r--r--src/bluetooth/bluez/hcimanager.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bluetooth/bluez/hcimanager.cpp b/src/bluetooth/bluez/hcimanager.cpp
index 30511ae5..16314f56 100644
--- a/src/bluetooth/bluez/hcimanager.cpp
+++ b/src/bluetooth/bluez/hcimanager.cpp
@@ -136,7 +136,7 @@ int HciManager::hciForAddress(const QBluetoothAddress &deviceAdapter)
int result = memcmp(&adapter, &devInfo.bdaddr, sizeof(bdaddr_t));
if (result == 0 || deviceAdapter.isNull()) // addresses match
- return devRequest->dev_id;
+ return devInfo.dev_id;
}
return -1;