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

Commit 7865598e authored by Felix Fietkau's avatar Felix Fietkau Committed by Kalle Valo
Browse files

ath9k_hw: fix device ID check for AR956x



Because of the missing return, the macVersion value was being
overwritten with an invalid register read

Signed-off-by: default avatarFelix Fietkau <nbd@openwrt.org>
Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
parent 145c3708
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -279,6 +279,7 @@ static void ath9k_hw_read_revisions(struct ath_hw *ah)
		return;
		return;
	case AR9300_DEVID_QCA956X:
	case AR9300_DEVID_QCA956X:
		ah->hw_version.macVersion = AR_SREV_VERSION_9561;
		ah->hw_version.macVersion = AR_SREV_VERSION_9561;
		return;
	}
	}


	val = REG_READ(ah, AR_SREV) & AR_SREV_ID;
	val = REG_READ(ah, AR_SREV) & AR_SREV_ID;