Bluetooth: controller: Fix connection event close check

Fix the check that decides to close a connection event,
which was missing a check on MD bit being set for empty PDU
to be Tx-ed out.

Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
This commit is contained in:
Vinayak Kariappa Chettimada 2020-09-06 14:09:48 +05:30 committed by Ioannis Glaropoulos
commit 62f1ad79bb

View file

@ -209,6 +209,7 @@ void lll_conn_isr_rx(void *param)
/* Decide on event continuation and hence Radio Shorts to use */ /* Decide on event continuation and hence Radio Shorts to use */
is_done = is_done || ((crc_ok) && (pdu_data_rx->md == 0) && is_done = is_done || ((crc_ok) && (pdu_data_rx->md == 0) &&
(pdu_data_tx->md == 0) &&
(pdu_data_tx->len == 0)); (pdu_data_tx->len == 0));
if (is_done) { if (is_done) {