1 //------------------------------------------------------------------------------
2 // <copyright file="testcmd.h" company="Atheros">
3 // Copyright (c) 2004-2010 Atheros Corporation. All rights reserved.
6 // Permission to use, copy, modify, and/or distribute this software for any
7 // purpose with or without fee is hereby granted, provided that the above
8 // copyright notice and this permission notice appear in all copies.
10 // THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
11 // WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
12 // MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
13 // ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
14 // WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
15 // ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
16 // OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
19 //------------------------------------------------------------------------------
20 //==============================================================================
21 // Author(s): ="Atheros"
22 //==============================================================================
32 #define TCMD_MAX_RATES 12
34 #define TCMD_MAX_RATES 28
47 mode : TCMD_CONT_TX_OFF - Disabling continous tx
48 TCMD_CONT_TX_SINE - Enable continuous unmodulated tx
49 TCMD_CONT_TX_FRAME- Enable continuous modulated tx
50 freq : Channel freq in Mhz. (e.g 2412 for channel 1 in 11 g)
63 txPwr: Tx power in dBm[5 -11] for unmod Tx, [5-14] for mod Tx
64 antenna: 1 - one antenna
66 Note : Enable/disable continuous tx test cmd works only when target is awake.
78 TCMD_WLAN_MODE_NOHT = 0,
79 TCMD_WLAN_MODE_HT20 = 1,
80 TCMD_WLAN_MODE_HT40PLUS = 2,
81 TCMD_WLAN_MODE_HT40MINUS = 3,
84 typedef PREPACK struct {
99 } POSTPACK TCMD_CONT_TX;
101 #define TCMD_TXPATTERN_ZERONE 0x1
102 #define TCMD_TXPATTERN_ZERONE_DIS_SCRAMBLE 0x2
105 act: TCMD_CONT_RX_PROMIS - promiscuous mode (accept all incoming frames)
106 TCMD_CONT_RX_FILTER - filter mode (accept only frames with dest
107 address equal specified
108 mac address (set via act =3)
109 TCMD_CONT_RX_REPORT off mode (disable cont rx mode and get the
110 report from the last cont
113 TCMD_CONT_RX_SETMAC - set MacAddr mode (sets the MAC address for the
114 target. This Overrides
115 the default MAC address.)
119 TCMD_CONT_RX_PROMIS =0,
123 TCMD_CONT_RX_SET_ANT_SWITCH_TABLE
126 typedef PREPACK struct {
131 struct PREPACK TCMD_CONT_RX_PARA {
136 struct PREPACK TCMD_CONT_RX_REPORT {
141 u16 rateCnt[TCMD_MAX_RATES];
142 u16 rateCntShortGuard[TCMD_MAX_RATES];
144 struct PREPACK TCMD_CONT_RX_MAC {
145 A_UCHAR addr[ATH_MAC_LEN];
147 struct PREPACK TCMD_CONT_RX_ANT_SWITCH_TABLE {
150 }POSTPACK antswitchtable;
152 } POSTPACK TCMD_CONT_RX;
154 /* Force sleep/wake test cmd
155 mode: TCMD_PM_WAKEUP - Wakeup the target
156 TCMD_PM_SLEEP - Force the target to sleep.
159 TCMD_PM_WAKEUP = 1, /* be consistent with target */
164 typedef PREPACK struct {
175 typedef PREPACK union {
185 #endif /* TESTCMD_H_ */