From e3fb22a4b36efa3f72ffecdd4ac1c95361d38d17 Mon Sep 17 00:00:00 2001 From: Xianjun Jiao Date: Tue, 29 Mar 2022 10:05:33 +0200 Subject: [PATCH] gpio gain delay and rssi: Fine tune the rssi calculation sync with gpio gain (add the same gpio gain smoothing like iq_rssi in FPGA) --- driver/xpu/xpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/driver/xpu/xpu.c b/driver/xpu/xpu.c index b3603f4..7eef660 100644 --- a/driver/xpu/xpu.c +++ b/driver/xpu/xpu.c @@ -416,7 +416,7 @@ static inline u32 hw_init(enum xpu_mode mode){ } xpu_api->XPU_REG_BAND_CHANNEL_write((false<<24)|(BAND_5_8GHZ<<16)|44);//use_short_slot==false; 5.8GHz; channel 44 -- default setting to sync with priv->band/channel/use_short_slot - agc_gain_delay = 50; //samples + agc_gain_delay = 39; //samples rssi_half_db_offset = 75<<1; xpu_api->XPU_REG_RSSI_DB_CFG_write(0x80000000|((rssi_half_db_offset<<16)|agc_gain_delay) ); xpu_api->XPU_REG_RSSI_DB_CFG_write((~0x80000000)&((rssi_half_db_offset<<16)|agc_gain_delay) );