ath10k: remove support for the obsolete STA firmware
[openwrt/openwrt.git] / package / kernel / mac80211 / patches / 325-ath9k-ar9271_hw_pa_cal-use-REG_READ_ARRAY.patch
1 From: Oleksij Rempel <linux@rempel-privat.de>
2 Date: Sun, 22 Mar 2015 19:29:52 +0100
3 Subject: [PATCH] ath9k: ar9271_hw_pa_cal: use REG_READ_ARRAY
4
5 insted of reading each register separatly
6 and waste 4ms on each operation, we can
7 use one shot read.
8
9 Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
10 Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
11 ---
12
13 --- a/drivers/net/wireless/ath/ath9k/ar9002_calib.c
14 +++ b/drivers/net/wireless/ath/ath9k/ar9002_calib.c
15 @@ -440,8 +440,7 @@ static void ar9271_hw_pa_cal(struct ath_
16 { AR9285_AN_RF2G3, 0 },
17 };
18
19 - for (i = 0; i < ARRAY_SIZE(regList); i++)
20 - regList[i][1] = REG_READ(ah, regList[i][0]);
21 + REG_READ_ARRAY(ah, regList, ARRAY_SIZE(regList));
22
23 ENABLE_REG_RMW_BUFFER(ah);
24 /* 7834, b1=0 */