ath10k: remove support for the obsolete STA firmware
[openwrt/openwrt.git] / package / kernel / mac80211 / patches / 385-ath9k_hw-fix-device-ID-check-for-AR956x.patch
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
4
5 Because of the missing return, the macVersion value was being
6 overwritten with an invalid register read
7
8 Signed-off-by: Felix Fietkau <nbd@openwrt.org>
9 ---
10
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
14 return;
15 case AR9300_DEVID_QCA956X:
16 ah->hw_version.macVersion = AR_SREV_VERSION_9561;
17 + return;
18 }
19
20 val = REG_READ(ah, AR_SREV) & AR_SREV_ID;