Skip to content

Commit 9987747

Browse files
committed
Remove unsupported function/fix build issue.
Resolves #967
1 parent 76ff374 commit 9987747

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/nimble/esp_port/esp-hci/src/esp_nimble_hci.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -199,18 +199,18 @@ static void dummy_controller_rcv_pkt_ready(void)
199199
/* Dummy function */
200200
}
201201

202+
#if 0
202203
void bt_record_hci_data(uint8_t *data, uint16_t len)
203204
{
204-
#if 0
205205
if ((data[0] == BLE_HCI_UART_H4_EVT) && (data[1] == BLE_HCI_EVCODE_LE_META) && ((data[3] == BLE_HCI_LE_SUBEV_ADV_RPT) || (data[3] == BLE_HCI_LE_SUBEV_DIRECT_ADV_RPT)
206206
|| (data[3] == BLE_HCI_LE_SUBEV_EXT_ADV_RPT) || (data[3] == BLE_HCI_LE_SUBEV_PERIODIC_ADV_RPT))) {
207207
bt_hci_log_record_hci_adv(HCI_LOG_DATA_TYPE_ADV, &data[2], len - 2);
208208
} else {
209209
uint8_t data_type = ((data[0] == 2) ? HCI_LOG_DATA_TYPE_C2H_ACL : data[0]);
210210
bt_hci_log_record_hci_data(data_type, &data[1], len - 1);
211211
}
212-
#endif // (BT_HCI_LOG_INCLUDED == TRUE)
213212
}
213+
#endif // (BT_HCI_LOG_INCLUDED == TRUE)
214214

215215
static int dummy_host_rcv_pkt(uint8_t *data, uint16_t len)
216216
{
@@ -223,8 +223,9 @@ static int dummy_host_rcv_pkt(uint8_t *data, uint16_t len)
223223
*/
224224
static int host_rcv_pkt(uint8_t *data, uint16_t len)
225225
{
226+
#if 0
226227
bt_record_hci_data(data, len);
227-
228+
#endif
228229
if(!ble_hs_enabled_state) {
229230
/* If host is not enabled, drop the packet */
230231
esp_rom_printf("Host not enabled. Dropping the packet!");

0 commit comments

Comments
 (0)