Randy Dunlap | 8973a6e | 2011-04-26 15:25:29 -0700 | [diff] [blame] | 1 | /* |
2 | * This header file contains definition for global types | ||||
3 | */ | ||||
Holger Schurig | 1007832 | 2007-11-15 18:05:47 -0500 | [diff] [blame] | 4 | #ifndef _LBS_TYPES_H_ |
5 | #define _LBS_TYPES_H_ | ||||
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 6 | |
7 | #include <linux/if_ether.h> | ||||
Holger Schurig | 243e84e | 2009-10-22 15:30:47 +0200 | [diff] [blame] | 8 | #include <linux/ieee80211.h> |
David Woodhouse | 981f187 | 2007-05-25 23:36:54 -0400 | [diff] [blame] | 9 | #include <asm/byteorder.h> |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 10 | |
Dan Williams | 75b6a61 | 2009-05-22 20:03:09 -0400 | [diff] [blame] | 11 | struct ieee_ie_header { |
12 | u8 id; | ||||
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 13 | u8 len; |
Eric Dumazet | ba2d358 | 2010-06-02 18:10:09 +0000 | [diff] [blame] | 14 | } __packed; |
Dan Williams | 75b6a61 | 2009-05-22 20:03:09 -0400 | [diff] [blame] | 15 | |
16 | struct ieee_ie_cf_param_set { | ||||
17 | struct ieee_ie_header header; | ||||
18 | |||||
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 19 | u8 cfpcnt; |
20 | u8 cfpperiod; | ||||
David Woodhouse | 981f187 | 2007-05-25 23:36:54 -0400 | [diff] [blame] | 21 | __le16 cfpmaxduration; |
22 | __le16 cfpdurationremaining; | ||||
Eric Dumazet | ba2d358 | 2010-06-02 18:10:09 +0000 | [diff] [blame] | 23 | } __packed; |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 24 | |
25 | |||||
Dan Williams | 5fd164e | 2009-05-22 20:01:21 -0400 | [diff] [blame] | 26 | struct ieee_ie_ibss_param_set { |
Dan Williams | 75b6a61 | 2009-05-22 20:03:09 -0400 | [diff] [blame] | 27 | struct ieee_ie_header header; |
28 | |||||
David Woodhouse | 981f187 | 2007-05-25 23:36:54 -0400 | [diff] [blame] | 29 | __le16 atimwindow; |
Eric Dumazet | ba2d358 | 2010-06-02 18:10:09 +0000 | [diff] [blame] | 30 | } __packed; |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 31 | |
Dan Williams | 5fd164e | 2009-05-22 20:01:21 -0400 | [diff] [blame] | 32 | union ieee_ss_param_set { |
33 | struct ieee_ie_cf_param_set cf; | ||||
34 | struct ieee_ie_ibss_param_set ibss; | ||||
Eric Dumazet | ba2d358 | 2010-06-02 18:10:09 +0000 | [diff] [blame] | 35 | } __packed; |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 36 | |
Dan Williams | 5fd164e | 2009-05-22 20:01:21 -0400 | [diff] [blame] | 37 | struct ieee_ie_fh_param_set { |
Dan Williams | 75b6a61 | 2009-05-22 20:03:09 -0400 | [diff] [blame] | 38 | struct ieee_ie_header header; |
39 | |||||
David Woodhouse | 981f187 | 2007-05-25 23:36:54 -0400 | [diff] [blame] | 40 | __le16 dwelltime; |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 41 | u8 hopset; |
42 | u8 hoppattern; | ||||
43 | u8 hopindex; | ||||
Eric Dumazet | ba2d358 | 2010-06-02 18:10:09 +0000 | [diff] [blame] | 44 | } __packed; |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 45 | |
Dan Williams | 5fd164e | 2009-05-22 20:01:21 -0400 | [diff] [blame] | 46 | struct ieee_ie_ds_param_set { |
Dan Williams | 75b6a61 | 2009-05-22 20:03:09 -0400 | [diff] [blame] | 47 | struct ieee_ie_header header; |
48 | |||||
Dan Williams | 5fd164e | 2009-05-22 20:01:21 -0400 | [diff] [blame] | 49 | u8 channel; |
Eric Dumazet | ba2d358 | 2010-06-02 18:10:09 +0000 | [diff] [blame] | 50 | } __packed; |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 51 | |
Dan Williams | 5fd164e | 2009-05-22 20:01:21 -0400 | [diff] [blame] | 52 | union ieee_phy_param_set { |
53 | struct ieee_ie_fh_param_set fh; | ||||
54 | struct ieee_ie_ds_param_set ds; | ||||
Eric Dumazet | ba2d358 | 2010-06-02 18:10:09 +0000 | [diff] [blame] | 55 | } __packed; |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 56 | |
Randy Dunlap | 8973a6e | 2011-04-26 15:25:29 -0700 | [diff] [blame] | 57 | /* TLV type ID definition */ |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 58 | #define PROPRIETARY_TLV_BASE_ID 0x0100 |
59 | |||||
60 | /* Terminating TLV type */ | ||||
61 | #define MRVL_TERMINATE_TLV_ID 0xffff | ||||
62 | |||||
63 | #define TLV_TYPE_SSID 0x0000 | ||||
64 | #define TLV_TYPE_RATES 0x0001 | ||||
65 | #define TLV_TYPE_PHY_FH 0x0002 | ||||
66 | #define TLV_TYPE_PHY_DS 0x0003 | ||||
67 | #define TLV_TYPE_CF 0x0004 | ||||
68 | #define TLV_TYPE_IBSS 0x0006 | ||||
69 | |||||
70 | #define TLV_TYPE_DOMAIN 0x0007 | ||||
71 | |||||
72 | #define TLV_TYPE_POWER_CAPABILITY 0x0021 | ||||
73 | |||||
74 | #define TLV_TYPE_KEY_MATERIAL (PROPRIETARY_TLV_BASE_ID + 0) | ||||
75 | #define TLV_TYPE_CHANLIST (PROPRIETARY_TLV_BASE_ID + 1) | ||||
76 | #define TLV_TYPE_NUMPROBES (PROPRIETARY_TLV_BASE_ID + 2) | ||||
77 | #define TLV_TYPE_RSSI_LOW (PROPRIETARY_TLV_BASE_ID + 4) | ||||
78 | #define TLV_TYPE_SNR_LOW (PROPRIETARY_TLV_BASE_ID + 5) | ||||
79 | #define TLV_TYPE_FAILCOUNT (PROPRIETARY_TLV_BASE_ID + 6) | ||||
80 | #define TLV_TYPE_BCNMISS (PROPRIETARY_TLV_BASE_ID + 7) | ||||
81 | #define TLV_TYPE_LED_GPIO (PROPRIETARY_TLV_BASE_ID + 8) | ||||
82 | #define TLV_TYPE_LEDBEHAVIOR (PROPRIETARY_TLV_BASE_ID + 9) | ||||
83 | #define TLV_TYPE_PASSTHROUGH (PROPRIETARY_TLV_BASE_ID + 10) | ||||
84 | #define TLV_TYPE_REASSOCAP (PROPRIETARY_TLV_BASE_ID + 11) | ||||
85 | #define TLV_TYPE_POWER_TBL_2_4GHZ (PROPRIETARY_TLV_BASE_ID + 12) | ||||
86 | #define TLV_TYPE_POWER_TBL_5GHZ (PROPRIETARY_TLV_BASE_ID + 13) | ||||
87 | #define TLV_TYPE_BCASTPROBE (PROPRIETARY_TLV_BASE_ID + 14) | ||||
88 | #define TLV_TYPE_NUMSSID_PROBE (PROPRIETARY_TLV_BASE_ID + 15) | ||||
89 | #define TLV_TYPE_WMMQSTATUS (PROPRIETARY_TLV_BASE_ID + 16) | ||||
90 | #define TLV_TYPE_CRYPTO_DATA (PROPRIETARY_TLV_BASE_ID + 17) | ||||
91 | #define TLV_TYPE_WILDCARDSSID (PROPRIETARY_TLV_BASE_ID + 18) | ||||
92 | #define TLV_TYPE_TSFTIMESTAMP (PROPRIETARY_TLV_BASE_ID + 19) | ||||
93 | #define TLV_TYPE_RSSI_HIGH (PROPRIETARY_TLV_BASE_ID + 22) | ||||
94 | #define TLV_TYPE_SNR_HIGH (PROPRIETARY_TLV_BASE_ID + 23) | ||||
Dan Williams | be0d76e | 2009-05-22 20:05:25 -0400 | [diff] [blame] | 95 | #define TLV_TYPE_AUTH_TYPE (PROPRIETARY_TLV_BASE_ID + 31) |
Bing Zhao | 684d6b3 | 2009-03-25 09:51:16 -0700 | [diff] [blame] | 96 | #define TLV_TYPE_MESH_ID (PROPRIETARY_TLV_BASE_ID + 37) |
97 | #define TLV_TYPE_OLD_MESH_ID (PROPRIETARY_TLV_BASE_ID + 291) | ||||
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 98 | |
Randy Dunlap | 8973a6e | 2011-04-26 15:25:29 -0700 | [diff] [blame] | 99 | /* TLV related data structures */ |
Dan Williams | 75b6a61 | 2009-05-22 20:03:09 -0400 | [diff] [blame] | 100 | struct mrvl_ie_header { |
David Woodhouse | 981f187 | 2007-05-25 23:36:54 -0400 | [diff] [blame] | 101 | __le16 type; |
102 | __le16 len; | ||||
Eric Dumazet | ba2d358 | 2010-06-02 18:10:09 +0000 | [diff] [blame] | 103 | } __packed; |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 104 | |
Dan Williams | 75b6a61 | 2009-05-22 20:03:09 -0400 | [diff] [blame] | 105 | struct mrvl_ie_data { |
106 | struct mrvl_ie_header header; | ||||
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 107 | u8 Data[1]; |
Eric Dumazet | ba2d358 | 2010-06-02 18:10:09 +0000 | [diff] [blame] | 108 | } __packed; |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 109 | |
Dan Williams | 75b6a61 | 2009-05-22 20:03:09 -0400 | [diff] [blame] | 110 | struct mrvl_ie_rates_param_set { |
111 | struct mrvl_ie_header header; | ||||
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 112 | u8 rates[1]; |
Eric Dumazet | ba2d358 | 2010-06-02 18:10:09 +0000 | [diff] [blame] | 113 | } __packed; |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 114 | |
Dan Williams | 75b6a61 | 2009-05-22 20:03:09 -0400 | [diff] [blame] | 115 | struct mrvl_ie_ssid_param_set { |
116 | struct mrvl_ie_header header; | ||||
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 117 | u8 ssid[1]; |
Eric Dumazet | ba2d358 | 2010-06-02 18:10:09 +0000 | [diff] [blame] | 118 | } __packed; |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 119 | |
Dan Williams | 75b6a61 | 2009-05-22 20:03:09 -0400 | [diff] [blame] | 120 | struct mrvl_ie_wildcard_ssid_param_set { |
121 | struct mrvl_ie_header header; | ||||
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 122 | u8 MaxSsidlength; |
123 | u8 ssid[1]; | ||||
Eric Dumazet | ba2d358 | 2010-06-02 18:10:09 +0000 | [diff] [blame] | 124 | } __packed; |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 125 | |
126 | struct chanscanmode { | ||||
David Woodhouse | 981f187 | 2007-05-25 23:36:54 -0400 | [diff] [blame] | 127 | #ifdef __BIG_ENDIAN_BITFIELD |
128 | u8 reserved_2_7:6; | ||||
129 | u8 disablechanfilt:1; | ||||
130 | u8 passivescan:1; | ||||
131 | #else | ||||
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 132 | u8 passivescan:1; |
133 | u8 disablechanfilt:1; | ||||
134 | u8 reserved_2_7:6; | ||||
David Woodhouse | 981f187 | 2007-05-25 23:36:54 -0400 | [diff] [blame] | 135 | #endif |
Eric Dumazet | ba2d358 | 2010-06-02 18:10:09 +0000 | [diff] [blame] | 136 | } __packed; |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 137 | |
138 | struct chanscanparamset { | ||||
139 | u8 radiotype; | ||||
140 | u8 channumber; | ||||
141 | struct chanscanmode chanscanmode; | ||||
David Woodhouse | 981f187 | 2007-05-25 23:36:54 -0400 | [diff] [blame] | 142 | __le16 minscantime; |
143 | __le16 maxscantime; | ||||
Eric Dumazet | ba2d358 | 2010-06-02 18:10:09 +0000 | [diff] [blame] | 144 | } __packed; |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 145 | |
Dan Williams | 75b6a61 | 2009-05-22 20:03:09 -0400 | [diff] [blame] | 146 | struct mrvl_ie_chanlist_param_set { |
147 | struct mrvl_ie_header header; | ||||
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 148 | struct chanscanparamset chanscanparam[1]; |
Eric Dumazet | ba2d358 | 2010-06-02 18:10:09 +0000 | [diff] [blame] | 149 | } __packed; |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 150 | |
Dan Williams | 75b6a61 | 2009-05-22 20:03:09 -0400 | [diff] [blame] | 151 | struct mrvl_ie_cf_param_set { |
152 | struct mrvl_ie_header header; | ||||
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 153 | u8 cfpcnt; |
154 | u8 cfpperiod; | ||||
David Woodhouse | 981f187 | 2007-05-25 23:36:54 -0400 | [diff] [blame] | 155 | __le16 cfpmaxduration; |
156 | __le16 cfpdurationremaining; | ||||
Eric Dumazet | ba2d358 | 2010-06-02 18:10:09 +0000 | [diff] [blame] | 157 | } __packed; |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 158 | |
Dan Williams | 75b6a61 | 2009-05-22 20:03:09 -0400 | [diff] [blame] | 159 | struct mrvl_ie_ds_param_set { |
160 | struct mrvl_ie_header header; | ||||
Dan Williams | 5fd164e | 2009-05-22 20:01:21 -0400 | [diff] [blame] | 161 | u8 channel; |
Eric Dumazet | ba2d358 | 2010-06-02 18:10:09 +0000 | [diff] [blame] | 162 | } __packed; |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 163 | |
Dan Williams | 75b6a61 | 2009-05-22 20:03:09 -0400 | [diff] [blame] | 164 | struct mrvl_ie_rsn_param_set { |
165 | struct mrvl_ie_header header; | ||||
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 166 | u8 rsnie[1]; |
Eric Dumazet | ba2d358 | 2010-06-02 18:10:09 +0000 | [diff] [blame] | 167 | } __packed; |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 168 | |
Dan Williams | 75b6a61 | 2009-05-22 20:03:09 -0400 | [diff] [blame] | 169 | struct mrvl_ie_tsf_timestamp { |
170 | struct mrvl_ie_header header; | ||||
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 171 | __le64 tsftable[1]; |
Eric Dumazet | ba2d358 | 2010-06-02 18:10:09 +0000 | [diff] [blame] | 172 | } __packed; |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 173 | |
Dan Williams | be0d76e | 2009-05-22 20:05:25 -0400 | [diff] [blame] | 174 | /* v9 and later firmware only */ |
175 | struct mrvl_ie_auth_type { | ||||
176 | struct mrvl_ie_header header; | ||||
177 | __le16 auth; | ||||
Eric Dumazet | ba2d358 | 2010-06-02 18:10:09 +0000 | [diff] [blame] | 178 | } __packed; |
Dan Williams | be0d76e | 2009-05-22 20:05:25 -0400 | [diff] [blame] | 179 | |
Randy Dunlap | 8973a6e | 2011-04-26 15:25:29 -0700 | [diff] [blame] | 180 | /* Local Power capability */ |
Dan Williams | 75b6a61 | 2009-05-22 20:03:09 -0400 | [diff] [blame] | 181 | struct mrvl_ie_power_capability { |
182 | struct mrvl_ie_header header; | ||||
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 183 | s8 minpower; |
184 | s8 maxpower; | ||||
Eric Dumazet | ba2d358 | 2010-06-02 18:10:09 +0000 | [diff] [blame] | 185 | } __packed; |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 186 | |
Holger Schurig | 3a18864 | 2007-11-26 10:07:14 +0100 | [diff] [blame] | 187 | /* used in CMD_802_11_SUBSCRIBE_EVENT for SNR, RSSI and Failure */ |
Dan Williams | 75b6a61 | 2009-05-22 20:03:09 -0400 | [diff] [blame] | 188 | struct mrvl_ie_thresholds { |
189 | struct mrvl_ie_header header; | ||||
Holger Schurig | 3a18864 | 2007-11-26 10:07:14 +0100 | [diff] [blame] | 190 | u8 value; |
191 | u8 freq; | ||||
Eric Dumazet | ba2d358 | 2010-06-02 18:10:09 +0000 | [diff] [blame] | 192 | } __packed; |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 193 | |
Dan Williams | 75b6a61 | 2009-05-22 20:03:09 -0400 | [diff] [blame] | 194 | struct mrvl_ie_beacons_missed { |
195 | struct mrvl_ie_header header; | ||||
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 196 | u8 beaconmissed; |
197 | u8 reserved; | ||||
Eric Dumazet | ba2d358 | 2010-06-02 18:10:09 +0000 | [diff] [blame] | 198 | } __packed; |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 199 | |
Dan Williams | 75b6a61 | 2009-05-22 20:03:09 -0400 | [diff] [blame] | 200 | struct mrvl_ie_num_probes { |
201 | struct mrvl_ie_header header; | ||||
David Woodhouse | 981f187 | 2007-05-25 23:36:54 -0400 | [diff] [blame] | 202 | __le16 numprobes; |
Eric Dumazet | ba2d358 | 2010-06-02 18:10:09 +0000 | [diff] [blame] | 203 | } __packed; |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 204 | |
Dan Williams | 75b6a61 | 2009-05-22 20:03:09 -0400 | [diff] [blame] | 205 | struct mrvl_ie_bcast_probe { |
206 | struct mrvl_ie_header header; | ||||
David Woodhouse | 981f187 | 2007-05-25 23:36:54 -0400 | [diff] [blame] | 207 | __le16 bcastprobe; |
Eric Dumazet | ba2d358 | 2010-06-02 18:10:09 +0000 | [diff] [blame] | 208 | } __packed; |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 209 | |
Dan Williams | 75b6a61 | 2009-05-22 20:03:09 -0400 | [diff] [blame] | 210 | struct mrvl_ie_num_ssid_probe { |
211 | struct mrvl_ie_header header; | ||||
David Woodhouse | 981f187 | 2007-05-25 23:36:54 -0400 | [diff] [blame] | 212 | __le16 numssidprobe; |
Eric Dumazet | ba2d358 | 2010-06-02 18:10:09 +0000 | [diff] [blame] | 213 | } __packed; |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 214 | |
215 | struct led_pin { | ||||
216 | u8 led; | ||||
217 | u8 pin; | ||||
Eric Dumazet | ba2d358 | 2010-06-02 18:10:09 +0000 | [diff] [blame] | 218 | } __packed; |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 219 | |
Dan Williams | 75b6a61 | 2009-05-22 20:03:09 -0400 | [diff] [blame] | 220 | struct mrvl_ie_ledgpio { |
221 | struct mrvl_ie_header header; | ||||
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 222 | struct led_pin ledpin[1]; |
Eric Dumazet | ba2d358 | 2010-06-02 18:10:09 +0000 | [diff] [blame] | 223 | } __packed; |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 224 | |
David Woodhouse | c5562e9 | 2008-03-03 12:16:42 +0100 | [diff] [blame] | 225 | struct led_bhv { |
226 | uint8_t firmwarestate; | ||||
227 | uint8_t led; | ||||
228 | uint8_t ledstate; | ||||
229 | uint8_t ledarg; | ||||
Eric Dumazet | ba2d358 | 2010-06-02 18:10:09 +0000 | [diff] [blame] | 230 | } __packed; |
David Woodhouse | c5562e9 | 2008-03-03 12:16:42 +0100 | [diff] [blame] | 231 | |
232 | |||||
Dan Williams | 75b6a61 | 2009-05-22 20:03:09 -0400 | [diff] [blame] | 233 | struct mrvl_ie_ledbhv { |
234 | struct mrvl_ie_header header; | ||||
David Woodhouse | c5562e9 | 2008-03-03 12:16:42 +0100 | [diff] [blame] | 235 | struct led_bhv ledbhv[1]; |
Eric Dumazet | ba2d358 | 2010-06-02 18:10:09 +0000 | [diff] [blame] | 236 | } __packed; |
David Woodhouse | c5562e9 | 2008-03-03 12:16:42 +0100 | [diff] [blame] | 237 | |
Randy Dunlap | 8973a6e | 2011-04-26 15:25:29 -0700 | [diff] [blame] | 238 | /* |
239 | * Meant to be packed as the value member of a struct ieee80211_info_element. | ||||
Javier Cardona | edaea5c | 2008-05-17 00:55:10 -0700 | [diff] [blame] | 240 | * Note that the len member of the ieee80211_info_element varies depending on |
Randy Dunlap | 8973a6e | 2011-04-26 15:25:29 -0700 | [diff] [blame] | 241 | * the mesh_id_len |
242 | */ | ||||
Javier Cardona | edaea5c | 2008-05-17 00:55:10 -0700 | [diff] [blame] | 243 | struct mrvl_meshie_val { |
Johannes Berg | 2c706002 | 2008-10-30 22:09:54 +0100 | [diff] [blame] | 244 | uint8_t oui[3]; |
Javier Cardona | edaea5c | 2008-05-17 00:55:10 -0700 | [diff] [blame] | 245 | uint8_t type; |
246 | uint8_t subtype; | ||||
247 | uint8_t version; | ||||
248 | uint8_t active_protocol_id; | ||||
249 | uint8_t active_metric_id; | ||||
250 | uint8_t mesh_capability; | ||||
251 | uint8_t mesh_id_len; | ||||
Holger Schurig | 243e84e | 2009-10-22 15:30:47 +0200 | [diff] [blame] | 252 | uint8_t mesh_id[IEEE80211_MAX_SSID_LEN]; |
Eric Dumazet | ba2d358 | 2010-06-02 18:10:09 +0000 | [diff] [blame] | 253 | } __packed; |
Javier Cardona | edaea5c | 2008-05-17 00:55:10 -0700 | [diff] [blame] | 254 | |
255 | struct mrvl_meshie { | ||||
Johannes Berg | 2c706002 | 2008-10-30 22:09:54 +0100 | [diff] [blame] | 256 | u8 id, len; |
Javier Cardona | edaea5c | 2008-05-17 00:55:10 -0700 | [diff] [blame] | 257 | struct mrvl_meshie_val val; |
Eric Dumazet | ba2d358 | 2010-06-02 18:10:09 +0000 | [diff] [blame] | 258 | } __packed; |
Javier Cardona | edaea5c | 2008-05-17 00:55:10 -0700 | [diff] [blame] | 259 | |
260 | struct mrvl_mesh_defaults { | ||||
261 | __le32 bootflag; | ||||
262 | uint8_t boottime; | ||||
263 | uint8_t reserved; | ||||
264 | __le16 channel; | ||||
265 | struct mrvl_meshie meshie; | ||||
Eric Dumazet | ba2d358 | 2010-06-02 18:10:09 +0000 | [diff] [blame] | 266 | } __packed; |
Javier Cardona | edaea5c | 2008-05-17 00:55:10 -0700 | [diff] [blame] | 267 | |
Holger Schurig | 1007832 | 2007-11-15 18:05:47 -0500 | [diff] [blame] | 268 | #endif |