aboutsummaryrefslogtreecommitdiffstats
path: root/package/kernel/mac80211/patches/300-pending_work.patch
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2014-03-09 08:53:39 +0000
committerFelix Fietkau <nbd@openwrt.org>2014-03-09 08:53:39 +0000
commit4c7ec31e4e9a0ff1dc13f39e761bb6205d4cec8c (patch)
tree12fe02d9c564b35587cfef540ac0201fb8f4861c /package/kernel/mac80211/patches/300-pending_work.patch
parentf014be0345347c99f0933be7bd132327e77f754c (diff)
downloadmaster-187ad058-4c7ec31e4e9a0ff1dc13f39e761bb6205d4cec8c.tar.gz
master-187ad058-4c7ec31e4e9a0ff1dc13f39e761bb6205d4cec8c.tar.bz2
master-187ad058-4c7ec31e4e9a0ff1dc13f39e761bb6205d4cec8c.zip
ath9k: further reduce false baseband hang detects on older chips
Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39847 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/kernel/mac80211/patches/300-pending_work.patch')
-rw-r--r--package/kernel/mac80211/patches/300-pending_work.patch27
1 files changed, 16 insertions, 11 deletions
diff --git a/package/kernel/mac80211/patches/300-pending_work.patch b/package/kernel/mac80211/patches/300-pending_work.patch
index 548f304024..e4eaecfd41 100644
--- a/package/kernel/mac80211/patches/300-pending_work.patch
+++ b/package/kernel/mac80211/patches/300-pending_work.patch
@@ -1,3 +1,16 @@
+commit fcb064fdd5a27bec8d24099bc0172468f34c97cb
+Author: Felix Fietkau <nbd@openwrt.org>
+Date: Sun Mar 9 09:43:09 2014 +0100
+
+ ath9k_hw: fix unreachable code in baseband hang detection code
+
+ The commit "ath9k: reduce baseband hang detection false positive rate"
+ added a delay in the loop checking the baseband state, however it was
+ unreachable due to previous 'continue' statements.
+
+ Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
+ Signed-off-by: Felix Fietkau <nbd@openwrt.org>
+
commit 31959d8df39319e32c6d5ba9c135727be90cfad7
Author: Michal Kazior <michal.kazior@tieto.com>
Date: Fri Mar 7 08:09:38 2014 +0100
@@ -1197,7 +1210,7 @@ Date: Thu Jan 23 20:06:34 2014 +0100
if (AR_SREV_9300(ah))
return !ath9k_hw_detect_mac_hang(ah);
-@@ -1542,9 +1542,13 @@ bool ath9k_hw_check_alive(struct ath_hw
+@@ -1542,9 +1542,14 @@ bool ath9k_hw_check_alive(struct ath_hw
if (AR_SREV_9285_12_OR_LATER(ah))
return true;
@@ -1207,20 +1220,12 @@ Date: Thu Jan 23 20:06:34 2014 +0100
+ if (reg != last_val)
+ return true;
++ udelay(1);
+ last_val = reg;
if ((reg & 0x7E7FFFEF) == 0x00702400)
continue;
-@@ -1556,6 +1560,8 @@ bool ath9k_hw_check_alive(struct ath_hw
- default:
- return true;
- }
-+
-+ udelay(1);
- } while (count-- > 0);
-
- return false;
-@@ -2051,9 +2057,8 @@ static bool ath9k_hw_set_power_awake(str
+@@ -2051,9 +2056,8 @@ static bool ath9k_hw_set_power_awake(str
REG_SET_BIT(ah, AR_RTC_FORCE_WAKE,
AR_RTC_FORCE_WAKE_EN);