relayd: update to the latest version, fixes some issues found by Coverity
[openwrt/staging/yousong.git] / package / kernel / mac80211 / patches / 300-ath9k-force-rx_clear-when-disabling-rx.patch
1 From: Felix Fietkau <nbd@openwrt.org>
2 Date: Sun, 7 Jun 2015 13:53:35 +0200
3 Subject: [PATCH] ath9k: force rx_clear when disabling rx
4
5 This makes stopping Rx more reliable and should reduce the frequency of
6 Rx related DMA stop warnings
7
8 Cc: stable@vger.kernel.org
9 Signed-off-by: Felix Fietkau <nbd@openwrt.org>
10 ---
11
12 --- a/drivers/net/wireless/ath/ath9k/mac.c
13 +++ b/drivers/net/wireless/ath/ath9k/mac.c
14 @@ -677,13 +677,15 @@ void ath9k_hw_startpcureceive(struct ath
15
16 ath9k_ani_reset(ah, is_scanning);
17
18 - REG_CLR_BIT(ah, AR_DIAG_SW, (AR_DIAG_RX_DIS | AR_DIAG_RX_ABORT));
19 + REG_CLR_BIT(ah, AR_DIAG_SW,
20 + AR_DIAG_RX_DIS | AR_DIAG_RX_ABORT | AR_DIAG_FORCE_RX_CLEAR);
21 }
22 EXPORT_SYMBOL(ath9k_hw_startpcureceive);
23
24 void ath9k_hw_abortpcurecv(struct ath_hw *ah)
25 {
26 - REG_SET_BIT(ah, AR_DIAG_SW, AR_DIAG_RX_ABORT | AR_DIAG_RX_DIS);
27 + REG_SET_BIT(ah, AR_DIAG_SW,
28 + AR_DIAG_RX_DIS | AR_DIAG_RX_ABORT | AR_DIAG_FORCE_RX_CLEAR);
29
30 ath9k_hw_disable_mib_counters(ah);
31 }