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