ll_dtm: add missing critical sections

This commit is contained in:
Hauke Petersen
2019-03-20 14:01:53 +01:00
committed by Łukasz Rymanowski
parent a7b3c93914
commit 4e3032d604
+4
View File
@@ -384,7 +384,9 @@ ble_ll_dtm_rx_start(void)
#ifdef BLE_XCVR_RFCLK
if (ble_ll_xcvr_rfclk_state() == BLE_RFCLK_STATE_OFF) {
OS_ENTER_CRITICAL(sr);
ble_ll_xcvr_rfclk_start_now(os_cputime_get32());
OS_EXIT_CRITICAL(sr);
}
#endif
@@ -430,7 +432,9 @@ ble_ll_dtm_ctx_free(struct dtm_ctx * ctx)
ble_phy_disable_dtm();
ble_ll_state_set(BLE_LL_STATE_STANDBY);
#ifdef BLE_XCVR_RFCLK
OS_ENTER_CRITICAL(sr);
ble_ll_xcvr_rfclk_stop();
OS_EXIT_CRITICAL(sr);
#endif
os_mbuf_free_chain(ctx->om);