p80211metastruct.h 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271
  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. * 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. */
  46. #ifndef _P80211MKMETASTRUCT_H
  47. #define _P80211MKMETASTRUCT_H
  48. struct p80211msg_dot11req_mibget {
  49. u32 msgcode;
  50. u32 msglen;
  51. u8 devname[WLAN_DEVNAMELEN_MAX];
  52. struct p80211item_unk392 mibattribute;
  53. struct p80211item_uint32 resultcode;
  54. } __packed;
  55. struct p80211msg_dot11req_mibset {
  56. u32 msgcode;
  57. u32 msglen;
  58. u8 devname[WLAN_DEVNAMELEN_MAX];
  59. struct p80211item_unk392 mibattribute;
  60. struct p80211item_uint32 resultcode;
  61. } __packed;
  62. struct p80211msg_dot11req_scan {
  63. u32 msgcode;
  64. u32 msglen;
  65. u8 devname[WLAN_DEVNAMELEN_MAX];
  66. struct p80211item_uint32 bsstype;
  67. struct p80211item_pstr6 bssid;
  68. u8 pad_0C[1];
  69. struct p80211item_pstr32 ssid;
  70. u8 pad_1D[3];
  71. struct p80211item_uint32 scantype;
  72. struct p80211item_uint32 probedelay;
  73. struct p80211item_pstr14 channellist;
  74. u8 pad_2C[1];
  75. struct p80211item_uint32 minchanneltime;
  76. struct p80211item_uint32 maxchanneltime;
  77. struct p80211item_uint32 resultcode;
  78. struct p80211item_uint32 numbss;
  79. struct p80211item_uint32 append;
  80. } __packed;
  81. struct p80211msg_dot11req_scan_results {
  82. u32 msgcode;
  83. u32 msglen;
  84. u8 devname[WLAN_DEVNAMELEN_MAX];
  85. struct p80211item_uint32 bssindex;
  86. struct p80211item_uint32 resultcode;
  87. struct p80211item_uint32 signal;
  88. struct p80211item_uint32 noise;
  89. struct p80211item_pstr6 bssid;
  90. u8 pad_3C[1];
  91. struct p80211item_pstr32 ssid;
  92. u8 pad_4D[3];
  93. struct p80211item_uint32 bsstype;
  94. struct p80211item_uint32 beaconperiod;
  95. struct p80211item_uint32 dtimperiod;
  96. struct p80211item_uint32 timestamp;
  97. struct p80211item_uint32 localtime;
  98. struct p80211item_uint32 fhdwelltime;
  99. struct p80211item_uint32 fhhopset;
  100. struct p80211item_uint32 fhhoppattern;
  101. struct p80211item_uint32 fhhopindex;
  102. struct p80211item_uint32 dschannel;
  103. struct p80211item_uint32 cfpcount;
  104. struct p80211item_uint32 cfpperiod;
  105. struct p80211item_uint32 cfpmaxduration;
  106. struct p80211item_uint32 cfpdurremaining;
  107. struct p80211item_uint32 ibssatimwindow;
  108. struct p80211item_uint32 cfpollable;
  109. struct p80211item_uint32 cfpollreq;
  110. struct p80211item_uint32 privacy;
  111. struct p80211item_uint32 capinfo;
  112. struct p80211item_uint32 basicrate1;
  113. struct p80211item_uint32 basicrate2;
  114. struct p80211item_uint32 basicrate3;
  115. struct p80211item_uint32 basicrate4;
  116. struct p80211item_uint32 basicrate5;
  117. struct p80211item_uint32 basicrate6;
  118. struct p80211item_uint32 basicrate7;
  119. struct p80211item_uint32 basicrate8;
  120. struct p80211item_uint32 supprate1;
  121. struct p80211item_uint32 supprate2;
  122. struct p80211item_uint32 supprate3;
  123. struct p80211item_uint32 supprate4;
  124. struct p80211item_uint32 supprate5;
  125. struct p80211item_uint32 supprate6;
  126. struct p80211item_uint32 supprate7;
  127. struct p80211item_uint32 supprate8;
  128. } __packed;
  129. struct p80211msg_dot11req_start {
  130. u32 msgcode;
  131. u32 msglen;
  132. u8 devname[WLAN_DEVNAMELEN_MAX];
  133. struct p80211item_pstr32 ssid;
  134. u8 pad_12D[3];
  135. struct p80211item_uint32 bsstype;
  136. struct p80211item_uint32 beaconperiod;
  137. struct p80211item_uint32 dtimperiod;
  138. struct p80211item_uint32 cfpperiod;
  139. struct p80211item_uint32 cfpmaxduration;
  140. struct p80211item_uint32 fhdwelltime;
  141. struct p80211item_uint32 fhhopset;
  142. struct p80211item_uint32 fhhoppattern;
  143. struct p80211item_uint32 dschannel;
  144. struct p80211item_uint32 ibssatimwindow;
  145. struct p80211item_uint32 probedelay;
  146. struct p80211item_uint32 cfpollable;
  147. struct p80211item_uint32 cfpollreq;
  148. struct p80211item_uint32 basicrate1;
  149. struct p80211item_uint32 basicrate2;
  150. struct p80211item_uint32 basicrate3;
  151. struct p80211item_uint32 basicrate4;
  152. struct p80211item_uint32 basicrate5;
  153. struct p80211item_uint32 basicrate6;
  154. struct p80211item_uint32 basicrate7;
  155. struct p80211item_uint32 basicrate8;
  156. struct p80211item_uint32 operationalrate1;
  157. struct p80211item_uint32 operationalrate2;
  158. struct p80211item_uint32 operationalrate3;
  159. struct p80211item_uint32 operationalrate4;
  160. struct p80211item_uint32 operationalrate5;
  161. struct p80211item_uint32 operationalrate6;
  162. struct p80211item_uint32 operationalrate7;
  163. struct p80211item_uint32 operationalrate8;
  164. struct p80211item_uint32 resultcode;
  165. } __packed;
  166. struct p80211msg_lnxreq_ifstate {
  167. u32 msgcode;
  168. u32 msglen;
  169. u8 devname[WLAN_DEVNAMELEN_MAX];
  170. struct p80211item_uint32 ifstate;
  171. struct p80211item_uint32 resultcode;
  172. } __packed;
  173. struct p80211msg_lnxreq_wlansniff {
  174. u32 msgcode;
  175. u32 msglen;
  176. u8 devname[WLAN_DEVNAMELEN_MAX];
  177. struct p80211item_uint32 enable;
  178. struct p80211item_uint32 channel;
  179. struct p80211item_uint32 prismheader;
  180. struct p80211item_uint32 wlanheader;
  181. struct p80211item_uint32 keepwepflags;
  182. struct p80211item_uint32 stripfcs;
  183. struct p80211item_uint32 packet_trunc;
  184. struct p80211item_uint32 resultcode;
  185. } __packed;
  186. struct p80211msg_lnxreq_hostwep {
  187. u32 msgcode;
  188. u32 msglen;
  189. u8 devname[WLAN_DEVNAMELEN_MAX];
  190. struct p80211item_uint32 resultcode;
  191. struct p80211item_uint32 decrypt;
  192. struct p80211item_uint32 encrypt;
  193. } __packed;
  194. struct p80211msg_lnxreq_commsquality {
  195. u32 msgcode;
  196. u32 msglen;
  197. u8 devname[WLAN_DEVNAMELEN_MAX];
  198. struct p80211item_uint32 resultcode;
  199. struct p80211item_uint32 dbm;
  200. struct p80211item_uint32 link;
  201. struct p80211item_uint32 level;
  202. struct p80211item_uint32 noise;
  203. struct p80211item_uint32 txrate;
  204. } __packed;
  205. struct p80211msg_lnxreq_autojoin {
  206. u32 msgcode;
  207. u32 msglen;
  208. u8 devname[WLAN_DEVNAMELEN_MAX];
  209. struct p80211item_pstr32 ssid;
  210. u8 pad_19D[3];
  211. struct p80211item_uint32 authtype;
  212. struct p80211item_uint32 resultcode;
  213. } __packed;
  214. struct p80211msg_p2req_readpda {
  215. u32 msgcode;
  216. u32 msglen;
  217. u8 devname[WLAN_DEVNAMELEN_MAX];
  218. struct p80211item_unk1024 pda;
  219. struct p80211item_uint32 resultcode;
  220. } __packed;
  221. struct p80211msg_p2req_ramdl_state {
  222. u32 msgcode;
  223. u32 msglen;
  224. u8 devname[WLAN_DEVNAMELEN_MAX];
  225. struct p80211item_uint32 enable;
  226. struct p80211item_uint32 exeaddr;
  227. struct p80211item_uint32 resultcode;
  228. } __packed;
  229. struct p80211msg_p2req_ramdl_write {
  230. u32 msgcode;
  231. u32 msglen;
  232. u8 devname[WLAN_DEVNAMELEN_MAX];
  233. struct p80211item_uint32 addr;
  234. struct p80211item_uint32 len;
  235. struct p80211item_unk4096 data;
  236. struct p80211item_uint32 resultcode;
  237. } __packed;
  238. struct p80211msg_p2req_flashdl_state {
  239. u32 msgcode;
  240. u32 msglen;
  241. u8 devname[WLAN_DEVNAMELEN_MAX];
  242. struct p80211item_uint32 enable;
  243. struct p80211item_uint32 resultcode;
  244. } __packed;
  245. struct p80211msg_p2req_flashdl_write {
  246. u32 msgcode;
  247. u32 msglen;
  248. u8 devname[WLAN_DEVNAMELEN_MAX];
  249. struct p80211item_uint32 addr;
  250. struct p80211item_uint32 len;
  251. struct p80211item_unk4096 data;
  252. struct p80211item_uint32 resultcode;
  253. } __packed;
  254. #endif