From c65638a72c619e941bcb4006feded09fd358ad5f Mon Sep 17 00:00:00 2001 From: "John W. Linville" Date: Mon, 21 Jan 2008 15:36:04 -0500 Subject: 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 --- drivers/net/wireless/ath5k/base.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'drivers') diff --git a/drivers/net/wireless/ath5k/base.c b/drivers/net/wireless/ath5k/base.c index 742616a03d5..75e5970c079 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); /* -- cgit v1.2.3