Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fea92cbf authored by Felix Fietkau's avatar Felix Fietkau Committed by John W. Linville
Browse files

ath9k: allow setting arbitrary antenna masks on AR9003+



Cc: stable@vger.kernel.org
Signed-off-by: default avatarFelix Fietkau <nbd@openwrt.org>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 24171dd9
Loading
Loading
Loading
Loading
+3 −0
Original line number Original line Diff line number Diff line
@@ -1826,6 +1826,9 @@ static u32 fill_chainmask(u32 cap, u32 new)


static bool validate_antenna_mask(struct ath_hw *ah, u32 val)
static bool validate_antenna_mask(struct ath_hw *ah, u32 val)
{
{
	if (AR_SREV_9300_20_OR_LATER(ah))
		return true;

	switch (val & 0x7) {
	switch (val & 0x7) {
	case 0x1:
	case 0x1:
	case 0x3:
	case 0x3: