While LE scanning, send first RPA instead of IDA 45/226445/1
authorinjun.yang <injun.yang@samsung.com>
Wed, 26 Feb 2020 11:16:02 +0000 (20:16 +0900)
committerDoHyun Pyun <dh79.pyun@samsung.com>
Tue, 3 Mar 2020 01:16:03 +0000 (10:16 +0900)
[Model] All
[BinType] AP
[Customer] OPEN

[Issue#] N/A
[Request] Internal
[Occurrence Version] N/A

[Problem] Durning LE scanning, unable to find a paired RPA device
[Cause & Measure] Bluez report it as IDA instead of PRA. Handle it as RPA
[Checking Method] LE scan for paired RPA device

[Team] Convergence BT
[Developer] Injun Yang
[Solution company] Samsung
[Change Type] Specification change

Change-Id: I890fda13825172f759d4f4f317dfd053504c4c4b
Signed-off-by: injun.yang <injun.yang@samsung.com>
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
src/device.c

index 511660c..2701bf7 100644 (file)
@@ -9153,9 +9153,10 @@ void device_set_adv_report_info(struct btd_device *device, void *data, uint8_t d
        ba2str(&device->bdaddr, peer_addr);
 
        /* Replace address type for paired RPA device since IDA passed from controller */
-       if (device->rpa)
+       if (device->rpa) {
+               ba2str(device->rpa, peer_addr);
                addr_type = BDADDR_LE_RANDOM;
-       else
+       else
                addr_type = device->bdaddr_type;
 
        g_dbus_emit_signal(dbus_conn, device->path,