summaryrefslogtreecommitdiffstats
path: root/src/bluetooth/qbluetoothserver_bluez.cpp
diff options
context:
space:
mode:
authorAlex Blasche <alexander.blasche@digia.com>2014-02-28 15:23:22 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-03-03 08:37:32 +0100
commit7e58d64a7714f214a2218ffac4f27206e7bb0d15 (patch)
treea53411d39e447b501f145d2e471aff2b03e86be0 /src/bluetooth/qbluetoothserver_bluez.cpp
parent17d38319d205fd186ffbb638e53e43fde011c753 (diff)
Fix not working listen() on Bluez with default Bluetooth addresses
Binding to the address 0 does not work. Change-Id: Ie2e9bfc64729e6bf82556c3384d2e72117fc39ab Reviewed-by: Nedim Hadzic <nedimhadzija@gmail.com> Reviewed-by: Fabian Bumberger <fbumberger@rim.com>
Diffstat (limited to 'src/bluetooth/qbluetoothserver_bluez.cpp')
-rw-r--r--src/bluetooth/qbluetoothserver_bluez.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bluetooth/qbluetoothserver_bluez.cpp b/src/bluetooth/qbluetoothserver_bluez.cpp
index 1ee055de..e5967f7a 100644
--- a/src/bluetooth/qbluetoothserver_bluez.cpp
+++ b/src/bluetooth/qbluetoothserver_bluez.cpp
@@ -160,7 +160,7 @@ bool QBluetoothServer::listen(const QBluetoothAddress &address, quint16 port)
if (!address.isNull())
convertAddress(address.toUInt64(), addr.rc_bdaddr.b);
else
- convertAddress(Q_UINT64_C(0), addr.rc_bdaddr.b);
+ convertAddress(device.address().toUInt64(), addr.rc_bdaddr.b);
if (::bind(sock, reinterpret_cast<sockaddr *>(&addr), sizeof(sockaddr_rc)) < 0) {