aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/rt2x00/rt61pci.h
diff options
context:
space:
mode:
authorMattias Nissler <mattias.nissler@gmx.de>2007-10-27 07:41:53 -0400
committerDavid S. Miller <davem@davemloft.net>2008-01-28 18:03:00 -0500
commitacaa410d06e057ed4d8d3926ec4f3cdcdf1ab37f (patch)
tree172b0f7f43d7f4f51d4446c8caff20f88713595b /drivers/net/wireless/rt2x00/rt61pci.h
parent0e14f6d3e088473b411d35ff63737e46efb9e6df (diff)
rt2x00: Rework rt61 antenna selection.
This patch changes rt61 antenna selection again. It helps at least with the rt61 pci card in my box, I hope I haven't broken behaviour on other RF chips. RF 2529 antenna setup is incomplete, we need to at code for diversity when we figure out how it is done properly. 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/rt61pci.h')
-rw-r--r--drivers/net/wireless/rt2x00/rt61pci.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/drivers/net/wireless/rt2x00/rt61pci.h b/drivers/net/wireless/rt2x00/rt61pci.h
index ba5101649403..50d9f6aa62ed 100644
--- a/drivers/net/wireless/rt2x00/rt61pci.h
+++ b/drivers/net/wireless/rt2x00/rt61pci.h
@@ -1077,13 +1077,19 @@ struct hw_pairwise_ta_entry {
1077 * R4: RX antenna control 1077 * R4: RX antenna control
1078 * FRAME_END: 1 - DPDT, 0 - SPDT (Only valid for 802.11G, RF2527 & RF2529) 1078 * FRAME_END: 1 - DPDT, 0 - SPDT (Only valid for 802.11G, RF2527 & RF2529)
1079 */ 1079 */
1080#define BBP_R4_RX_ANTENNA FIELD8(0x03) 1080
1081/*
1082 * ANTENNA_CONTROL semantics (guessed):
1083 * 0x1: Software controlled antenna switching (fixed or SW diversity)
1084 * 0x2: Hardware diversity.
1085 */
1086#define BBP_R4_RX_ANTENNA_CONTROL FIELD8(0x03)
1081#define BBP_R4_RX_FRAME_END FIELD8(0x20) 1087#define BBP_R4_RX_FRAME_END FIELD8(0x20)
1082 1088
1083/* 1089/*
1084 * R77 1090 * R77
1085 */ 1091 */
1086#define BBP_R77_TX_ANTENNA FIELD8(0x03) 1092#define BBP_R77_RX_ANTENNA FIELD8(0x03)
1087 1093
1088/* 1094/*
1089 * RF registers 1095 * RF registers