]> git.baikalelectronics.ru Git - kernel.git/commit
rt2x00: Fix antenna initialization
authorIvo van Doorn <IvDoorn@gmail.com>
Tue, 29 Jun 2010 19:49:05 +0000 (21:49 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 30 Jun 2010 19:00:53 +0000 (15:00 -0400)
commit86e512a4c94e94718c720ade584a88ca7506694d
tree83022c2dcbee50ae19c8e9718634bd06bf342375
parente85eae5da48213fbd208d6666007055b8606d9d9
rt2x00: Fix antenna initialization

Legacy driver indicates that BBP1_TX_ANTENNA must be set
to 0 for TXPATH values of 1 and 3. So the previous statement
that nothing should be done for TXPATH = 3, is false.

Furthermore, remove the false BBP3_RX_ANTENNA initialization
when TXPATH is 1 for PCI and SOC devices. This field will always
be overridden in the next switch statement, making this initialization
bogus. History of this line indicates it was there from the beginning,
and was once caught as typo. Instead of replacing the line with the
correct line, the correct line was added...

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