[PATCHv2] core: Store Device information immediately after saving LinkKey information

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



If bluetooth is turned off while pairing is in progress, sometimes
Linkey information is present but device (Class of Device) information is missing.

This patch stores the device information immediately after Linkkey
information is saved so that Class of Device information is stored.
---
 src/device.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/src/device.c b/src/device.c
index 025743f..e9630ed 100644
--- a/src/device.c
+++ b/src/device.c
@@ -4031,6 +4031,7 @@ void btd_device_set_temporary(struct btd_device *device, gboolean temporary)
 	} else {
 		if (device->bredr)
 			adapter_whitelist_add(device->adapter, device);
+		store_device_info(device);
 	}
 
 	device->temporary = temporary;
-- 
1.7.9.5

--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux