ath9k: fix selecting the second antenna on a single-stream device with diversity
authorFelix Fietkau <nbd@openwrt.org>
Thu, 12 Jul 2012 14:45:59 +0000 (14:45 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Thu, 12 Jul 2012 14:45:59 +0000 (14:45 +0000)
SVN-Revision: 32685

package/mac80211/patches/561-ath9k_antenna_mask_validate.patch

index 9ad4f57d3db19bf7b889aee370914987c8279973..63fce77f199e1f5a40c733f77fac6537d605d7e7 100644 (file)
@@ -6,7 +6,7 @@
  
 +static bool validate_antenna_mask(struct ath_hw *ah, u32 val)
 +{
-+      switch (val & ah->caps.rx_chainmask) {
++      switch (val & 0x7) {
 +      case 0x1:
 +      case 0x3:
 +      case 0x7: