Diff between a74268601eb404447cc3c4a5f0b1f5510c4f2b20 and da90eb1e8140fb4b5e4687aef907eac27c0aebae
Changed Files
| File | Additions | Deletions | Status |
| src/device.c | +4 | -6 | modified |
Full Patch
diff --git a/src/device.c b/src/device.c
index 371ecc5..caa5c2a 100644
--- a/src/device.c
+++ b/src/device.c
@@ -1945,12 +1945,10 @@ void device_add_connection(struct btd_device *dev, uint8_t bdaddr_type)
}
/* If this is the first connection over this bearer */
- if (bdaddr_type == BDADDR_BREDR) {
- dev->bredr = true;
- } else {
- dev->le = true;
- dev->bdaddr_type = bdaddr_type;
- }
+ if (bdaddr_type == BDADDR_BREDR)
+ device_set_bredr_support(dev);
+ else
+ device_set_le_support(dev, bdaddr_type);
state->connected = true;