You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by ja...@apache.org on 2019/07/24 08:22:35 UTC
[mynewt-nimble] 01/06: nimble/ll: Fix dtm stop
This is an automated email from the ASF dual-hosted git repository.
janc pushed a commit to branch 1_2_0_dev
in repository https://gitbox.apache.org/repos/asf/mynewt-nimble.git
commit 0c67261ea07dea4c588552fb715f40add1fd199d
Author: JustineKH <ju...@juul.com>
AuthorDate: Wed Jul 17 16:04:08 2019 -0700
nimble/ll: Fix dtm stop
---
nimble/controller/src/ble_ll_dtm.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/nimble/controller/src/ble_ll_dtm.c b/nimble/controller/src/ble_ll_dtm.c
index 8d561e0..c78a4b2 100644
--- a/nimble/controller/src/ble_ll_dtm.c
+++ b/nimble/controller/src/ble_ll_dtm.c
@@ -424,7 +424,6 @@ ble_ll_dtm_ctx_free(struct dtm_ctx * ctx)
OS_EXIT_CRITICAL(sr);
return;
}
- OS_EXIT_CRITICAL(sr);
ble_ll_sched_rmv_elem(&ctx->sch);
ble_npl_eventq_remove(&g_ble_ll_data.ll_evq, &g_ble_ll_dtm_ctx.evt);
@@ -433,13 +432,12 @@ 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);
memset(ctx, 0, sizeof(*ctx));
+ OS_EXIT_CRITICAL(sr);
}
int