Skip to content

Commit 013cacf

Browse files
committed
Bluetooth: controller: Fix regression in central event close
Fix regression in connection radio event close in central role introduced in commit 222dca5 Fixes #29957. Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
1 parent 89f6e24 commit 013cacf

File tree

1 file changed

+4
-2
lines changed
  • subsys/bluetooth/controller/ll_sw/nordic/lll

1 file changed

+4
-2
lines changed

subsys/bluetooth/controller/ll_sw/nordic/lll/lll_conn.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -710,7 +710,8 @@ static inline int isr_rx_pdu(struct lll_conn *lll, struct pdu_data *pdu_data_rx,
710710
lll->empty = 0;
711711

712712
pdu_data_tx = (void *)radio_pkt_empty_get();
713-
if (IS_ENABLED(CONFIG_BT_CENTRAL) && !lll->role) {
713+
if (IS_ENABLED(CONFIG_BT_CENTRAL) && !lll->role &&
714+
!pdu_data_rx->md) {
714715
*is_done = !pdu_data_tx->md;
715716
}
716717

@@ -755,7 +756,8 @@ static inline int isr_rx_pdu(struct lll_conn *lll, struct pdu_data *pdu_data_rx,
755756
FORCE_MD_CNT_SET();
756757
}
757758

758-
if (IS_ENABLED(CONFIG_BT_CENTRAL) && !lll->role) {
759+
if (IS_ENABLED(CONFIG_BT_CENTRAL) && !lll->role &&
760+
!pdu_data_rx->md) {
759761
*is_done = !pdu_data_tx->md;
760762
}
761763
}

0 commit comments

Comments
 (0)