Skip to contentSkip to conversation

rtlwifi: rtl8192se: remove duplicated legacy_httxpowerdiff

PATCH In review Chris Chiu 2 participants 2 messages Oct 5, 2020 – Oct 6, 2020 1 message not in the archive

Subsystems (3)
lore
Share & tools
lore

Chris Chiu

author
#0 lore raw

PATCH 1/3 rtlwifi: rtl8192se: remove duplicated legacy_httxpowerdiff

From: Chris Chiu <[email protected]>

The legacy_httxpowerdiff in rtl8192se is pretty much the same as the legacy_ht_txpowerdiff for other chips. Use the same name to keep the consistency.

---
 drivers/net/wireless/realtek/rtlwifi/rtl8192se/hw.c | 2 +-
 drivers/net/wireless/realtek/rtlwifi/rtl8192se/rf.c | 2 +-
 drivers/net/wireless/realtek/rtlwifi/wifi.h         | 1 -
 3 files changed, 2 insertions(+), 3 deletions(-)
drivers/net/wireless/realtek/rtlwifi/rtl8192se/hw.c +1 -1
index 81313e0ca834..0cdcddfebca9 100644
@@ -1906,7 +1906,7 @@ static void _rtl92se_read_adapter_info(struct ieee80211_hw *hw)
 	 * index diff of legacy to HT OFDM rate. */
 	tempval = hwinfo[EEPROM_RFIND_POWERDIFF] & 0xff;
 	rtlefuse->eeprom_txpowerdiff = tempval;
-	rtlefuse->legacy_httxpowerdiff =
+	rtlefuse->legacy_ht_txpowerdiff =
 		rtlefuse->txpwr_legacyhtdiff[RF90_PATH_A][0];
 
 	RTPRINT(rtlpriv, FINIT, INIT_TXPOWER,
drivers/net/wireless/realtek/rtlwifi/rtl8192se/rf.c +1 -1
index a37855f57e76..54576566083c 100644
@@ -25,7 +25,7 @@ static void _rtl92s_get_powerbase(struct ieee80211_hw *hw, u8 *p_pwrlevel,
 
 	/* We only care about the path A for legacy. */
 	if (rtlefuse->eeprom_version < 2) {
-		pwrbase0 = pwrlevel[0] + (rtlefuse->legacy_httxpowerdiff & 0xf);
+		pwrbase0 = pwrlevel[0] + (rtlefuse->legacy_ht_txpowerdiff & 0xf);
 	} else {
 		legacy_pwrdiff = rtlefuse->txpwr_legacyhtdiff
 						[RF90_PATH_A][chnl - 1];
drivers/net/wireless/realtek/rtlwifi/wifi.h +0 -1
index 13421cf2d201..0a516c3c7cea 100644
@@ -1966,7 +1966,6 @@ struct rtl_efuse {
 
 	u8 txpwr_safetyflag;			/* Band edge enable flag */
 	u16 eeprom_txpowerdiff;
-	u8 legacy_httxpowerdiff;	/* Legacy to HT rate power diff */
 	u8 antenna_txpwdiff[3];
 
 	u8 eeprom_regulatory;
Signature · 1 line
2.20.1

A message that is not in the archive (sent off-list or not yet received): CAB4CAwfaaozSbdiB05Mk-WgY1VQTyXtLNVjY+4vax09Qvr_asg@mail.gmail.com

#2 lore raw
Quoted 16 lines · Chris Chiu

On Mon, Oct 5, 2020 at 11:01 PM Chris Chiu <[email protected]> wrote:

From: Chris Chiu <[email protected]>

The legacy_httxpowerdiff in rtl8192se is pretty much the same as the legacy_ht_txpowerdiff for other chips. Use the same name to keep the consistency.

---
drivers/net/wireless/realtek/rtlwifi/rtl8192se/hw.c | 2 +- drivers/net/wireless/realtek/rtlwifi/rtl8192se/rf.c | 2 +- drivers/net/wireless/realtek/rtlwifi/wifi.h | 1 - 3 files changed, 2 insertions(+), 3 deletions(-)

Quoted 2 lines

Sorry. There's no patch series PATCH 1/3 for this. I'll resubmit the patch.

Please don't send HTML mail, they will be dropped by mailing list and patchwork.

Signature · 3 lines
https://patchwork.kernel.org/project/linux-wireless/list/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches