]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/net/wireless/ath5k/base.c
ath5k: use AR5K_KEYTABLE_SIZE when initializing key table
[linux-2.6-omap-h63xx.git] / drivers / net / wireless / ath5k / base.c
index 742616a03d5f3d279d4590c73846d39718e848b7..75e5970c0799c2936edb08afa27fef42e6d25dfd 100644 (file)
@@ -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);
 
        /*