diff options
author | Felix Fietkau <nbd@openwrt.org> | 2011-03-23 20:16:58 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2011-03-23 20:16:58 +0000 |
commit | 4cbdad0e9d56858de05423d36da2495ea41fdf48 (patch) | |
tree | 3c38843928033f69ab8088918870f0f6df062151 /package/mac80211/patches/567-ath9k_remove_keycache_size.patch | |
parent | 80239ff7b0b6774a4192c786b3a85d03a4a1d0b1 (diff) | |
download | upstream-4cbdad0e9d56858de05423d36da2495ea41fdf48.tar.gz upstream-4cbdad0e9d56858de05423d36da2495ea41fdf48.tar.bz2 upstream-4cbdad0e9d56858de05423d36da2495ea41fdf48.zip |
ath9k: add a few de-bloating and optimization patches
SVN-Revision: 26281
Diffstat (limited to 'package/mac80211/patches/567-ath9k_remove_keycache_size.patch')
-rw-r--r-- | package/mac80211/patches/567-ath9k_remove_keycache_size.patch | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/package/mac80211/patches/567-ath9k_remove_keycache_size.patch b/package/mac80211/patches/567-ath9k_remove_keycache_size.patch new file mode 100644 index 0000000000..399afec4d6 --- /dev/null +++ b/package/mac80211/patches/567-ath9k_remove_keycache_size.patch @@ -0,0 +1,59 @@ +--- a/drivers/net/wireless/ath/ath9k/init.c ++++ b/drivers/net/wireless/ath/ath9k/init.c +@@ -407,13 +407,7 @@ void ath9k_init_crypto(struct ath_softc + int i = 0; + + /* Get the hardware key cache size. */ +- common->keymax = sc->sc_ah->caps.keycache_size; +- if (common->keymax > ATH_KEYMAX) { +- ath_dbg(common, ATH_DBG_ANY, +- "Warning, using only %u entries in %u key cache\n", +- ATH_KEYMAX, common->keymax); +- common->keymax = ATH_KEYMAX; +- } ++ common->keymax = AR_KEYTABLE_SIZE; + + /* + * Reset the key cache since some parts do not +--- a/drivers/net/wireless/ath/ath9k/htc_drv_init.c ++++ b/drivers/net/wireless/ath/ath9k/htc_drv_init.c +@@ -564,13 +564,7 @@ static void ath9k_init_crypto(struct ath + int i = 0; + + /* Get the hardware key cache size. */ +- common->keymax = priv->ah->caps.keycache_size; +- if (common->keymax > ATH_KEYMAX) { +- ath_dbg(common, ATH_DBG_ANY, +- "Warning, using only %u entries in %u key cache\n", +- ATH_KEYMAX, common->keymax); +- common->keymax = ATH_KEYMAX; +- } ++ common->keymax = AR_KEYTABLE_SIZE; + + if (priv->ah->misc_mode & AR_PCU_MIC_NEW_LOC_ENA) + common->crypt_caps |= ATH_CRYPT_CAP_MIC_COMBINED; +--- a/drivers/net/wireless/ath/ath9k/hw.c ++++ b/drivers/net/wireless/ath/ath9k/hw.c +@@ -1889,12 +1889,6 @@ int ath9k_hw_fill_cap_info(struct ath_hw + else + pCap->hw_caps &= ~ATH9K_HW_CAP_HT; + +- if (capField & AR_EEPROM_EEPCAP_KC_ENTRIES) +- pCap->keycache_size = +- 1 << MS(capField, AR_EEPROM_EEPCAP_KC_ENTRIES); +- else +- pCap->keycache_size = AR_KEYTABLE_SIZE; +- + if (AR_SREV_9285(ah) || AR_SREV_9271(ah)) + pCap->tx_triglevel_max = MAX_TX_FIFO_THRESHOLD >> 1; + else +--- a/drivers/net/wireless/ath/ath9k/hw.h ++++ b/drivers/net/wireless/ath/ath9k/hw.h +@@ -191,7 +191,6 @@ enum ath9k_hw_caps { + + struct ath9k_hw_capabilities { + u32 hw_caps; /* ATH9K_HW_CAP_* from ath9k_hw_caps */ +- u16 keycache_size; + u16 low_5ghz_chan, high_5ghz_chan; + u16 low_2ghz_chan, high_2ghz_chan; + u16 rts_aggr_limit; |