mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
component/bt: consider to handle HCI LE Direct Advertising Report
This commit is contained in:
parent
8c756dad23
commit
f402778320
@ -272,7 +272,7 @@ bool host_recv_adv_packet(uint8_t *packet)
|
||||
{
|
||||
assert(packet);
|
||||
if(packet[0] == DATA_TYPE_EVENT && packet[1] == HCI_BLE_EVENT) {
|
||||
if(packet[3] == HCI_BLE_ADV_PKT_RPT_EVT
|
||||
if(packet[3] == HCI_BLE_ADV_PKT_RPT_EVT || packet[3] == HCI_BLE_DIRECT_ADV_EVT
|
||||
#if (BLE_ADV_REPORT_FLOW_CONTROL == TRUE)
|
||||
|| packet[3] == HCI_BLE_ADV_DISCARD_REPORT_EVT
|
||||
#endif
|
||||
|
@ -3481,6 +3481,8 @@ static void btm_adv_pkt_handler(void *arg)
|
||||
btm_ble_process_adv_pkt(p);
|
||||
} else if (ble_sub_code == HCI_BLE_ADV_DISCARD_REPORT_EVT) {
|
||||
btm_ble_process_adv_discard_evt(p);
|
||||
} else if (ble_sub_code == HCI_BLE_DIRECT_ADV_EVT) {
|
||||
btm_ble_process_direct_adv_pkt(p);
|
||||
} else {
|
||||
assert (0);
|
||||
}
|
||||
@ -3794,6 +3796,12 @@ void btm_ble_process_adv_discard_evt(UINT8 *p)
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
void btm_ble_process_direct_adv_pkt(UINT8 *p)
|
||||
{
|
||||
// TODO
|
||||
}
|
||||
|
||||
/*******************************************************************************
|
||||
**
|
||||
** Function btm_ble_start_scan
|
||||
|
@ -389,6 +389,7 @@ extern "C" {
|
||||
void btm_ble_timeout(TIMER_LIST_ENT *p_tle);
|
||||
void btm_ble_process_adv_pkt (UINT8 *p);
|
||||
void btm_ble_process_adv_discard_evt(UINT8 *p);
|
||||
void btm_ble_process_direct_adv_pkt (UINT8 *p);
|
||||
bool btm_ble_adv_pkt_ready(void);
|
||||
bool btm_ble_adv_pkt_post(pkt_linked_item_t *pkt);
|
||||
void btm_ble_proc_scan_rsp_rpt (UINT8 *p);
|
||||
|
Loading…
x
Reference in New Issue
Block a user