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:
Szymon Janc
2019-11-15 15:04:17 +01:00
parent 19d7ebf9ee
commit 5e09936282
2 changed files with 2 additions and 3 deletions
@@ -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 */
+1 -1
View File
@@ -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;