Skip to contentSkip to conversation

ath9k: clear bb filter calibration power threshold

PATCH Applied [email protected] 2 participants 2 messages Feb 18, 2016 – Mar 4, 2016 Qualcomm Atheros ATH9K wireless driver

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ath9k: clear bb filter calibration power threshold

From: Miaoqing Pan <[email protected]>

JP WiFi certification for bandwidth of channel 14 failed, the OBW is lower than the requirement. Clear the bb filter calibration power threshold to increase OBW(+2). The fix only for qca9531 chip now.

---
 drivers/net/wireless/ath/ath9k/ar9003_phy.c | 7 ++++++-
 drivers/net/wireless/ath/ath9k/ar9003_phy.h | 3 +++
 2 files changed, 9 insertions(+), 1 deletion(-)
drivers/net/wireless/ath/ath9k/ar9003_phy.c +6 -1
index 201425e..ac1586a 100644
@@ -976,9 +976,14 @@ static int ar9003_hw_process_ini(struct ath_hw *ah,
 	/*
 	 * JAPAN regulatory.
 	 */
-	if (chan->channel == 2484)
+	if (chan->channel == 2484) {
 		ar9003_hw_prog_ini(ah, &ah->iniCckfirJapan2484, 1);
 
+		if (AR_SREV_9531(ah))
+			REG_RMW_FIELD(ah, AR_PHY_FCAL_2_0,
+				      AR_PHY_FLC_PWR_THRESH, 0);
+	}
+
 	ah->modes_index = modesIndex;
 	ar9003_hw_override_ini(ah);
 	ar9003_hw_set_channel_regs(ah, chan);
drivers/net/wireless/ath/ath9k/ar9003_phy.h +3 -0
index c5f8bc4..566da78 100644
@@ -487,6 +487,9 @@
 #define AR_PHY_ADDAC_PARA_CTL    (AR_SM_BASE + 0x150)
 #define AR_PHY_XPA_CFG           (AR_SM_BASE + 0x158)
 
+#define AR_PHY_FLC_PWR_THRESH		7
+#define AR_PHY_FLC_PWR_THRESH_S		0
+
 #define AR_PHY_FRAME_CTL_CF_OVERLAP_WINDOW  3
 #define AR_PHY_FRAME_CTL_CF_OVERLAP_WINDOW_S    0
 
Signature · 1 line
1.9.1