Skip to content

Commit

Permalink
ath9k_hw: fix device ID check for AR956x
Browse files Browse the repository at this point in the history
Because of the missing return, the macVersion value was being
overwritten with an invalid register read

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
  • Loading branch information
Felix Fietkau authored and Kalle Valo committed Jul 11, 2015
1 parent 145c370 commit 7865598
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/net/wireless/ath/ath9k/hw.c
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,7 @@ static void ath9k_hw_read_revisions(struct ath_hw *ah)
return;
case AR9300_DEVID_QCA956X:
ah->hw_version.macVersion = AR_SREV_VERSION_9561;
return;
}

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

0 comments on commit 7865598

Please sign in to comment.