blob: 2227be4641d1077f432c24684576c97f641ebcef [file] [log] [blame]
Jeff Johnson295189b2012-06-20 16:38:30 -07001/*
Gopichand Nakkala92f07d82013-01-08 21:16:34 -08002 * Copyright (c) 2012-2013, The Linux Foundation. All rights reserved.
3 *
4 * Previously licensed under the ISC license by Qualcomm Atheros, Inc.
5 *
6 *
7 * Permission to use, copy, modify, and/or distribute this software for
8 * any purpose with or without fee is hereby granted, provided that the
9 * above copyright notice and this permission notice appear in all
10 * copies.
11 *
12 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
13 * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
14 * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
15 * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
16 * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
17 * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
18 * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
19 * PERFORMANCE OF THIS SOFTWARE.
20 */
21/*
Jeff Johnson32d95a32012-09-10 13:15:23 -070022 * Copyright (c) 2012, The Linux Foundation. All rights reserved.
Jeff Johnson295189b2012-06-20 16:38:30 -070023 *
24 * Previously licensed under the ISC license by Qualcomm Atheros, Inc.
25 *
26 *
27 * Permission to use, copy, modify, and/or distribute this software for
28 * any purpose with or without fee is hereby granted, provided that the
29 * above copyright notice and this permission notice appear in all
30 * copies.
31 *
32 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
33 * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
34 * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
35 * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
36 * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
37 * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
38 * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
39 * PERFORMANCE OF THIS SOFTWARE.
40 */
41
42/** ------------------------------------------------------------------------- *
43 ------------------------------------------------------------------------- *
44
45
46 \file pttFrameGen.h
47
48 \brief Definitions for PTT frame generation
49
50 $Id$
51
52 Copyright (C) 2006 Airgo Networks, Incorporated
53
54
55 ========================================================================== */
56
57#ifndef PTTFRAMEGEN_H
58#define PTTFRAMEGEN_H
59
60
61//#define MAX_PKT_GEN_BUF_ENTRY (HAL_HIF_MAX_TX_RING_ENTRY >> 1)
62
63
64
65#define MAX_PAYLOAD_SIZE 2400
66#define MAX_TX_PAYLOAD_SIZE 4096
67
68typedef enum {
69 TEST_PAYLOAD_NONE,
70 TEST_PAYLOAD_FILL_BYTE,
71 TEST_PAYLOAD_RANDOM,
72 TEST_PAYLOAD_RAMP,
73 TEST_PAYLOAD_TEMPLATE,
74 TEST_PAYLOAD_MAX = 0X3FFFFFFF, //dummy value to set enum to 4 bytes
75} ePayloadContents;
76
77
78#define MAC_ADDR_SIZE ( 6 )
79
80typedef PACKED_PRE struct PACKED_POST {
81 tANI_U32 numTestPackets;
82 tANI_U32 interFrameSpace;
83 eHalPhyRates rate;
84 ePayloadContents payloadContents;
85 tANI_U16 payloadLength;
86 tANI_U8 payloadFillByte;
87 tANI_BOOLEAN pktAutoSeqNum; //seq num setting (hw or not) for packet gen
88
89 tANI_U8 addr1[MAC_ADDR_SIZE];
90 tANI_U8 addr2[MAC_ADDR_SIZE];
91 tANI_U8 addr3[MAC_ADDR_SIZE];
92 tANI_U8 tx_mode;
93 tANI_BOOLEAN crc; //0 = no FCS calculated = power detector works = receive won't work?,
94 //1 = crc calculated = receive works, but power detector workaround doesn't
95
96 ePhyDbgPreamble preamble;
97} sPttFrameGenParams;
98
99
100typedef PACKED_PRE struct PACKED_POST {
101 tANI_U32 legacy; //11g OFDM preamble
102 tANI_U32 gfSimo20; //greenfield preamble
Jeff Johnson295189b2012-06-20 16:38:30 -0700103 tANI_U32 mmSimo20; //mixed mode preamble
Jeff Johnson43971f52012-07-17 12:26:56 -0700104 tANI_U32 gfSimo40; //greenfield preamble
105 tANI_U32 mmSimo40; //mixed mode preamble
106 tANI_U32 txbShort; //11b short
107 tANI_U32 txbLong; //11b long
108 tANI_U32 acSimo204080; //11ac SIMO 20,40,80
Jeff Johnson295189b2012-06-20 16:38:30 -0700109 tANI_U32 total;
110} sTxFrameCounters;
111
112#endif