Skip to content

Commit 0d46a93

Browse files
aaronyegxkartben
authored andcommitted
drivers: bluetooth: hci: stop rx thread when closes the HCI
Stops the RX thread when closes the HCI for Ambiq HCI driver Signed-off-by: Aaron Ye <[email protected]>
1 parent 2c63115 commit 0d46a93

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drivers/bluetooth/hci/hci_ambiq.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -395,6 +395,9 @@ static int bt_apollo_close(const struct device *dev)
395395
return ret;
396396
}
397397

398+
/* Stop RX thread */
399+
k_thread_abort(&spi_rx_thread_data);
400+
398401
hci->recv = NULL;
399402

400403
return ret;

0 commit comments

Comments
 (0)