[nrf528xx] fix sleep_to_tx transition problem (#5960)

After coex precondition is approved, no action is taken to notify the
core. As a result, the coex precondition is not met when doing the
transmission. Now we move the code before HFCLK handling so that HFCLK
handling would notify the core.
This commit is contained in:
Li Cao
2020-12-16 08:05:34 -08:00
committed by GitHub
parent d103d827ad
commit 3a86ed9aa9
@@ -214,6 +214,9 @@ static inline void all_prec_update(void)
{
m_requested_prio = new_prio;
nrf_802154_wifi_coex_prio_request(new_prio);
prec_approved_prio_set(RSCH_PREC_COEX, new_prio);
if (new_prio == RSCH_PRIO_IDLE)
{
nrf_802154_priority_drop_hfclk_stop();
@@ -228,9 +231,6 @@ static inline void all_prec_update(void)
nrf_802154_clock_hfclk_start();
nrf_raal_continuous_mode_enter();
}
nrf_802154_wifi_coex_prio_request(new_prio);
prec_approved_prio_set(RSCH_PREC_COEX, new_prio);
}
mutex_unlock(&m_req_mutex);