]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd9b35d94b36332083c6260d05fb0c26c9ae64fb3
treec9d3da2954fe84248437434cbbc9c0d53490d22a
parent469027202fa6c77c14ca7762c07670c1e54c24e5
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