summaryrefslogtreecommitdiffstats
path: root/package/mac80211/patches/566-ath9k_remove_regcap.patch
diff options
context:
space:
mode:
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2011-03-23 20:16:58 +0000
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2011-03-23 20:16:58 +0000
commitb139cef40ade2d9be8a8a883144b89ebef069666 (patch)
treef81527d3f14a95adbaa3a5d1133fd7c06137db6b /package/mac80211/patches/566-ath9k_remove_regcap.patch
parentf8662e2c223c8ba4dee286adc46f52adea92f17a (diff)
ath9k: add a few de-bloating and optimization patches
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26281 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/mac80211/patches/566-ath9k_remove_regcap.patch')
-rw-r--r--package/mac80211/patches/566-ath9k_remove_regcap.patch36
1 files changed, 36 insertions, 0 deletions
diff --git a/package/mac80211/patches/566-ath9k_remove_regcap.patch b/package/mac80211/patches/566-ath9k_remove_regcap.patch
new file mode 100644
index 000000000..4ba631632
--- /dev/null
+++ b/package/mac80211/patches/566-ath9k_remove_regcap.patch
@@ -0,0 +1,36 @@
+--- a/drivers/net/wireless/ath/ath9k/hw.c
++++ b/drivers/net/wireless/ath/ath9k/hw.c
+@@ -1941,23 +1941,6 @@ int ath9k_hw_fill_cap_info(struct ath_hw
+ else
+ pCap->hw_caps |= ATH9K_HW_CAP_4KB_SPLITTRANS;
+
+- if (regulatory->current_rd_ext & (1 << REG_EXT_JAPAN_MIDBAND)) {
+- pCap->reg_cap =
+- AR_EEPROM_EEREGCAP_EN_KK_NEW_11A |
+- AR_EEPROM_EEREGCAP_EN_KK_U1_EVEN |
+- AR_EEPROM_EEREGCAP_EN_KK_U2 |
+- AR_EEPROM_EEREGCAP_EN_KK_MIDBAND;
+- } else {
+- pCap->reg_cap =
+- AR_EEPROM_EEREGCAP_EN_KK_NEW_11A |
+- AR_EEPROM_EEREGCAP_EN_KK_U1_EVEN;
+- }
+-
+- /* Advertise midband for AR5416 with FCC midband set in eeprom */
+- if (regulatory->current_rd_ext & (1 << REG_EXT_FCC_MIDBAND) &&
+- AR_SREV_5416(ah))
+- pCap->reg_cap |= AR_EEPROM_EEREGCAP_EN_FCC_MIDBAND;
+-
+ if (AR_SREV_9280_20_OR_LATER(ah) && common->btcoex_enabled) {
+ btcoex_hw->btactive_gpio = ATH_BTACTIVE_GPIO;
+ btcoex_hw->wlanactive_gpio = ATH_WLANACTIVE_GPIO;
+--- a/drivers/net/wireless/ath/ath9k/hw.h
++++ b/drivers/net/wireless/ath/ath9k/hw.h
+@@ -200,7 +200,6 @@ struct ath9k_hw_capabilities {
+ u8 max_txchains;
+ u8 max_rxchains;
+ u16 tx_triglevel_max;
+- u16 reg_cap;
+ u8 num_gpio_pins;
+ u8 rx_hp_qdepth;
+ u8 rx_lp_qdepth;