rt2x00: Fix vgc_level_reg handling
authorIvo van Doorn <ivdoorn@gmail.com>
Sun, 11 Jul 2010 10:25:17 +0000 (12:25 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 12 Jul 2010 20:05:33 +0000 (16:05 -0400)
commit223dcc26591aa8e4a6bf623164b775b5bd89c9e1
treec9d3da2954fe84248437434cbbc9c0d53490d22a
parentd8147f9d9ed6abfa105234a21f05af4a4839eb80
rt2x00: Fix vgc_level_reg handling

Currently vgc_level_reg and vgc_level are equal to eachother,
while the purpose of vgc_level_reg is the value last written
to the register and is remembered through link tuning resets.
The vgc_level is the currently active level, which is
reset during link tuning resets.

The usage of these variables depends on the drivers, some drivers
need both, while others need only one of the two.

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