From 3a86ed9aa9ec7bffea0366d3099176d55a92cbfe Mon Sep 17 00:00:00 2001 From: Li Cao Date: Thu, 17 Dec 2020 00:05:34 +0800 Subject: [PATCH] [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. --- .../drivers/radio/rsch/nrf_802154_rsch.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/third_party/NordicSemiconductor/drivers/radio/rsch/nrf_802154_rsch.c b/third_party/NordicSemiconductor/drivers/radio/rsch/nrf_802154_rsch.c index 507d8ff8a..10fa6ebe8 100644 --- a/third_party/NordicSemiconductor/drivers/radio/rsch/nrf_802154_rsch.c +++ b/third_party/NordicSemiconductor/drivers/radio/rsch/nrf_802154_rsch.c @@ -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);