aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdrian Chadd <adrian.chadd@gmail.com>2011-04-23 12:48:53 +0800
committerJohn W. Linville <linville@tuxdriver.com>2011-04-26 15:50:28 -0400
commit25f63a5a37f9cd925a01840bbb4c3ad9d5034175 (patch)
tree7062c8a96152575e65ca9921bcf04cdd0818860e
parent92c6f76c6d44a869bf3b252dbb2e358ae7399a96 (diff)
downloadkernel_samsung_smdk4412-25f63a5a37f9cd925a01840bbb4c3ad9d5034175.zip
kernel_samsung_smdk4412-25f63a5a37f9cd925a01840bbb4c3ad9d5034175.tar.gz
kernel_samsung_smdk4412-25f63a5a37f9cd925a01840bbb4c3ad9d5034175.tar.bz2
ath9k: fix AR9160 xpaBiasLvlFreq endianness handling
The xpaBiasLvlFreq parameter array is made up of 16 bit words which aren't byte-swapped like the other 16-bit eeprom parameters are. It's only used by the AR9160. Signed-off-by: Adrian Chadd <adrian@freebsd.org> Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r--drivers/net/wireless/ath/ath9k/eeprom_def.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath9k/eeprom_def.c b/drivers/net/wireless/ath/ath9k/eeprom_def.c
index 995949d..c031854 100644
--- a/drivers/net/wireless/ath/ath9k/eeprom_def.c
+++ b/drivers/net/wireless/ath/ath9k/eeprom_def.c
@@ -231,6 +231,10 @@ static int ath9k_hw_def_check_eeprom(struct ath_hw *ah)
integer = swab32(pModal->antCtrlChain[i]);
pModal->antCtrlChain[i] = integer;
}
+ for (i = 0; i < 3; i++) {
+ word = swab16(pModal->xpaBiasLvlFreq[i]);
+ pModal->xpaBiasLvlFreq[i] = word;
+ }
for (i = 0; i < AR_EEPROM_MODAL_SPURS; i++) {
word = swab16(pModal->spurChans[i].spurChan);