mirror of
https://github.com/espressif/esp-nimble.git
synced 2026-07-28 21:57:55 +00:00
nimble/ll: Remove not needed BLE_LL_CTRL_MAX_PAYLOAD define
It was always used as BLE_LL_CTRL_MAX_PDU_LEN.
This commit is contained in:
@@ -86,8 +86,7 @@ extern "C" {
|
||||
|
||||
extern const uint8_t g_ble_ll_ctrl_pkt_lengths[BLE_LL_CTRL_OPCODES];
|
||||
|
||||
/* Maximum # of payload bytes in a LL control PDU */
|
||||
#define BLE_LL_CTRL_MAX_PAYLOAD (26)
|
||||
/* Maximum LL control PDU size */
|
||||
#define BLE_LL_CTRL_MAX_PDU_LEN (27)
|
||||
|
||||
/* LL control connection update request */
|
||||
|
||||
@@ -983,7 +983,7 @@ ble_ll_conn_hci_param_rr(const uint8_t *cmdbuf, uint8_t len,
|
||||
if (connsm->csmflags.cfbit.awaiting_host_reply) {
|
||||
/* Get a control packet buffer */
|
||||
if (rc == BLE_ERR_SUCCESS) {
|
||||
om = os_msys_get_pkthdr(BLE_LL_CTRL_MAX_PAYLOAD + 1,
|
||||
om = os_msys_get_pkthdr(BLE_LL_CTRL_MAX_PDU_LEN,
|
||||
sizeof(struct ble_mbuf_hdr));
|
||||
if (om) {
|
||||
dptr = om->om_data;
|
||||
|
||||
Reference in New Issue
Block a user