rt2x00: Add antenna setting for RT3070/RT3090/RT3390 with RX antenna diversity support
authorRA-Jay Hung <Jay_Hung@ralinktech.com>
Sun, 20 Feb 2011 12:54:52 +0000 (13:54 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 21 Feb 2011 20:39:59 +0000 (15:39 -0500)
commitd96aa640967ab10641a0a389a4a1569efa54ac72
tree31933f3ada13116abea5b37f3c161d96b7132785
parent9e0bc671873c96104b8f793b03661f443e1c4b5a
rt2x00: Add antenna setting for RT3070/RT3090/RT3390 with RX antenna diversity support

For RT3070/RT3090/RT3390 with RX antenna diversity support, we must select
default antenna using gpio control way even if we do not turn on
antenna diversity feature.

Seperate the meaning of TX/RX chain and antenna. Some chips use
2x2 TX/RX chain but may have 3 RX antennas or 1x1 TX/RX chain
but may have 2 RX antennas to do antenna diversity.

Signed-off-by: RA-Jay Hung <jay_hung@ralinktech.com>
Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/rt2x00/rt2800.h
drivers/net/wireless/rt2x00/rt2800lib.c
drivers/net/wireless/rt2x00/rt2x00.h