]> git.baikalelectronics.ru Git - kernel.git/commit
rt2x00: Force full register config after start()
authorIvo van Doorn <ivdoorn@gmail.com>
Mon, 21 Jul 2008 09:52:44 +0000 (11:52 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 29 Jul 2008 20:55:06 +0000 (16:55 -0400)
commited823576d4619582e9c58a888c03eaf1c9955559
tree714d90c27d1d96f4d51755145b7fd523ba806620
parentdc54792a4b2dca02b320afd09076b37396da6759
rt2x00: Force full register config after start()

rt2x00 will only perform configuration changes from
mac80211 when the configuration option has changed.
This means it keeps track of the current active configuration
and will check these values when the config() callback function
is used.

However this causes breakage when the interface has been
brought down and up again, since all stored active values
aren't reset while the registers might have.
This is for example the case with rt61pci antenna registers which
will jump to invalid values when the interface has been started.

To make sure a full configuration takes place after the start()
callback function, a new flag is added which will be checked
during config() and skips the "what's changed" phase.

Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/rt2x00/rt2x00.h
drivers/net/wireless/rt2x00/rt2x00dev.c
drivers/net/wireless/rt2x00/rt2x00mac.c