Skip to content

Commit

Permalink
fix(bt/bluedroid): Fix ble adv report evt type
Browse files Browse the repository at this point in the history
  • Loading branch information
esp-zhp committed Nov 7, 2023
1 parent c189842 commit ba2f5c4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion components/bt/host/bluedroid/stack/btm/btm_ble_gap.c
Original file line number Diff line number Diff line change
Expand Up @@ -3355,7 +3355,11 @@ BOOLEAN btm_ble_update_inq_result(BD_ADDR bda, tINQ_DB_ENT *p_i, UINT8 addr_type
if (evt_type != BTM_BLE_SCAN_RSP_EVT) {
p_cur->ble_evt_type = evt_type;
}

#if BTM_BLE_ACTIVE_SCAN_REPORT_ADV_SCAN_RSP_INDIVIDUALLY
if (evt_type == BTM_BLE_SCAN_RSP_EVT) {
p_cur->ble_evt_type = evt_type;
}
#endif
p_i->inq_count = p_inq->inq_counter; /* Mark entry for current inquiry */

if (p_le_inq_cb->adv_len != 0) {
Expand Down

0 comments on commit ba2f5c4

Please sign in to comment.