ath9k: add a few de-bloating and optimization patches
[openwrt/svn-archive/archive.git] / package / mac80211 / patches / 565-ath9k_remove_ht_config.patch
1 --- a/drivers/net/wireless/ath/ath9k/hw.c
2 +++ b/drivers/net/wireless/ath/ath9k/hw.c
3 @@ -379,11 +379,6 @@ static void ath9k_hw_init_config(struct
4 ah->config.spurchans[i][1] = AR_NO_SPUR;
5 }
6
7 - if (ah->hw_version.devid != AR2427_DEVID_PCIE)
8 - ah->config.ht_enable = 1;
9 - else
10 - ah->config.ht_enable = 0;
11 -
12 /* PAPRD needs some more work to be enabled */
13 ah->config.paprd_disable = 1;
14
15 @@ -1889,7 +1884,7 @@ int ath9k_hw_fill_cap_info(struct ath_hw
16
17 common->crypt_caps |= ATH_CRYPT_CAP_CIPHER_AESCCM;
18
19 - if (ah->config.ht_enable)
20 + if (ah->hw_version.devid != AR2427_DEVID_PCIE)
21 pCap->hw_caps |= ATH9K_HW_CAP_HT;
22 else
23 pCap->hw_caps &= ~ATH9K_HW_CAP_HT;
24 --- a/drivers/net/wireless/ath/ath9k/hw.h
25 +++ b/drivers/net/wireless/ath/ath9k/hw.h
26 @@ -222,7 +222,6 @@ struct ath9k_ops_config {
27 u8 pcie_clock_req;
28 u32 pcie_waen;
29 u8 analog_shiftreg;
30 - u8 ht_enable;
31 u8 paprd_disable;
32 u32 ofdm_trig_low;
33 u32 ofdm_trig_high;