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

Commit 01bf5091 authored by Andre Eisenbach's avatar Andre Eisenbach Committed by Android Git Automerger
Browse files

am 6ed24c43: Assign pseudo address for host-based RPA resolution matches

* commit '6ed24c43':
  Assign pseudo address for host-based RPA resolution matches
parents 2a92e3a9 6ed24c43
Loading
Loading
Loading
Loading
+8 −2
Original line number Diff line number Diff line
@@ -743,8 +743,14 @@ static void btm_ble_resolve_random_addr_on_adv(void * p_rec, void *p)
        BTM_TRACE_DEBUG("Random match");
        match_rec->ble.active_addr_type = BTM_BLE_ADDR_RRA;
        memcpy(match_rec->ble.cur_rand_addr, bda, BD_ADDR_LEN);

        if (btm_ble_init_pseudo_addr(match_rec, bda))
        {
            memcpy(bda, match_rec->bd_addr, BD_ADDR_LEN);
        addr_type = match_rec->ble.ble_addr_type;
        } else {
            // Assign the original address to be the current report address
            memcpy(bda, match_rec->ble.pseudo_addr, BD_ADDR_LEN);
        }
    }

    btm_ble_process_adv_pkt_cont(bda, addr_type, evt_type, pp);