diff options
author | Alex Blasche <alexander.blasche@digia.com> | 2014-02-28 15:23:22 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-03-03 08:37:32 +0100 |
commit | 7e58d64a7714f214a2218ffac4f27206e7bb0d15 (patch) | |
tree | a53411d39e447b501f145d2e471aff2b03e86be0 /src/bluetooth/qbluetoothserver_bluez.cpp | |
parent | 17d38319d205fd186ffbb638e53e43fde011c753 (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.cpp | 2 |
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) { |