ath9k: fix selecting the second antenna on a single-stream device with diversity

SVN-Revision: 32685
This commit is contained in:
Felix Fietkau 2012-07-12 14:45:59 +00:00
parent c78c2f80a1
commit a1f0b3a771

View file

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