Bluetooth: Controller: Fix spurious transmit after mic failure

Fix spurious transmit of corrupt PDU after reception of PDU
with MIC failure.

Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
This commit is contained in:
Vinayak Kariappa Chettimada 2022-04-14 14:46:53 +05:30 committed by Carles Cufí
parent d95c126961
commit 335315fc71

View File

@ -249,6 +249,15 @@ void lll_conn_isr_rx(void *param)
err = isr_rx_pdu(lll, pdu_data_rx, &is_rx_enqueue, &tx_release,
&is_done);
if (err) {
/* Disable radio trx switch on MIC failure for both
* central and peripheral, and close the radio event.
*/
radio_isr_set(isr_done, param);
radio_disable();
/* assert if radio started tx before being disabled */
LL_ASSERT(!radio_is_ready());
goto lll_conn_isr_rx_exit;
}