Skip to content

Commit

Permalink
ath9k: allow setting arbitrary antenna masks on AR9003+
Browse files Browse the repository at this point in the history
Cc: stable@vger.kernel.org
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
Felix Fietkau authored and John W. Linville committed Jan 22, 2013
1 parent 24171dd commit fea92cb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/net/wireless/ath/ath9k/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1826,6 +1826,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:
Expand Down

0 comments on commit fea92cb

Please sign in to comment.