]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - drivers/net/wireless/ath/ath9k/ar9003_eeprom.c
ath9k: ar9003_eeprom.c:3618 fix variable name typo
[karo-tx-linux.git] / drivers / net / wireless / ath / ath9k / ar9003_eeprom.c
index a6846abf47497e1787133bb527541764c7ee5115..f4864807e15bc9fd127c439cb4770d7ff75b1c8a 100644 (file)
@@ -3615,8 +3615,8 @@ static void ar9003_hw_ant_ctrl_apply(struct ath_hw *ah, bool is2ghz)
 
        value = ar9003_hw_ant_ctrl_common_2_get(ah, is2ghz);
        if (AR_SREV_9485(ah) && common->bt_ant_diversity) {
-               regval &= ~AR_SWITCH_TABLE_COM2_ALL;
-               regval |= ah->config.ant_ctrl_comm2g_switch_enable;
+               value &= ~AR_SWITCH_TABLE_COM2_ALL;
+               value |= ah->config.ant_ctrl_comm2g_switch_enable;
 
        }
        REG_RMW_FIELD(ah, AR_PHY_SWITCH_COM_2, AR_SWITCH_TABLE_COM2_ALL, value);