mirror of
https://github.com/espressif/esp-nimble.git
synced 2026-09-25 10:17:22 +00:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user