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

Commit c31ab4dc authored by Tobias Melin's avatar Tobias Melin Committed by Prerepa Viswanadham
Browse files

Added check if the device address is random

A check if the device address is random is needed since in a
public device address the two most significatant bits can also be
equal to 01 (see Bluetooth specification Core_v4.1.pdf, page 2021
and page 2500).

Bug: 18784040
Change-Id: I4f967a426ebb825731461e202c0741ae0540ef6a
parent cae9d281
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1127,7 +1127,8 @@ static void btgattc_handle_event(uint16_t event, char* p_param)
                // Check if RPA offloading is supported, otherwise, do not start
                // background connection, since it will not connect after address
                // changes
                if (BTM_BLE_IS_RESOLVE_BDA(p_cb->bd_addr.address))
                if ((p_cb->addr_type == BLE_ADDR_RANDOM)
                        && BTM_BLE_IS_RESOLVE_BDA(p_cb->bd_addr.address))
                {
                    tBTM_BLE_VSC_CB vnd_capabilities;
                    BTM_BleGetVendorCapabilities(&vnd_capabilities);