Commit 91de7cdc authored by Michael Straube's avatar Michael Straube Committed by Greg Kroah-Hartman

staging: rtl8192e: remove rf_type from struct r8192_priv

The field rf_type of struct r8192_priv is always RF_1T2R and only used
in one place. Use RF_1T2R directly there and remove rf_type from struct
r8192_priv.
Signed-off-by: default avatarMichael Straube <straube.linux@gmail.com>
Tested-by: default avatarPhilipp Hortmann <philipp.g.hortmann@gmail.com>
Link: https://lore.kernel.org/r/20230325132823.22872-5-straube.linux@gmail.comSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 2fd65482
...@@ -343,8 +343,6 @@ static void _rtl92e_read_eeprom_info(struct net_device *dev) ...@@ -343,8 +343,6 @@ static void _rtl92e_read_eeprom_info(struct net_device *dev)
else else
priv->tx_pwr_data_read_from_eeprom = false; priv->tx_pwr_data_read_from_eeprom = false;
priv->rf_type = RF_1T2R;
if (priv->card_8192_version > VERSION_8190_BD) { if (priv->card_8192_version > VERSION_8190_BD) {
if (!priv->autoload_fail_flag) { if (!priv->autoload_fail_flag) {
tempval = (rtl92e_eeprom_read(dev, tempval = (rtl92e_eeprom_read(dev,
......
...@@ -289,7 +289,6 @@ struct r8192_priv { ...@@ -289,7 +289,6 @@ struct r8192_priv {
enum nic_t card_8192; enum nic_t card_8192;
u8 card_8192_version; u8 card_8192_version;
u8 rf_type;
u8 ic_cut; u8 ic_cut;
char nick[IW_ESSID_MAX_SIZE + 1]; char nick[IW_ESSID_MAX_SIZE + 1];
u8 check_roaming_cnt; u8 check_roaming_cnt;
......
...@@ -532,7 +532,7 @@ static void _rtl92e_dm_tx_power_tracking_callback_tssi(struct net_device *dev) ...@@ -532,7 +532,7 @@ static void _rtl92e_dm_tx_power_tracking_callback_tssi(struct net_device *dev)
priv->rtllib->bdynamic_txpower_enable = false; priv->rtllib->bdynamic_txpower_enable = false;
powerlevelOFDM24G = priv->pwr_track >> 24; powerlevelOFDM24G = priv->pwr_track >> 24;
RF_Type = priv->rf_type; RF_Type = RF_1T2R;
Value = (RF_Type<<8) | powerlevelOFDM24G; Value = (RF_Type<<8) | powerlevelOFDM24G;
for (j = 0; j <= 30; j++) { for (j = 0; j <= 30; j++) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment