rt2x00: fix beacon reset on rt2800
authorHelmut Schaa <helmut.schaa@googlemail.com>
Tue, 29 Jun 2010 19:48:06 +0000 (21:48 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 30 Jun 2010 19:00:52 +0000 (15:00 -0400)
commitfdb87251229be046b2b61fd15320320f7b66853b
tree5b2a4cb9403004bfc9e57e618fefceb7938a8621
parent8654b79f9cad1095c905d407193f1230d073786d
rt2x00: fix beacon reset on rt2800

When an interface is removed the according beacon entry should be reset.
The current approach to only clear the first word is not enough to stop
the device from sending out the beacon, hence resulting in beacons being
sent out for already removed interfaces.

Fix this by invalidating the entire TXWI in front of the beacon instead
of only the first word.

Also clear all beacons during startup in the same way.

Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com>
Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/rt2x00/rt2800lib.c