Add extra space for buffer allocation for ESP IP

This commit is contained in:
Rahul Tank
2022-08-22 12:09:43 +05:30
parent ff10868337
commit 27fa552299
2 changed files with 10 additions and 0 deletions
+2
View File
@@ -54,6 +54,8 @@ extern "C" {
/** Connection handle not present */
#define BLE_HS_CONN_HANDLE_NONE 0xffff
#define BLE_HS_CTRL_DATA_HDR_SZ 0x4
/**
* @brief Bluetooth Host Error Code
* @defgroup bt_host_err Bluetooth Host Error Code
+8
View File
@@ -66,7 +66,11 @@ ble_hs_mbuf_bare_pkt(void)
struct os_mbuf *
ble_hs_mbuf_acl_pkt(void)
{
#if CONFIG_BT_NIMBLE_LEGACY_VHCI_ENABLE
return ble_hs_mbuf_gen_pkt(BLE_HCI_DATA_HDR_SZ + 1);
#else
return ble_hs_mbuf_gen_pkt(BLE_HCI_DATA_HDR_SZ + BLE_HS_CTRL_DATA_HDR_SZ + 1);
#endif
}
/**
@@ -81,7 +85,11 @@ ble_hs_mbuf_acl_pkt(void)
struct os_mbuf *
ble_hs_mbuf_l2cap_pkt(void)
{
#if CONFIG_BT_NIMBLE_LEGACY_VHCI_ENABLE
return ble_hs_mbuf_gen_pkt(BLE_HCI_DATA_HDR_SZ + BLE_L2CAP_HDR_SZ + 1);
#else
return ble_hs_mbuf_gen_pkt(BLE_HCI_DATA_HDR_SZ + BLE_L2CAP_HDR_SZ + BLE_HS_CTRL_DATA_HDR_SZ + 1);
#endif
}
struct os_mbuf *