Merge tag 'pm-5.3-rc1-2' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael...
[linux-block.git] / drivers / staging / wlan-ng / p80211metastruct.h
CommitLineData
3fb28ae7 1/* SPDX-License-Identifier: (GPL-2.0 OR MPL-1.1) */
ca2c4bee 2/* --------------------------------------------------------------------
21f4bb87
TC
3 *
4 * Copyright (C) 1999 AbsoluteValue Systems, Inc. All Rights Reserved.
5 * --------------------------------------------------------------------
6 *
7 * linux-wlan
8 *
9 * The contents of this file are subject to the Mozilla Public
10 * License Version 1.1 (the "License"); you may not use this file
11 * except in compliance with the License. You may obtain a copy of
12 * the License at http://www.mozilla.org/MPL/
13 *
14 * Software distributed under the License is distributed on an "AS
15 * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
16 * implied. See the License for the specific language governing
17 * rights and limitations under the License.
18 *
19 * Alternatively, the contents of this file may be used under the
20 * terms of the GNU Public License version 2 (the "GPL"), in which
21 * case the provisions of the GPL are applicable instead of the
22 * above. If you wish to allow the use of your version of this file
23 * only under the terms of the GPL and not to allow others to use
24 * your version of this file under the MPL, indicate your decision
25 * by deleting the provisions above and replace them with the notice
26 * and other provisions required by the GPL. If you do not delete
27 * the provisions above, a recipient may use your version of this
28 * file under either the MPL or the GPL.
29 *
30 * --------------------------------------------------------------------
31 *
32 * Inquiries regarding the linux-wlan Open Source project can be
33 * made directly to:
34 *
35 * AbsoluteValue Systems Inc.
36 * info@linux-wlan.com
37 * http://www.linux-wlan.com
38 *
39 * --------------------------------------------------------------------
40 *
41 * Portions of the development of this software were funded by
42 * Intersil Corporation as part of PRISM(R) chipset product development.
43 *
44 * --------------------------------------------------------------------
45 */
00b3ed16
GKH
46
47#ifndef _P80211MKMETASTRUCT_H
48#define _P80211MKMETASTRUCT_H
49
b6bb56e6 50struct p80211msg_dot11req_mibget {
ea75ad7b
MM
51 u32 msgcode;
52 u32 msglen;
53 u8 devname[WLAN_DEVNAMELEN_MAX];
37e48668 54 struct p80211item_unk392 mibattribute;
b26b2325 55 struct p80211item_uint32 resultcode;
7d3864d1 56} __packed;
00b3ed16 57
b6bb56e6 58struct p80211msg_dot11req_mibset {
ea75ad7b
MM
59 u32 msgcode;
60 u32 msglen;
61 u8 devname[WLAN_DEVNAMELEN_MAX];
37e48668 62 struct p80211item_unk392 mibattribute;
b26b2325 63 struct p80211item_uint32 resultcode;
7d3864d1 64} __packed;
00b3ed16 65
b6bb56e6 66struct p80211msg_dot11req_scan {
ea75ad7b
MM
67 u32 msgcode;
68 u32 msglen;
69 u8 devname[WLAN_DEVNAMELEN_MAX];
b26b2325 70 struct p80211item_uint32 bsstype;
34aae059 71 struct p80211item_pstr6 bssid;
ea75ad7b 72 u8 pad_0C[1];
6a50b5af 73 struct p80211item_pstr32 ssid;
ea75ad7b 74 u8 pad_1D[3];
b26b2325
SP
75 struct p80211item_uint32 scantype;
76 struct p80211item_uint32 probedelay;
f055b211 77 struct p80211item_pstr14 channellist;
ea75ad7b 78 u8 pad_2C[1];
b26b2325
SP
79 struct p80211item_uint32 minchanneltime;
80 struct p80211item_uint32 maxchanneltime;
81 struct p80211item_uint32 resultcode;
82 struct p80211item_uint32 numbss;
83 struct p80211item_uint32 append;
7d3864d1 84} __packed;
00b3ed16 85
b6bb56e6 86struct p80211msg_dot11req_scan_results {
ea75ad7b
MM
87 u32 msgcode;
88 u32 msglen;
89 u8 devname[WLAN_DEVNAMELEN_MAX];
b26b2325
SP
90 struct p80211item_uint32 bssindex;
91 struct p80211item_uint32 resultcode;
92 struct p80211item_uint32 signal;
93 struct p80211item_uint32 noise;
34aae059 94 struct p80211item_pstr6 bssid;
ea75ad7b 95 u8 pad_3C[1];
6a50b5af 96 struct p80211item_pstr32 ssid;
ea75ad7b 97 u8 pad_4D[3];
b26b2325
SP
98 struct p80211item_uint32 bsstype;
99 struct p80211item_uint32 beaconperiod;
100 struct p80211item_uint32 dtimperiod;
101 struct p80211item_uint32 timestamp;
102 struct p80211item_uint32 localtime;
103 struct p80211item_uint32 fhdwelltime;
104 struct p80211item_uint32 fhhopset;
105 struct p80211item_uint32 fhhoppattern;
106 struct p80211item_uint32 fhhopindex;
107 struct p80211item_uint32 dschannel;
108 struct p80211item_uint32 cfpcount;
109 struct p80211item_uint32 cfpperiod;
110 struct p80211item_uint32 cfpmaxduration;
111 struct p80211item_uint32 cfpdurremaining;
112 struct p80211item_uint32 ibssatimwindow;
113 struct p80211item_uint32 cfpollable;
114 struct p80211item_uint32 cfpollreq;
115 struct p80211item_uint32 privacy;
116 struct p80211item_uint32 capinfo;
117 struct p80211item_uint32 basicrate1;
118 struct p80211item_uint32 basicrate2;
119 struct p80211item_uint32 basicrate3;
120 struct p80211item_uint32 basicrate4;
121 struct p80211item_uint32 basicrate5;
122 struct p80211item_uint32 basicrate6;
123 struct p80211item_uint32 basicrate7;
124 struct p80211item_uint32 basicrate8;
125 struct p80211item_uint32 supprate1;
126 struct p80211item_uint32 supprate2;
127 struct p80211item_uint32 supprate3;
128 struct p80211item_uint32 supprate4;
129 struct p80211item_uint32 supprate5;
130 struct p80211item_uint32 supprate6;
131 struct p80211item_uint32 supprate7;
132 struct p80211item_uint32 supprate8;
7d3864d1 133} __packed;
00b3ed16 134
b6bb56e6 135struct p80211msg_dot11req_start {
ea75ad7b
MM
136 u32 msgcode;
137 u32 msglen;
138 u8 devname[WLAN_DEVNAMELEN_MAX];
6a50b5af 139 struct p80211item_pstr32 ssid;
ea75ad7b 140 u8 pad_12D[3];
b26b2325
SP
141 struct p80211item_uint32 bsstype;
142 struct p80211item_uint32 beaconperiod;
143 struct p80211item_uint32 dtimperiod;
144 struct p80211item_uint32 cfpperiod;
145 struct p80211item_uint32 cfpmaxduration;
146 struct p80211item_uint32 fhdwelltime;
147 struct p80211item_uint32 fhhopset;
148 struct p80211item_uint32 fhhoppattern;
149 struct p80211item_uint32 dschannel;
150 struct p80211item_uint32 ibssatimwindow;
151 struct p80211item_uint32 probedelay;
152 struct p80211item_uint32 cfpollable;
153 struct p80211item_uint32 cfpollreq;
154 struct p80211item_uint32 basicrate1;
155 struct p80211item_uint32 basicrate2;
156 struct p80211item_uint32 basicrate3;
157 struct p80211item_uint32 basicrate4;
158 struct p80211item_uint32 basicrate5;
159 struct p80211item_uint32 basicrate6;
160 struct p80211item_uint32 basicrate7;
161 struct p80211item_uint32 basicrate8;
162 struct p80211item_uint32 operationalrate1;
163 struct p80211item_uint32 operationalrate2;
164 struct p80211item_uint32 operationalrate3;
165 struct p80211item_uint32 operationalrate4;
166 struct p80211item_uint32 operationalrate5;
167 struct p80211item_uint32 operationalrate6;
168 struct p80211item_uint32 operationalrate7;
169 struct p80211item_uint32 operationalrate8;
170 struct p80211item_uint32 resultcode;
7d3864d1 171} __packed;
00b3ed16 172
b6bb56e6 173struct p80211msg_lnxreq_ifstate {
ea75ad7b
MM
174 u32 msgcode;
175 u32 msglen;
176 u8 devname[WLAN_DEVNAMELEN_MAX];
b26b2325
SP
177 struct p80211item_uint32 ifstate;
178 struct p80211item_uint32 resultcode;
7d3864d1 179} __packed;
00b3ed16 180
b6bb56e6 181struct p80211msg_lnxreq_wlansniff {
ea75ad7b
MM
182 u32 msgcode;
183 u32 msglen;
184 u8 devname[WLAN_DEVNAMELEN_MAX];
b26b2325
SP
185 struct p80211item_uint32 enable;
186 struct p80211item_uint32 channel;
187 struct p80211item_uint32 prismheader;
188 struct p80211item_uint32 wlanheader;
189 struct p80211item_uint32 keepwepflags;
190 struct p80211item_uint32 stripfcs;
191 struct p80211item_uint32 packet_trunc;
192 struct p80211item_uint32 resultcode;
7d3864d1 193} __packed;
00b3ed16 194
b6bb56e6 195struct p80211msg_lnxreq_hostwep {
ea75ad7b
MM
196 u32 msgcode;
197 u32 msglen;
198 u8 devname[WLAN_DEVNAMELEN_MAX];
b26b2325
SP
199 struct p80211item_uint32 resultcode;
200 struct p80211item_uint32 decrypt;
201 struct p80211item_uint32 encrypt;
7d3864d1 202} __packed;
00b3ed16 203
b6bb56e6 204struct p80211msg_lnxreq_commsquality {
ea75ad7b
MM
205 u32 msgcode;
206 u32 msglen;
207 u8 devname[WLAN_DEVNAMELEN_MAX];
b26b2325
SP
208 struct p80211item_uint32 resultcode;
209 struct p80211item_uint32 dbm;
210 struct p80211item_uint32 link;
211 struct p80211item_uint32 level;
212 struct p80211item_uint32 noise;
213 struct p80211item_uint32 txrate;
7d3864d1 214} __packed;
00b3ed16 215
b6bb56e6 216struct p80211msg_lnxreq_autojoin {
ea75ad7b
MM
217 u32 msgcode;
218 u32 msglen;
219 u8 devname[WLAN_DEVNAMELEN_MAX];
6a50b5af 220 struct p80211item_pstr32 ssid;
ea75ad7b 221 u8 pad_19D[3];
b26b2325
SP
222 struct p80211item_uint32 authtype;
223 struct p80211item_uint32 resultcode;
7d3864d1 224} __packed;
00b3ed16 225
b6bb56e6 226struct p80211msg_p2req_readpda {
ea75ad7b
MM
227 u32 msgcode;
228 u32 msglen;
229 u8 devname[WLAN_DEVNAMELEN_MAX];
1ad26f70 230 struct p80211item_unk1024 pda;
b26b2325 231 struct p80211item_uint32 resultcode;
7d3864d1 232} __packed;
00b3ed16 233
b6bb56e6 234struct p80211msg_p2req_ramdl_state {
ea75ad7b
MM
235 u32 msgcode;
236 u32 msglen;
237 u8 devname[WLAN_DEVNAMELEN_MAX];
b26b2325
SP
238 struct p80211item_uint32 enable;
239 struct p80211item_uint32 exeaddr;
240 struct p80211item_uint32 resultcode;
7d3864d1 241} __packed;
00b3ed16 242
b6bb56e6 243struct p80211msg_p2req_ramdl_write {
ea75ad7b
MM
244 u32 msgcode;
245 u32 msglen;
246 u8 devname[WLAN_DEVNAMELEN_MAX];
b26b2325
SP
247 struct p80211item_uint32 addr;
248 struct p80211item_uint32 len;
f8b8f64f 249 struct p80211item_unk4096 data;
b26b2325 250 struct p80211item_uint32 resultcode;
7d3864d1 251} __packed;
00b3ed16 252
b6bb56e6 253struct p80211msg_p2req_flashdl_state {
ea75ad7b
MM
254 u32 msgcode;
255 u32 msglen;
256 u8 devname[WLAN_DEVNAMELEN_MAX];
b26b2325
SP
257 struct p80211item_uint32 enable;
258 struct p80211item_uint32 resultcode;
7d3864d1 259} __packed;
00b3ed16 260
b6bb56e6 261struct p80211msg_p2req_flashdl_write {
ea75ad7b
MM
262 u32 msgcode;
263 u32 msglen;
264 u8 devname[WLAN_DEVNAMELEN_MAX];
b26b2325
SP
265 struct p80211item_uint32 addr;
266 struct p80211item_uint32 len;
f8b8f64f 267 struct p80211item_unk4096 data;
b26b2325 268 struct p80211item_uint32 resultcode;
7d3864d1 269} __packed;
00b3ed16 270
00b3ed16 271#endif