From 549ac6e3df3ceea21cfeab617be74c0ebd50c68c Mon Sep 17 00:00:00 2001 From: Alexander Egorenkov Date: Sat, 6 Feb 2010 20:35:54 +0100 Subject: [PATCH] WCID table entries should be set to { 0xffffffff, 0x0000ffff } at initialization --- rt2860.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/rt2860.c b/rt2860.c index a8cbbc7..3d8912a 100644 --- a/rt2860.c +++ b/rt2860.c @@ -3443,9 +3443,15 @@ static int rt2860_asic_update_beacon(struct rt2860_softc *sc, */ static void rt2860_asic_clear_keytables(struct rt2860_softc *sc) { + int i; + /* clear Rx WCID search table (entries = 256, entry size = 8) */ - rt2860_io_mac_set_region_4(sc, RT2860_REG_WCID(0), 0, 2 * 256); + for (i = 0; i < 256; i++) + { + rt2860_io_mac_write(sc, RT2860_REG_WCID(i), 0xffffffff); + rt2860_io_mac_write(sc, RT2860_REG_WCID(i) + 4, 0x0000ffff); + } /* clear WCID attribute table (entries = 256, entry size = 4) */ -- 2.11.4.GIT