Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c65638a7 authored by John W. Linville's avatar John W. Linville Committed by David S. Miller
Browse files

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: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 61cb5dd6
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);

	/*