Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 752f9046 authored by Archie Pusaka's avatar Archie Pusaka
Browse files

Floss: Forward remote device's address type from scan result

Currently we assign the address type using update_properties() which
is called on several places, but for some reason the properties given
there sometimes doesn't contain the address type. Therefore, also
supply the address type when receiving on_scan_result().

Bug: 312859619
Test: m -j
Tag: #floss
Flag: EXEMPT floss only changes
Change-Id: Ic514e6a203bc10fa48d4eda5548b2264fd88feba
parent ed670559
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -1004,6 +1004,9 @@ impl Bluetooth {
                            ));
                        }
                        props.push(BluetoothProperty::RemoteRssi(result.rssi));
                        props.push(BluetoothProperty::RemoteAddrType(
                            (result.addr_type as u32).into(),
                        ));

                        props
                    }