aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/rt2x00/rt73usb.h
diff options
context:
space:
mode:
authorMattias Nissler <mattias.nissler@gmx.de>2007-10-27 07:42:37 -0400
committerDavid S. Miller <davem@davemloft.net>2008-01-28 18:03:01 -0500
commit2676c94d4e5994f92e57fa3ea680f1d652049d03 (patch)
tree877a40fa5f64ed3e6faec9c45642d0dc23ca6225 /drivers/net/wireless/rt2x00/rt73usb.h
parent50794638dc8bcd94b48b10b8bf4381f1049f93cf (diff)
rt2x00: Rework rt73 antenna selection
This patch changes rt73 antenna selection to what I believe is the correct way. It also fixes a small selection bug that switched the antennas by accident. Signed-off-by: Mattias Nissler <mattias.nissler@gmx.de> Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/wireless/rt2x00/rt73usb.h')
-rw-r--r--drivers/net/wireless/rt2x00/rt73usb.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/drivers/net/wireless/rt2x00/rt73usb.h b/drivers/net/wireless/rt2x00/rt73usb.h
index 13f479c7da0d..b967df27886a 100644
--- a/drivers/net/wireless/rt2x00/rt73usb.h
+++ b/drivers/net/wireless/rt2x00/rt73usb.h
@@ -713,13 +713,19 @@ struct hw_pairwise_ta_entry {
713 * R4: RX antenna control 713 * R4: RX antenna control
714 * FRAME_END: 1 - DPDT, 0 - SPDT (Only valid for 802.11G, RF2527 & RF2529) 714 * FRAME_END: 1 - DPDT, 0 - SPDT (Only valid for 802.11G, RF2527 & RF2529)
715 */ 715 */
716#define BBP_R4_RX_ANTENNA FIELD8(0x03) 716
717/*
718 * ANTENNA_CONTROL semantics (guessed):
719 * 0x1: Software controlled antenna switching (fixed or SW diversity)
720 * 0x2: Hardware diversity.
721 */
722#define BBP_R4_RX_ANTENNA_CONTROL FIELD8(0x03)
717#define BBP_R4_RX_FRAME_END FIELD8(0x20) 723#define BBP_R4_RX_FRAME_END FIELD8(0x20)
718 724
719/* 725/*
720 * R77 726 * R77
721 */ 727 */
722#define BBP_R77_TX_ANTENNA FIELD8(0x03) 728#define BBP_R77_RX_ANTENNA FIELD8(0x03)
723 729
724/* 730/*
725 * RF registers 731 * RF registers