From 0e0730c316b2058fe6e09a3021b007977f5fc87f Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sun, 21 Jun 2015 17:52:47 +0000 Subject: ath9k: fix ar956x device detection Signed-off-by: Felix Fietkau Backport of r46090 git-svn-id: svn://svn.openwrt.org/openwrt/branches/chaos_calmer@46091 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- ...385-ath9k_hw-fix-device-ID-check-for-AR956x.patch | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 package/kernel/mac80211/patches/385-ath9k_hw-fix-device-ID-check-for-AR956x.patch (limited to 'package/kernel/mac80211/patches/385-ath9k_hw-fix-device-ID-check-for-AR956x.patch') diff --git a/package/kernel/mac80211/patches/385-ath9k_hw-fix-device-ID-check-for-AR956x.patch b/package/kernel/mac80211/patches/385-ath9k_hw-fix-device-ID-check-for-AR956x.patch new file mode 100644 index 0000000000..2674efb91f --- /dev/null +++ b/package/kernel/mac80211/patches/385-ath9k_hw-fix-device-ID-check-for-AR956x.patch @@ -0,0 +1,20 @@ +From: Felix Fietkau +Date: Sun, 21 Jun 2015 19:45:59 +0200 +Subject: [PATCH] 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: Felix Fietkau +--- + +--- a/drivers/net/wireless/ath/ath9k/hw.c ++++ b/drivers/net/wireless/ath/ath9k/hw.c +@@ -278,6 +278,7 @@ static void ath9k_hw_read_revisions(stru + return; + case AR9300_DEVID_QCA956X: + ah->hw_version.macVersion = AR_SREV_VERSION_9561; ++ return; + } + + val = REG_READ(ah, AR_SREV) & AR_SREV_ID; -- cgit v1.2.3