aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath9k/reg.h
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2009-03-06 03:08:53 -0500
committerJohn W. Linville <linville@tuxdriver.com>2009-03-16 18:09:32 -0400
commit6b765deb01dd076e64a4b01d2101d74206e7df84 (patch)
treeeb9069c2982de78d040331ab134bf45ace94f98a /drivers/net/wireless/ath9k/reg.h
parentd4376ebe168024695f15bfdf603ea6f083dc80f8 (diff)
ath9k: fix AR_SREV_9100_OR_LATER macro
The current macro is wrong, because detects some AR5416 devices as an AR9100 device. The AR5416 devices would have performance issues after this change, because the contents of the ar5416 specific and of the ar9100 specificinitval arrays are swapped. Fortunately we can correct this with the rename of the arrays simply. Changes-licesed-under: ISC Signed-off-by: Gabor Juhos <juhosg@openwrt.org> Signed-off-by: Imre Kaloz <kaloz@openwrt.org> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath9k/reg.h')
-rw-r--r--drivers/net/wireless/ath9k/reg.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath9k/reg.h b/drivers/net/wireless/ath9k/reg.h
index 1be4c71935ea..d86e90e38173 100644
--- a/drivers/net/wireless/ath9k/reg.h
+++ b/drivers/net/wireless/ath9k/reg.h
@@ -754,7 +754,7 @@
754#define AR_SREV_9100(ah) \ 754#define AR_SREV_9100(ah) \
755 ((ah->hw_version.macVersion) == AR_SREV_VERSION_9100) 755 ((ah->hw_version.macVersion) == AR_SREV_VERSION_9100)
756#define AR_SREV_9100_OR_LATER(_ah) \ 756#define AR_SREV_9100_OR_LATER(_ah) \
757 (((_ah)->hw_version.macVersion >= AR_SREV_VERSION_5416_PCIE)) 757 (((_ah)->hw_version.macVersion >= AR_SREV_VERSION_9100))
758 758
759#define AR_SREV_9160(_ah) \ 759#define AR_SREV_9160(_ah) \
760 (((_ah)->hw_version.macVersion == AR_SREV_VERSION_9160)) 760 (((_ah)->hw_version.macVersion == AR_SREV_VERSION_9160))