Towards readable code
Bug:
163134718
Tag: #refactor
Test: act.py -tc BleCocTest
Test: ble paired 2 phones
Test: classic paired Bose SoundLink
Change-Id: I908ff98f333e173762d25b1e6820db7a433af3af
if (!addr_matched) {
p_dev_rec->ble.active_addr_type = tBTM_SEC_BLE::BTM_BLE_ADDR_PSEUDO;
- }
- if (!addr_matched && p_dev_rec->ble.ble_addr_type == BLE_ADDR_RANDOM) {
- p_dev_rec->ble.cur_rand_addr = bda;
+ if (p_dev_rec->ble.ble_addr_type == BLE_ADDR_RANDOM) {
+ p_dev_rec->ble.cur_rand_addr = bda;
+ }
}
btm_cb.ble_ctr_cb.inq_var.directed_conn = BTM_BLE_ADV_IND_EVT;
}