mirror of
https://github.com/espressif/esp-nimble.git
synced 2026-10-14 17:57:22 +00:00
Added check to not include VHCI buffer handling code if controller
support is disabled
This commit is contained in:
committed by
Abhinav Kudnar
parent
a7824ac674
commit
5ecdcb6071
@@ -57,13 +57,15 @@ ble_hs_hci_cmd_transport(struct ble_hci_cmd *cmd)
|
|||||||
static int
|
static int
|
||||||
ble_hs_hci_cmd_send(uint16_t opcode, uint8_t len, const void *cmddata)
|
ble_hs_hci_cmd_send(uint16_t opcode, uint8_t len, const void *cmddata)
|
||||||
{
|
{
|
||||||
|
struct ble_hci_cmd *cmd;
|
||||||
uint8_t *buf;
|
uint8_t *buf;
|
||||||
int rc;
|
int rc;
|
||||||
|
|
||||||
cmd = ble_transport_alloc_cmd();
|
cmd = ble_transport_alloc_cmd();
|
||||||
BLE_HS_DBG_ASSERT(cmd != NULL);
|
BLE_HS_DBG_ASSERT(cmd != NULL);
|
||||||
|
|
||||||
#if !(SOC_ESP_NIMBLE_CONTROLLER)
|
buf = (uint8_t *)cmd;
|
||||||
|
#if !(SOC_ESP_NIMBLE_CONTROLLER) && !CONFIG_BT_CONTROLLER_DISABLED
|
||||||
/* Hack for avoiding memcpy while handling tx pkt to VHCI,
|
/* Hack for avoiding memcpy while handling tx pkt to VHCI,
|
||||||
* keep one byte for type field*/
|
* keep one byte for type field*/
|
||||||
buf++;
|
buf++;
|
||||||
@@ -80,7 +82,7 @@ ble_hs_hci_cmd_send(uint16_t opcode, uint8_t len, const void *cmddata)
|
|||||||
BLE_HS_LOG(DEBUG, "\n");
|
BLE_HS_LOG(DEBUG, "\n");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !(SOC_ESP_NIMBLE_CONTROLLER)
|
#if !(SOC_ESP_NIMBLE_CONTROLLER) && !CONFIG_BT_CONTROLLER_DISABLED
|
||||||
buf--;
|
buf--;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user