Diff between 2322e2cc9cc5f8506e4b28aa2799727e498201cf and 23c8c897f08f7568e1f98eefc47be7ae3da5cd54
Changed Files
| File | Additions | Deletions | Status |
| src/device.c | +4 | -0 | modified |
Full Patch
diff --git a/src/device.c b/src/device.c
index fb766d1..b8556f1 100644
--- a/src/device.c
+++ b/src/device.c
@@ -1748,6 +1748,10 @@ static uint8_t select_conn_bearer(struct btd_device *dev)
else if (!dev->bredr_state.bonded && dev->le_state.bonded)
return dev->bdaddr_type;
+ /* If the address is private it can only be connected over LE */
+ if (device_address_is_private(dev))
+ return dev->bdaddr_type;
+
if (dev->bredr_seen) {
bredr_last = current - dev->bredr_seen;
if (bredr_last > SEEN_TRESHHOLD)