mirror of
https://github.com/espressif/esp-nimble.git
synced 2026-09-06 17:20:04 +00:00
nimble/ll: Fix dtm stop
This commit is contained in:
committed by
Łukasz Rymanowski
parent
63f2ced9e1
commit
9f62cf205e
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user