Diff between 1f1c3eb8439694b654f51860e5f3ccd6bb56aa24 and 46fd3520d89e4b56658bca8ea8cfc1e8e2021db0

Changed Files

File Additions Deletions Status
src/device.c +2 -2 modified

Full Patch

diff --git a/src/device.c b/src/device.c
index b8556f1..9586022 100644
--- a/src/device.c
+++ b/src/device.c
@@ -1748,8 +1748,8 @@ 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))
+	/* If the address is random it can only be connected over LE */
+	if (dev->bdaddr_type == BDADDR_LE_RANDOM)
 		return dev->bdaddr_type;
 
 	if (dev->bredr_seen) {