mac80211: add initial support for AR9330
[openwrt/svn-archive/archive.git] / package / mac80211 / patches / 554-ath9k-enable-TX-RX-data-byte-swap-for-AR9330.patch
1 diff --git a/drivers/net/wireless/ath/ath9k/hw.c b/drivers/net/wireless/ath/ath9k/hw.c
2 index 6315e7d..a35af90 100644
3 --- a/drivers/net/wireless/ath/ath9k/hw.c
4 +++ b/drivers/net/wireless/ath/ath9k/hw.c
5 @@ -1592,7 +1592,7 @@ int ath9k_hw_reset(struct ath_hw *ah, struct ath9k_channel *chan,
6 REG_WRITE(ah, AR_CFG, AR_CFG_SWTD | AR_CFG_SWRD);
7 }
8 #ifdef __BIG_ENDIAN
9 - else if (AR_SREV_9340(ah))
10 + else if (AR_SREV_9330(ah) || AR_SREV_9340(ah))
11 REG_RMW(ah, AR_CFG, AR_CFG_SWRB | AR_CFG_SWTB, 0);
12 else
13 REG_WRITE(ah, AR_CFG, AR_CFG_SWTD | AR_CFG_SWRD);
14