Commit 2945143e authored by Morten Priess's avatar Morten Priess Committed by Alberto Escolar
Browse files

Bluetooth: controller: split: Force central cleanup on MIC error

Since a peer MIC failure closes the event, it does not allow a terminate
acknowledge. For that reason a peer MIC fail for central role must force
a conn_cleanup.

Signed-off-by: default avatarMorten Priess <mtpr@oticon.com>
parent 41cfe0b3
Loading
Loading
Loading
Loading
+2 −1
Changes for subsys/bluetooth/controller/ll_sw/ull_conn.c: 2 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -999,7 +999,8 @@ void ull_conn_done(struct node_rx_event_done *done)
			    0 ||
#endif /* CONFIG_BT_PERIPHERAL */
#if defined(CONFIG_BT_CENTRAL)
			    conn->master.terminate_ack
			    conn->master.terminate_ack ||
			    (reason_peer == BT_HCI_ERR_TERM_DUE_TO_MIC_FAIL)
#else /* CONFIG_BT_CENTRAL */
			    1
#endif /* CONFIG_BT_CENTRAL */