diff options
author | Felix Fietkau <nbd@openwrt.org> | 2013-01-20 15:55:22 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2013-01-22 14:33:44 -0500 |
commit | fea92cbf0850d788683827990670d3968f893327 (patch) | |
tree | 7d0eee6cbec9e6b38d2eddc150970a49c8e40fda /drivers | |
parent | 24171dd92096fc370b195f3f6bdc0798855dc3f9 (diff) |
ath9k: allow setting arbitrary antenna masks on AR9003+
Cc: stable@vger.kernel.org
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/main.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath9k/main.c b/drivers/net/wireless/ath/ath9k/main.c index 3796e65c26f1..dd91f8fdc01c 100644 --- a/drivers/net/wireless/ath/ath9k/main.c +++ b/drivers/net/wireless/ath/ath9k/main.c | |||
@@ -1826,6 +1826,9 @@ static u32 fill_chainmask(u32 cap, u32 new) | |||
1826 | 1826 | ||
1827 | static bool validate_antenna_mask(struct ath_hw *ah, u32 val) | 1827 | static bool validate_antenna_mask(struct ath_hw *ah, u32 val) |
1828 | { | 1828 | { |
1829 | if (AR_SREV_9300_20_OR_LATER(ah)) | ||
1830 | return true; | ||
1831 | |||
1829 | switch (val & 0x7) { | 1832 | switch (val & 0x7) { |
1830 | case 0x1: | 1833 | case 0x1: |
1831 | case 0x3: | 1834 | case 0x3: |