relayd: update to the latest version, fixes some issues found by Coverity
[openwrt/staging/rmilecki.git] / package / kernel / mac80211 / patches / 333-ath9k-enable-hw-manual-peak-calibration-for-QCA9561.patch
1 From: Miaoqing Pan <miaoqing@qca.qualcomm.com>
2 Date: Tue, 1 Sep 2015 10:56:09 +0800
3 Subject: [PATCH] ath9k: enable hw manual peak calibration for QCA9561
4
5 This patch fix https://lists.openwrt.org/pipermail/openwrt-devel/
6 2015-August/034979.html. As the peak detect calibration is set
7 incorrectly.
8
9 Signed-off-by: Miaoqing Pan <miaoqing@qca.qualcomm.com>
10 ---
11
12 --- a/drivers/net/wireless/ath/ath9k/ar9003_calib.c
13 +++ b/drivers/net/wireless/ath/ath9k/ar9003_calib.c
14 @@ -1249,7 +1249,8 @@ static void ar9003_hw_manual_peak_cal(st
15 REG_RMW_FIELD(ah, AR_PHY_65NM_RXRF_AGC(chain),
16 AR_PHY_65NM_RXRF_AGC_AGC2G_CALDAC_OVR, 0x0);
17
18 - if (AR_SREV_9003_PCOEM(ah) || AR_SREV_9550(ah) || AR_SREV_9531(ah)) {
19 + if (AR_SREV_9003_PCOEM(ah) || AR_SREV_9550(ah) || AR_SREV_9531(ah) ||
20 + AR_SREV_9561(ah)) {
21 if (is_2g)
22 REG_RMW_FIELD(ah, AR_PHY_65NM_RXRF_AGC(chain),
23 AR_PHY_65NM_RXRF_AGC_AGC2G_DBDAC_OVR,
24 @@ -1640,7 +1641,8 @@ static bool ar9003_hw_init_cal_soc(struc
25
26 skip_tx_iqcal:
27 if (run_agc_cal || !(ah->ah_flags & AH_FASTCC)) {
28 - if (AR_SREV_9330_11(ah) || AR_SREV_9531(ah) || AR_SREV_9550(ah)) {
29 + if (AR_SREV_9330_11(ah) || AR_SREV_9531(ah) || AR_SREV_9550(ah) ||
30 + AR_SREV_9561(ah)) {
31 for (i = 0; i < AR9300_MAX_CHAINS; i++) {
32 if (!(ah->rxchainmask & (1 << i)))
33 continue;