Commit 3ebb79fb authored by Christian Kandeler's avatar Christian Kandeler
Browse files

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: default avatarAlex Blasche <alexander.blasche@theqtcompany.com>
parent 4a44e0b4
Branches
Tags
No related merge requests found
Showing with 1 addition and 1 deletion
......@@ -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;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment