mirror of
https://github.com/espressif/esp-nimble.git
synced 2026-09-28 19:57:23 +00:00
host/l2cap_coc: use global _COC_MTU config val
This commit is contained in:
committed by
Łukasz Rymanowski
parent
5889dcba8d
commit
4f855d00cd
@@ -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;
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user