diff options
author | Felix Fietkau <nbd@openwrt.org> | 2011-06-24 19:53:13 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2011-06-24 19:53:13 +0000 |
commit | c7744447a5312258fb08d8191976d35170ed8faa (patch) | |
tree | e56b59dcf552f1cae375d9d5b33716c9dc090e75 /package/mac80211/patches/540-ath9k-define-mac-version-for-AR9330.patch | |
parent | e2d3555a9110e82b9161ebe2643fc0badd4ec565 (diff) | |
download | upstream-c7744447a5312258fb08d8191976d35170ed8faa.tar.gz upstream-c7744447a5312258fb08d8191976d35170ed8faa.tar.bz2 upstream-c7744447a5312258fb08d8191976d35170ed8faa.zip |
mac80211: update to wireless-testing 2011-06-22
SVN-Revision: 27275
Diffstat (limited to 'package/mac80211/patches/540-ath9k-define-mac-version-for-AR9330.patch')
-rw-r--r-- | package/mac80211/patches/540-ath9k-define-mac-version-for-AR9330.patch | 60 |
1 files changed, 0 insertions, 60 deletions
diff --git a/package/mac80211/patches/540-ath9k-define-mac-version-for-AR9330.patch b/package/mac80211/patches/540-ath9k-define-mac-version-for-AR9330.patch deleted file mode 100644 index 179e5c6dea..0000000000 --- a/package/mac80211/patches/540-ath9k-define-mac-version-for-AR9330.patch +++ /dev/null @@ -1,60 +0,0 @@ ---- a/drivers/net/wireless/ath/ath9k/hw.c -+++ b/drivers/net/wireless/ath/ath9k/hw.c -@@ -560,6 +560,7 @@ static int __ath9k_hw_init(struct ath_hw - case AR_SREV_VERSION_9287: - case AR_SREV_VERSION_9271: - case AR_SREV_VERSION_9300: -+ case AR_SREV_VERSION_9330: - case AR_SREV_VERSION_9485: - case AR_SREV_VERSION_9340: - break; -@@ -570,7 +571,8 @@ static int __ath9k_hw_init(struct ath_hw - return -EOPNOTSUPP; - } - -- if (AR_SREV_9271(ah) || AR_SREV_9100(ah) || AR_SREV_9340(ah)) -+ if (AR_SREV_9271(ah) || AR_SREV_9100(ah) || AR_SREV_9340(ah) || -+ AR_SREV_9330(ah)) - ah->is_pciexpress = false; - - ah->hw_version.phyRev = REG_READ(ah, AR_PHY_CHIP_ID); -@@ -2584,6 +2586,7 @@ static struct { - { AR_SREV_VERSION_9287, "9287" }, - { AR_SREV_VERSION_9271, "9271" }, - { AR_SREV_VERSION_9300, "9300" }, -+ { AR_SREV_VERSION_9330, "9330" }, - { AR_SREV_VERSION_9485, "9485" }, - }; - ---- a/drivers/net/wireless/ath/ath9k/reg.h -+++ b/drivers/net/wireless/ath/ath9k/reg.h -@@ -788,6 +788,10 @@ - #define AR_SREV_REVISION_9271_11 1 - #define AR_SREV_VERSION_9300 0x1c0 - #define AR_SREV_REVISION_9300_20 2 /* 2.0 and 2.1 */ -+#define AR_SREV_VERSION_9330 0x200 -+#define AR_SREV_REVISION_9330_10 0 -+#define AR_SREV_REVISION_9330_11 1 -+#define AR_SREV_REVISION_9330_12 2 - #define AR_SREV_VERSION_9485 0x240 - #define AR_SREV_REVISION_9485_10 0 - #define AR_SREV_REVISION_9485_11 1 -@@ -862,6 +866,18 @@ - #define AR_SREV_9300_20_OR_LATER(_ah) \ - ((_ah)->hw_version.macVersion >= AR_SREV_VERSION_9300) - -+#define AR_SREV_9330(_ah) \ -+ (((_ah)->hw_version.macVersion == AR_SREV_VERSION_9330)) -+#define AR_SREV_9330_10(_ah) \ -+ (AR_SREV_9330((_ah)) && \ -+ ((_ah)->hw_version.macRev == AR_SREV_REVISION_9330_10)) -+#define AR_SREV_9330_11(_ah) \ -+ (AR_SREV_9330((_ah)) && \ -+ ((_ah)->hw_version.macRev == AR_SREV_REVISION_9330_11)) -+#define AR_SREV_9330_12(_ah) \ -+ (AR_SREV_9330((_ah)) && \ -+ ((_ah)->hw_version.macRev == AR_SREV_REVISION_9330_12)) -+ - #define AR_SREV_9485(_ah) \ - (((_ah)->hw_version.macVersion == AR_SREV_VERSION_9485)) - #define AR_SREV_9485_10(_ah) \ |