From 4f855d00cd620f153d308c6e8a1d9486ef3c7119 Mon Sep 17 00:00:00 2001 From: Hauke Petersen Date: Wed, 30 Jan 2019 11:25:17 +0100 Subject: [PATCH] host/l2cap_coc: use global _COC_MTU config val --- nimble/host/src/ble_l2cap_coc.c | 2 +- nimble/host/src/ble_l2cap_coc_priv.h | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/nimble/host/src/ble_l2cap_coc.c b/nimble/host/src/ble_l2cap_coc.c index b79aaea16..4dd2a9356 100644 --- a/nimble/host/src/ble_l2cap_coc.c +++ b/nimble/host/src/ble_l2cap_coc.c @@ -247,7 +247,7 @@ ble_l2cap_coc_chan_alloc(uint16_t conn_handle, uint16_t psm, uint16_t mtu, chan->cb = cb; chan->cb_arg = cb_arg; chan->scid = ble_l2cap_coc_get_cid(); - chan->my_mtu = BLE_L2CAP_COC_MTU; + chan->my_mtu = MYNEWT_VAL(BLE_L2CAP_COC_MTU); chan->rx_fn = ble_l2cap_coc_rx_fn; chan->coc_rx.mtu = mtu; chan->coc_rx.sdu = sdu_rx; diff --git a/nimble/host/src/ble_l2cap_coc_priv.h b/nimble/host/src/ble_l2cap_coc_priv.h index 90d4d0200..dc9821402 100644 --- a/nimble/host/src/ble_l2cap_coc_priv.h +++ b/nimble/host/src/ble_l2cap_coc_priv.h @@ -30,7 +30,6 @@ extern "C" { #endif -#define BLE_L2CAP_COC_MTU 100 #define BLE_L2CAP_COC_CID_START 0x0040 #define BLE_L2CAP_COC_CID_END 0x007F