mirror of
https://github.com/espressif/esp-nimble.git
synced 2026-08-19 16:30:00 +00:00
nimble/host: fix l2cap coc rx endpoint buffs alloc
Dissallow current vs next sdu index check when only one buffer is used.
This commit is contained in:
committed by
Szymon Janc
parent
0cdfaa8622
commit
d3dc966fc7
@@ -604,7 +604,8 @@ ble_l2cap_coc_recv_ready(struct ble_l2cap_chan *chan, struct os_mbuf *sdu_rx)
|
||||
}
|
||||
|
||||
if (chan->coc_rx.sdus[0] != NULL &&
|
||||
chan->coc_rx.next_sdu_alloc_idx == chan->coc_rx.current_sdu_idx) {
|
||||
chan->coc_rx.next_sdu_alloc_idx == chan->coc_rx.current_sdu_idx &&
|
||||
BLE_L2CAP_SDU_BUFF_CNT != 1) {
|
||||
return BLE_HS_EBUSY;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user