nimble/ll: Don't allow to enable DTM if controller is busy

DTM disables whitening and should not be mixed with any normal
BLE traffic.
This commit is contained in:
Szymon Janc
2022-11-02 15:24:00 +01:00
parent 50a993f1b8
commit 5a9b202a0d
+2 -2
View File
@@ -483,7 +483,7 @@ ble_ll_dtm_tx_test(uint8_t tx_chan, uint8_t len, uint8_t packet_payload,
{
uint8_t phy_mode;
if (g_ble_ll_dtm_ctx.active) {
if (g_ble_ll_dtm_ctx.active || ble_ll_is_busy()) {
return BLE_ERR_CTLR_BUSY;
}
@@ -585,7 +585,7 @@ ble_ll_dtm_rx_test(uint8_t rx_chan, uint8_t hci_phy)
{
uint8_t phy_mode;
if (g_ble_ll_dtm_ctx.active) {
if (g_ble_ll_dtm_ctx.active || ble_ll_is_busy()) {
return BLE_ERR_CTLR_BUSY;
}