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

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
...@@ -279,6 +279,7 @@ static void ath9k_hw_read_revisions(struct ath_hw *ah) ...@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment