diff options
author | Felix Fietkau <nbd@openwrt.org> | 2012-03-14 19:40:33 +0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-03-15 21:45:08 +0400 |
commit | c7effd35932b948c2a18159e96a07e1686703e62 (patch) | |
tree | f98419dd168bd64cd43f9756c06386db2f2505f9 /drivers/net/wireless/ath/ath9k/ar5008_phy.c | |
parent | aa0e5786b6e0cf2adaa26d72770cb5a0ad263026 (diff) | |
download | linux-c7effd35932b948c2a18159e96a07e1686703e62.tar.xz |
ath9k: inline AR9271 1.0 INI overrides
Makes them more readable and reduces code size
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/ar5008_phy.c')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/ar5008_phy.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/net/wireless/ath/ath9k/ar5008_phy.c b/drivers/net/wireless/ath/ath9k/ar5008_phy.c index 3e108c8b1d32..d7d8e9199140 100644 --- a/drivers/net/wireless/ath/ath9k/ar5008_phy.c +++ b/drivers/net/wireless/ath/ath9k/ar5008_phy.c @@ -834,9 +834,10 @@ static int ar5008_hw_process_ini(struct ath_hw *ah, AR_SREV_9287_11_OR_LATER(ah)) REG_WRITE_ARRAY(&ah->iniModesTxGain, modesIndex, regWrites); - if (AR_SREV_9271_10(ah)) - REG_WRITE_ARRAY(&ah->iniModes_9271_1_0_only, - modesIndex, regWrites); + if (AR_SREV_9271_10(ah)) { + REG_SET_BIT(ah, AR_PHY_SPECTRAL_SCAN, AR_PHY_SPECTRAL_SCAN_ENA); + REG_RMW_FIELD(ah, AR_PHY_RF_CTL3, AR_PHY_TX_END_TO_ADC_ON, 0xa); + } ENABLE_REGWRITE_BUFFER(ah); |