summaryrefslogtreecommitdiff
path: root/src/adapter.h
diff options
context:
space:
mode:
authorSzymon Janc <szymon.janc@codecoup.pl>2018-03-05 17:16:35 +0100
committerJohan Hedberg <johan.hedberg@intel.com>2018-03-06 09:45:32 +0200
commit6d8260cf6cc1793e30b68150f18c551b64732513 (patch)
tree473ae18f91b423d88c97dd92ef98e18f99112620 /src/adapter.h
parentea072a6320be3916206de3897bfd5c84a120c669 (diff)
downloadbluez-6d8260cf6cc1793e30b68150f18c551b64732513.tar.gz
device: Fix bearer selection with single mode controller
If remote device is dual mode and advertises without "BR/EDR flag not supported" set than device is marked as supporting BR/EDR even if controller is doing LE only. This results in bluetoothd trying to connect over BR/EDR since this is prefered transport if none is connected. Fix this by checking if adapter supports specified technology before doing heuristic transport selection.
Diffstat (limited to 'src/adapter.h')
-rw-r--r--src/adapter.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/adapter.h b/src/adapter.h
index e619a5be9..016d3d75b 100644
--- a/src/adapter.h
+++ b/src/adapter.h
@@ -75,6 +75,7 @@ bool btd_adapter_get_pairable(struct btd_adapter *adapter);
bool btd_adapter_get_powered(struct btd_adapter *adapter);
bool btd_adapter_get_connectable(struct btd_adapter *adapter);
bool btd_adapter_get_discoverable(struct btd_adapter *adapter);
+bool btd_adapter_get_bredr(struct btd_adapter *adapter);
struct btd_gatt_database *btd_adapter_get_database(struct btd_adapter *adapter);