summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless
diff options
context:
space:
mode:
authorJohn W. Linville <linville@tuxdriver.com>2008-01-21 15:36:04 -0500
committerDavid S. Miller <davem@davemloft.net>2008-01-28 15:10:47 -0800
commitc65638a72c619e941bcb4006feded09fd358ad5f (patch)
treed6b25fa952fa55620986db083e4740d84f4ad5d3 /drivers/net/wireless
parent61cb5dd6d1c81fbb5629f60db4e2a7faa7124b7a (diff)
downloadop-kernel-dev-c65638a72c619e941bcb4006feded09fd358ad5f.zip
op-kernel-dev-c65638a72c619e941bcb4006feded09fd358ad5f.tar.gz
ath5k: use AR5K_KEYTABLE_SIZE when initializing key table
...instead of using AR5K_KEYCACHE_SIZE, which would seem to be a typo/thinko... Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless')
-rw-r--r--drivers/net/wireless/ath5k/base.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath5k/base.c b/drivers/net/wireless/ath5k/base.c
index 742616a..75e5970 100644
--- a/drivers/net/wireless/ath5k/base.c
+++ b/drivers/net/wireless/ath5k/base.c
@@ -663,7 +663,7 @@ ath5k_attach(struct pci_dev *pdev, struct ieee80211_hw *hw)
* Reset the key cache since some parts do not
* reset the contents on initial power up.
*/
- for (i = 0; i < AR5K_KEYCACHE_SIZE; i++)
+ for (i = 0; i < AR5K_KEYTABLE_SIZE; i++)
ath5k_hw_reset_key(ah, i);
/*
OpenPOWER on IntegriCloud