summaryrefslogtreecommitdiffstats
path: root/target/linux/realtek/files/drivers/net/wireless/rtl8192cd/8812_vht_gen.h
blob: f25a97e841420608348ead975b8bfc2e10ecb719 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
/*****************************************************************************
 *	Copyright(c) 2009,  RealTEK Technology Inc. All Right Reserved.
 *
 * Module:	__INC_HAL8812REG_H
 *
 *
 * Note:	1. Define Mac register address and corresponding bit mask map
 *			
 *
 * Export:	Constants, macro, functions(API), global variables(None).
 *
 * Abbrev:	
 *
 * History:
 *		Data		Who		Remark 
 * 
 *****************************************************************************/

#if  defined(CONFIG_RTL_8812_SUPPORT) || defined(CONFIG_WLAN_HAL_8881A)

//=== VHT capability info field ===

#define MAX_MPDU_LENGTH_S	0
#define MAX_MPDU_LENGTH_E	1

#define CHL_WIDTH_S	2
#define CHL_WIDTH_E	3  

#define RX_LDPC_S	4   
#define RX_LDPC_E	4

#define SHORT_GI80M_S	5 
#define SHORT_GI80M_E	5

#define SHORT_GI160M_S	6
#define SHORT_GI160M_E	6

#define TX_STBC_S	7
#define TX_STBC_E	7

#define RX_STBC_S	8
#define RX_STBC_E	10

#define SU_BFER_S	11  
#define SU_BFER_E	11

#define SU_BFEE_S	12
#define SU_BFEE_E	12

#define MAX_ANT_SUPP_S	13
#define MAX_ANT_SUPP_E	15

#define SOUNDING_DIMENSIONS_S	16    
#define SOUNDING_DIMENSIONS_E	18

#define MU_BFER_S	19
#define MU_BFER_E	19

#define MU_BFEE_S	20
#define MU_BFEE_E	20

#define TXOP_PS_S	21
#define TXOP_PS_E 	21

#define HTC_VHT_S	22   
#define HTC_VHT_E	22 

#define MAX_RXAMPDU_FACTOR_S	23
#define MAX_RXAMPDU_FACTOR_E	25

#define LINK_ADAPTION_S	26
#define LINK_ADAPTION_E	27

#define RX_ANT_PC_S	28      
#define RX_ANT_PC_E 28

#define TX_ANT_PC_S	29 
#define TX_ANT_PC_E 29  

//30 - 31 Reserved 


//=== VHT supported mcs set field ===

#define MCS_RX_MAP_S	0
#define MCS_RX_MAP_E	15

#define MCS_RX_HIGHEST_RATE_S	16 
#define MCS_RX_HIGHEST_RATE_E	28

#define MCS_TX_MAP_S	0  //32-32
#define MCS_TX_MAP_E	15 //47-32

#define MCS_TX_HIGHEST_RATE_S	16	//48-32
#define MCS_TX_HIGHEST_RATE_E	28	//60-32

#ifdef BEAMFORMING_SUPPORT

VOID
Beamforming_GidPAid(
	struct rtl8192cd_priv *priv,
	struct stat_info	*pstat
);

BOOLEAN
BeamformingInit(
	struct rtl8192cd_priv *priv,
	pu1Byte			RA,
	u2Byte			AID
	);

VOID
BeamformingDeInit(
	struct rtl8192cd_priv *priv,
	pu1Byte			RA
	);


VOID
BeamformingReset(
	struct rtl8192cd_priv *priv
	);

VOID
BeamformingControl(
	struct rtl8192cd_priv *priv,
	pu1Byte			RA,
	u1Byte			AID,
	u1Byte			Mode,
	u1Byte 			BW
	);

VOID
BeamformingEnd(
	struct rtl8192cd_priv *priv,
	BOOLEAN			Status	
	);

VOID
OnNDPAPacket(
	struct rtl8192cd_priv *priv,
	IN	PRT_RFD		pRfd
	);

#endif

#endif