From b139cef40ade2d9be8a8a883144b89ebef069666 Mon Sep 17 00:00:00 2001 From: nbd Date: Wed, 23 Mar 2011 20:16:58 +0000 Subject: ath9k: add a few de-bloating and optimization patches git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26281 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- .../patches/565-ath9k_remove_ht_config.patch | 33 ++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 package/mac80211/patches/565-ath9k_remove_ht_config.patch (limited to 'package/mac80211/patches/565-ath9k_remove_ht_config.patch') diff --git a/package/mac80211/patches/565-ath9k_remove_ht_config.patch b/package/mac80211/patches/565-ath9k_remove_ht_config.patch new file mode 100644 index 000000000..f211c6881 --- /dev/null +++ b/package/mac80211/patches/565-ath9k_remove_ht_config.patch @@ -0,0 +1,33 @@ +--- a/drivers/net/wireless/ath/ath9k/hw.c ++++ b/drivers/net/wireless/ath/ath9k/hw.c +@@ -379,11 +379,6 @@ static void ath9k_hw_init_config(struct + ah->config.spurchans[i][1] = AR_NO_SPUR; + } + +- if (ah->hw_version.devid != AR2427_DEVID_PCIE) +- ah->config.ht_enable = 1; +- else +- ah->config.ht_enable = 0; +- + /* PAPRD needs some more work to be enabled */ + ah->config.paprd_disable = 1; + +@@ -1889,7 +1884,7 @@ int ath9k_hw_fill_cap_info(struct ath_hw + + common->crypt_caps |= ATH_CRYPT_CAP_CIPHER_AESCCM; + +- if (ah->config.ht_enable) ++ if (ah->hw_version.devid != AR2427_DEVID_PCIE) + pCap->hw_caps |= ATH9K_HW_CAP_HT; + else + pCap->hw_caps &= ~ATH9K_HW_CAP_HT; +--- a/drivers/net/wireless/ath/ath9k/hw.h ++++ b/drivers/net/wireless/ath/ath9k/hw.h +@@ -222,7 +222,6 @@ struct ath9k_ops_config { + u8 pcie_clock_req; + u32 pcie_waen; + u8 analog_shiftreg; +- u8 ht_enable; + u8 paprd_disable; + u32 ofdm_trig_low; + u32 ofdm_trig_high; -- cgit v1.2.3