aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath9k/init.c
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2011-03-23 15:57:31 -0400
committerJohn W. Linville <linville@tuxdriver.com>2011-03-30 14:15:20 -0400
commit6de12a1bcef0145436e815d30a3d48b9fadb199d (patch)
tree8a54c5906d4b74ce85e0e10f247a2b9765a31ae8 /drivers/net/wireless/ath/ath9k/init.c
parentc429bdcf8fe033f04830a960e07c13a01f631499 (diff)
ath9k_hw: remove pCap->keycache_size
Similar to the number of tx queue, the number of keycache entries depends on the chip and shouldn't be messed with based on EEPROM data. Remove this field and stick to using AR_KEYTABLE_SIZE Signed-off-by: Felix Fietkau <nbd@openwrt.org> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/init.c')
-rw-r--r--drivers/net/wireless/ath/ath9k/init.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/drivers/net/wireless/ath/ath9k/init.c b/drivers/net/wireless/ath/ath9k/init.c
index db1b7553c684..1ac8318d82a3 100644
--- 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 *sc)
407 int i = 0; 407 int i = 0;
408 408
409 /* Get the hardware key cache size. */ 409 /* Get the hardware key cache size. */
410 common->keymax = sc->sc_ah->caps.keycache_size; 410 common->keymax = AR_KEYTABLE_SIZE;
411 if (common->keymax > ATH_KEYMAX) {
412 ath_dbg(common, ATH_DBG_ANY,
413 "Warning, using only %u entries in %u key cache\n",
414 ATH_KEYMAX, common->keymax);
415 common->keymax = ATH_KEYMAX;
416 }
417 411
418 /* 412 /*
419 * Reset the key cache since some parts do not 413 * Reset the key cache since some parts do not