diff options
author | Alex Blasche <alexander.blasche@digia.com> | 2014-06-16 12:27:55 +0200 |
---|---|---|
committer | Alex Blasche <alexander.blasche@digia.com> | 2014-06-16 14:17:42 +0200 |
commit | 50e7588d6d2b4a21b2c4aebc0417b5cfcd8a9c03 (patch) | |
tree | fdc93854fb3614f8557a4b53ce983ac9c09c78e0 /src/bluetooth/qbluetoothsocket_bluez.cpp | |
parent | 680537e519c859c79251da94fa15740d87b5ca35 (diff) |
Provide guarding against non-BTLE enabled versions of Bluez
This disables the gatttool based controller as well. While it might
compile on older systems they are likely to not have a
gatttool and why would a Bluez version without BTLE symbols ever
work anyway.
Change-Id: I761e482d3dd1e99008c5d170053e19a1a3a51e6c
Reviewed-by: Fabian Bumberger <fbumberger@rim.com>
Diffstat (limited to 'src/bluetooth/qbluetoothsocket_bluez.cpp')
-rw-r--r-- | src/bluetooth/qbluetoothsocket_bluez.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/bluetooth/qbluetoothsocket_bluez.cpp b/src/bluetooth/qbluetoothsocket_bluez.cpp index cb963b4f..c4d84211 100644 --- a/src/bluetooth/qbluetoothsocket_bluez.cpp +++ b/src/bluetooth/qbluetoothsocket_bluez.cpp @@ -167,12 +167,17 @@ void QBluetoothSocketPrivate::connectToService(const QBluetoothAddress &address, // We don't want to make this public API offering for now especially since // only Linux (of all platforms supported by this library) supports this type // of socket. + +#if defined(QT_BLUEZ_BLUETOOTH) && !defined(QT_BLUEZ_NO_BTLE) if (isLowEnergySocket) { addr.l2_cid = port; addr.l2_bdaddr_type = BDADDR_LE_PUBLIC; } else { addr.l2_psm = port; } +#else + addr.l2_psm = port; +#endif convertAddress(address.toUInt64(), addr.l2_bdaddr.b); |