diff options
author | Johan Hedberg <johan.hedberg@intel.com> | 2014-05-15 15:34:30 +0300 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@intel.com> | 2014-05-15 15:34:30 +0300 |
commit | 625fe7d94c020f5ce8684a702cabde63ee30688c (patch) | |
tree | 105716f95cceef407e7330e35a4173a4ce0f4b11 /src/device.c | |
parent | 986c3d2b1ae181f02782d70b2b03da3b1139ce46 (diff) | |
download | bluez-625fe7d94c020f5ce8684a702cabde63ee30688c.tar.gz |
core: Fix device_set_bredr_support to update storage if necessary
Diffstat (limited to 'src/device.c')
-rw-r--r-- | src/device.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/device.c b/src/device.c index 41637b3aa..a5fcad70c 100644 --- a/src/device.c +++ b/src/device.c @@ -2467,9 +2467,13 @@ void device_update_addr(struct btd_device *device, const bdaddr_t *bdaddr, DEVICE_INTERFACE, "Address"); } -void device_set_bredr_support(struct btd_device *device, bool bredr) +void device_set_bredr_support(struct btd_device *device) { - device->bredr = bredr; + if (device->bredr) + return; + + device->bredr = true; + store_device_info(device); } void device_update_last_seen(struct btd_device *device, uint8_t bdaddr_type) |