1 From: Felix Fietkau <nbd@openwrt.org>
2 Date: Sun, 21 Jun 2015 19:45:59 +0200
3 Subject: [PATCH] ath9k_hw: fix device ID check for AR956x
5 Because of the missing return, the macVersion value was being
6 overwritten with an invalid register read
8 Signed-off-by: Felix Fietkau <nbd@openwrt.org>
11 --- a/drivers/net/wireless/ath/ath9k/hw.c
12 +++ b/drivers/net/wireless/ath/ath9k/hw.c
13 @@ -278,6 +278,7 @@ static void ath9k_hw_read_revisions(stru
15 case AR9300_DEVID_QCA956X:
16 ah->hw_version.macVersion = AR_SREV_VERSION_9561;
20 val = REG_READ(ah, AR_SREV) & AR_SREV_ID;