From c9989970b065408458994c3823d213ac6a288a7a Mon Sep 17 00:00:00 2001 From: Xianjun Jiao Date: Mon, 27 Feb 2023 19:58:13 +0100 Subject: [PATCH] Disable eifs_trigger_by_last_tx_fail by default: Standard does not ask so --- driver/xpu/xpu.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/driver/xpu/xpu.c b/driver/xpu/xpu.c index 697aaea..ef66055 100644 --- a/driver/xpu/xpu.c +++ b/driver/xpu/xpu.c @@ -370,7 +370,9 @@ static inline u32 hw_init(enum xpu_mode mode){ rssi_half_db_th = 87<<1; // -62dBm xpu_api->XPU_REG_LBT_TH_write(rssi_half_db_th); // set IQ rssi th step .5dB to xxx and enable it - xpu_api->XPU_REG_FORCE_IDLE_MISC_write(75); //control the duration to force ch_idle after decoding a packet due to imperfection of agc and signals + // control the duration to force ch_idle after decoding a packet due to imperfection of agc and signals + // (1<<26) to disable eifs_trigger_by_last_tx_fail by default (standard does not ask so) + xpu_api->XPU_REG_FORCE_IDLE_MISC_write((1<<26)|75); //xpu_api->XPU_REG_CSMA_DEBUG_write((1<<31)|(20<<24)|(4<<19)|(3<<14)|(10<<7)|(5)); xpu_api->XPU_REG_CSMA_DEBUG_write(0);