]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
ath9k: allow setting arbitrary antenna masks on AR9003+
authorFelix Fietkau <nbd@openwrt.org>
Sun, 20 Jan 2013 20:55:22 +0000 (21:55 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 4 Feb 2013 00:27:03 +0000 (18:27 -0600)
commit fea92cbf0850d788683827990670d3968f893327 upstream.

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/wireless/ath/ath9k/main.c

index 7909e4309411cf294a993509abf43a666bfa00e8..6962c8a11ef7519d2af5615355a7cd1c900e0daf 100644 (file)
@@ -1830,6 +1830,9 @@ static u32 fill_chainmask(u32 cap, u32 new)
 
 static bool validate_antenna_mask(struct ath_hw *ah, u32 val)
 {
+       if (AR_SREV_9300_20_OR_LATER(ah))
+               return true;
+
        switch (val & 0x7) {
        case 0x1:
        case 0x3: