From 09316927a9592954ef71510a268687c6b8ce8c6d Mon Sep 17 00:00:00 2001 From: Jiao Xianjun Date: Tue, 19 Jan 2021 16:49:27 +0100 Subject: [PATCH] change the rssi_half_db_offset back to original to get the correct rssi report. --- driver/sdr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/driver/sdr.c b/driver/sdr.c index 43fe59c..7aec770 100644 --- a/driver/sdr.c +++ b/driver/sdr.c @@ -984,7 +984,7 @@ static int openwifi_start(struct ieee80211_hw *dev) xpu_api->hw_init(priv->xpu_cfg); agc_gain_delay = 50; //samples - rssi_half_db_offset = 134; // to be consistent + rssi_half_db_offset = 150; // to be consistent 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) );