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 @@ -279,6 +279,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;
21 @@ -3169,6 +3170,7 @@ static struct {
22 { AR_SREV_VERSION_9550, "9550" },
23 { AR_SREV_VERSION_9565, "9565" },
24 { AR_SREV_VERSION_9531, "9531" },
25 + { AR_SREV_VERSION_9561, "956X" },
28 /* For devices with external radios */