mac80211: add support for AR9550
[openwrt/staging/yousong.git] / package / mac80211 / patches / 579-ath9k-read-spur-frequency-information-from-eeprom-fo.patch
1 From 987807e9e1a0ec0767635d0bd63003766fb527ad Mon Sep 17 00:00:00 2001
2 From: Gabor Juhos <juhosg@openwrt.org>
3 Date: Mon, 2 Jul 2012 17:16:06 +0200
4 Subject: [PATCH 10/20] ath9k: read spur frequency information from eeprom for AR9550
5
6 Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
7 Acked-by: Luis R. Rodriguez <mcgrof@qca.qualcomm.com>
8 ---
9 drivers/net/wireless/ath/ath9k/ar9003_phy.c | 6 ++++--
10 1 files changed, 4 insertions(+), 2 deletions(-)
11
12 --- a/drivers/net/wireless/ath/ath9k/ar9003_phy.c
13 +++ b/drivers/net/wireless/ath/ath9k/ar9003_phy.c
14 @@ -180,7 +180,8 @@ static void ar9003_hw_spur_mitigate_mrc_
15 * is out-of-band and can be ignored.
16 */
17
18 - if (AR_SREV_9485(ah) || AR_SREV_9340(ah) || AR_SREV_9330(ah)) {
19 + if (AR_SREV_9485(ah) || AR_SREV_9340(ah) || AR_SREV_9330(ah) ||
20 + AR_SREV_9550(ah)) {
21 spur_fbin_ptr = ar9003_get_spur_chan_ptr(ah,
22 IS_CHAN_2GHZ(chan));
23 if (spur_fbin_ptr[0] == 0) /* No spur */
24 @@ -207,7 +208,8 @@ static void ar9003_hw_spur_mitigate_mrc_
25 if (AR_SREV_9462(ah) && (i == 0 || i == 3))
26 continue;
27 negative = 0;
28 - if (AR_SREV_9485(ah) || AR_SREV_9340(ah) || AR_SREV_9330(ah))
29 + if (AR_SREV_9485(ah) || AR_SREV_9340(ah) || AR_SREV_9330(ah) ||
30 + AR_SREV_9550(ah))
31 cur_bb_spur = ath9k_hw_fbin2freq(spur_fbin_ptr[i],
32 IS_CHAN_2GHZ(chan));
33 else