1 /* SPDX-License-Identifier: (GPL-2.0 OR MPL-1.1) */
2 /* --------------------------------------------------------------------
3  *
4  * Copyright (C) 1999 AbsoluteValue Systems, Inc.  All Rights Reserved.
5  * --------------------------------------------------------------------
6  *
7  * linux-wlan
8  *
9  * --------------------------------------------------------------------
10  *
11  * Inquiries regarding the linux-wlan Open Source project can be
12  * made directly to:
13  *
14  * AbsoluteValue Systems Inc.
15  * info@linux-wlan.com
16  * http://www.linux-wlan.com
17  *
18  * --------------------------------------------------------------------
19  *
20  * Portions of the development of this software were funded by
21  * Intersil Corporation as part of PRISM(R) chipset product development.
22  *
23  * --------------------------------------------------------------------
24  */
25 
26 #ifndef _P80211MKMETADEF_H
27 #define _P80211MKMETADEF_H
28 
29 #define DIDMSG_DOT11REQ_MIBGET \
30 			(P80211DID_MKSECTION(1) | \
31 			P80211DID_MKGROUP(1))
32 #define DIDMSG_DOT11REQ_MIBGET_MIBATTRIBUTE \
33 			(P80211DID_MKSECTION(1) | \
34 			P80211DID_MKGROUP(1) | \
35 			P80211DID_MKITEM(1) | 0x00000000)
36 #define DIDMSG_DOT11REQ_MIBGET_RESULTCODE \
37 			(P80211DID_MKSECTION(1) | \
38 			P80211DID_MKGROUP(1) | \
39 			P80211DID_MKITEM(2) | 0x00000000)
40 #define DIDMSG_DOT11REQ_MIBSET \
41 			(P80211DID_MKSECTION(1) | \
42 			P80211DID_MKGROUP(2))
43 #define DIDMSG_DOT11REQ_MIBSET_MIBATTRIBUTE \
44 			(P80211DID_MKSECTION(1) | \
45 			P80211DID_MKGROUP(2) | \
46 			P80211DID_MKITEM(1) | 0x00000000)
47 #define DIDMSG_DOT11REQ_MIBSET_RESULTCODE \
48 			(P80211DID_MKSECTION(1) | \
49 			P80211DID_MKGROUP(2) | \
50 			P80211DID_MKITEM(2) | 0x00000000)
51 #define DIDMSG_DOT11REQ_SCAN \
52 			(P80211DID_MKSECTION(1) | \
53 			P80211DID_MKGROUP(4))
54 #define DIDMSG_DOT11REQ_SCAN_RESULTS \
55 			(P80211DID_MKSECTION(1) | \
56 			P80211DID_MKGROUP(5))
57 #define DIDMSG_DOT11REQ_START \
58 			(P80211DID_MKSECTION(1) | \
59 			P80211DID_MKGROUP(13))
60 #define DIDMSG_DOT11IND_AUTHENTICATE \
61 			(P80211DID_MKSECTION(2) | \
62 			P80211DID_MKGROUP(1))
63 #define DIDMSG_DOT11IND_ASSOCIATE \
64 			(P80211DID_MKSECTION(2) | \
65 			P80211DID_MKGROUP(3))
66 #define DIDMSG_LNXREQ_IFSTATE \
67 			(P80211DID_MKSECTION(3) | \
68 			P80211DID_MKGROUP(1))
69 #define DIDMSG_LNXREQ_WLANSNIFF \
70 			(P80211DID_MKSECTION(3) | \
71 			P80211DID_MKGROUP(2))
72 #define DIDMSG_LNXREQ_HOSTWEP \
73 			(P80211DID_MKSECTION(3) | \
74 			P80211DID_MKGROUP(3))
75 #define DIDMSG_LNXREQ_COMMSQUALITY \
76 			(P80211DID_MKSECTION(3) | \
77 			P80211DID_MKGROUP(4))
78 #define DIDMSG_LNXREQ_AUTOJOIN \
79 			(P80211DID_MKSECTION(3) | \
80 			P80211DID_MKGROUP(5))
81 #define DIDMSG_P2REQ_READPDA \
82 			(P80211DID_MKSECTION(5) | \
83 			P80211DID_MKGROUP(2))
84 #define DIDMSG_P2REQ_READPDA_PDA \
85 			(P80211DID_MKSECTION(5) | \
86 			P80211DID_MKGROUP(2) | \
87 			P80211DID_MKITEM(1) | 0x00000000)
88 #define DIDMSG_P2REQ_READPDA_RESULTCODE \
89 			(P80211DID_MKSECTION(5) | \
90 			P80211DID_MKGROUP(2) | \
91 			P80211DID_MKITEM(2) | 0x00000000)
92 #define DIDMSG_P2REQ_RAMDL_STATE \
93 			(P80211DID_MKSECTION(5) | \
94 			P80211DID_MKGROUP(11))
95 #define DIDMSG_P2REQ_RAMDL_STATE_ENABLE \
96 			(P80211DID_MKSECTION(5) | \
97 			P80211DID_MKGROUP(11) | \
98 			P80211DID_MKITEM(1) | 0x00000000)
99 #define DIDMSG_P2REQ_RAMDL_STATE_EXEADDR \
100 			(P80211DID_MKSECTION(5) | \
101 			P80211DID_MKGROUP(11) | \
102 			P80211DID_MKITEM(2) | 0x00000000)
103 #define DIDMSG_P2REQ_RAMDL_STATE_RESULTCODE \
104 			(P80211DID_MKSECTION(5) | \
105 			P80211DID_MKGROUP(11) | \
106 			P80211DID_MKITEM(3) | 0x00000000)
107 #define DIDMSG_P2REQ_RAMDL_WRITE \
108 			(P80211DID_MKSECTION(5) | \
109 			P80211DID_MKGROUP(12))
110 #define DIDMSG_P2REQ_RAMDL_WRITE_ADDR \
111 			(P80211DID_MKSECTION(5) | \
112 			P80211DID_MKGROUP(12) | \
113 			P80211DID_MKITEM(1) | 0x00000000)
114 #define DIDMSG_P2REQ_RAMDL_WRITE_LEN \
115 			(P80211DID_MKSECTION(5) | \
116 			P80211DID_MKGROUP(12) | \
117 			P80211DID_MKITEM(2) | 0x00000000)
118 #define DIDMSG_P2REQ_RAMDL_WRITE_DATA \
119 			(P80211DID_MKSECTION(5) | \
120 			P80211DID_MKGROUP(12) | \
121 			P80211DID_MKITEM(3) | 0x00000000)
122 #define DIDMSG_P2REQ_RAMDL_WRITE_RESULTCODE \
123 			(P80211DID_MKSECTION(5) | \
124 			P80211DID_MKGROUP(12) | \
125 			P80211DID_MKITEM(4) | 0x00000000)
126 #define DIDMSG_P2REQ_FLASHDL_STATE \
127 			(P80211DID_MKSECTION(5) | \
128 			P80211DID_MKGROUP(13))
129 #define DIDMSG_P2REQ_FLASHDL_WRITE \
130 			(P80211DID_MKSECTION(5) | \
131 			P80211DID_MKGROUP(14))
132 #define DIDMIB_CAT_DOT11SMT \
133 			P80211DID_MKSECTION(1)
134 #define DIDMIB_DOT11SMT_WEPDEFAULTKEYSTABLE \
135 			(P80211DID_MKSECTION(1) | \
136 			P80211DID_MKGROUP(4))
137 #define didmib_dot11smt_wepdefaultkeystable_key(_i) \
138 			(DIDMIB_DOT11SMT_WEPDEFAULTKEYSTABLE | \
139 			P80211DID_MKITEM(_i) | 0x0c000000)
140 #define DIDMIB_DOT11SMT_PRIVACYTABLE \
141 			(P80211DID_MKSECTION(1) | \
142 			P80211DID_MKGROUP(6))
143 #define DIDMIB_DOT11SMT_PRIVACYTABLE_PRIVACYINVOKED \
144 			(P80211DID_MKSECTION(1) | \
145 			P80211DID_MKGROUP(6) | \
146 			P80211DID_MKITEM(1) | 0x18000000)
147 #define DIDMIB_DOT11SMT_PRIVACYTABLE_WEPDEFAULTKEYID \
148 			(P80211DID_MKSECTION(1) | \
149 			P80211DID_MKGROUP(6) | \
150 			P80211DID_MKITEM(2) | 0x18000000)
151 #define DIDMIB_DOT11SMT_PRIVACYTABLE_EXCLUDEUNENCRYPTED \
152 			(P80211DID_MKSECTION(1) | \
153 			P80211DID_MKGROUP(6) | \
154 			P80211DID_MKITEM(4) | 0x18000000)
155 #define DIDMIB_DOT11MAC_OPERATIONTABLE \
156 			(P80211DID_MKSECTION(2) | \
157 			P80211DID_MKGROUP(1))
158 #define DIDMIB_DOT11MAC_OPERATIONTABLE_MACADDRESS \
159 			(P80211DID_MKSECTION(2) | \
160 			P80211DID_MKGROUP(1) | \
161 			P80211DID_MKITEM(1) | 0x18000000)
162 #define DIDMIB_DOT11MAC_OPERATIONTABLE_RTSTHRESHOLD \
163 			(P80211DID_MKSECTION(2) | \
164 			P80211DID_MKGROUP(1) | \
165 			P80211DID_MKITEM(2) | 0x18000000)
166 #define DIDMIB_DOT11MAC_OPERATIONTABLE_SHORTRETRYLIMIT \
167 			(P80211DID_MKSECTION(2) | \
168 			P80211DID_MKGROUP(1) | \
169 			P80211DID_MKITEM(3) | 0x10000000)
170 #define DIDMIB_DOT11MAC_OPERATIONTABLE_LONGRETRYLIMIT \
171 			(P80211DID_MKSECTION(2) | \
172 			P80211DID_MKGROUP(1) | \
173 			P80211DID_MKITEM(4) | 0x10000000)
174 #define DIDMIB_DOT11MAC_OPERATIONTABLE_FRAGMENTATIONTHRESHOLD \
175 			(P80211DID_MKSECTION(2) | \
176 			P80211DID_MKGROUP(1) | \
177 			P80211DID_MKITEM(5) | 0x18000000)
178 #define DIDMIB_DOT11MAC_OPERATIONTABLE_MAXTRANSMITMSDULIFETIME \
179 			(P80211DID_MKSECTION(2) | \
180 			P80211DID_MKGROUP(1) | \
181 			P80211DID_MKITEM(6) | 0x10000000)
182 #define DIDMIB_CAT_DOT11PHY \
183 			P80211DID_MKSECTION(3)
184 #define DIDMIB_DOT11PHY_OPERATIONTABLE \
185 			(P80211DID_MKSECTION(3) | \
186 			P80211DID_MKGROUP(1))
187 #define DIDMIB_DOT11PHY_TXPOWERTABLE_CURRENTTXPOWERLEVEL \
188 			(P80211DID_MKSECTION(3) | \
189 			P80211DID_MKGROUP(3) | \
190 			P80211DID_MKITEM(10) | 0x18000000)
191 #define DIDMIB_DOT11PHY_DSSSTABLE \
192 			(P80211DID_MKSECTION(3) | \
193 			P80211DID_MKGROUP(5))
194 #define DIDMIB_DOT11PHY_DSSSTABLE_CURRENTCHANNEL \
195 			(P80211DID_MKSECTION(3) | \
196 			P80211DID_MKGROUP(5) | \
197 			P80211DID_MKITEM(1) | 0x10000000)
198 #define DIDMIB_CAT_LNX \
199 			P80211DID_MKSECTION(4)
200 #define DIDMIB_LNX_CONFIGTABLE \
201 			(P80211DID_MKSECTION(4) | \
202 			P80211DID_MKGROUP(1))
203 #define DIDMIB_LNX_CONFIGTABLE_RSNAIE \
204 			(P80211DID_MKSECTION(4) | \
205 			P80211DID_MKGROUP(1) | \
206 			P80211DID_MKITEM(1) | 0x18000000)
207 #define DIDMIB_CAT_P2 \
208 			P80211DID_MKSECTION(5)
209 #define DIDMIB_P2_STATIC \
210 			(P80211DID_MKSECTION(5) | \
211 			P80211DID_MKGROUP(2))
212 #define DIDMIB_P2_STATIC_CNFPORTTYPE \
213 			(P80211DID_MKSECTION(5) | \
214 			P80211DID_MKGROUP(2) | \
215 			P80211DID_MKITEM(1) | 0x18000000)
216 #define DIDMIB_P2_NIC_PRISUPRANGE \
217 			(P80211DID_MKSECTION(5) | \
218 			P80211DID_MKGROUP(5) | \
219 			P80211DID_MKITEM(6) | 0x10000000)
220 #define DIDMIB_P2_MAC \
221 			(P80211DID_MKSECTION(5) | \
222 			P80211DID_MKGROUP(6))
223 #define DIDMIB_P2_MAC_CURRENTTXRATE \
224 			(P80211DID_MKSECTION(5) | \
225 			P80211DID_MKGROUP(6) | \
226 			P80211DID_MKITEM(12) | 0x10000000)
227 #endif
228