aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/hostap/hostap_wlan.h
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2007-12-21 03:30:16 -0500
committerDavid S. Miller <davem@davemloft.net>2008-01-28 18:09:05 -0500
commit8a9faf3cd08b91aca1502dbe18e3b5063fda2e87 (patch)
tree4588f25ca8cd11833252370c3b0c7566004de050 /drivers/net/wireless/hostap/hostap_wlan.h
parent3eb9b41f2474c53fe469fbe383955d5aae9e76e4 (diff)
hostap annotations
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/hostap/hostap_wlan.h')
-rw-r--r--drivers/net/wireless/hostap/hostap_wlan.h202
1 files changed, 101 insertions, 101 deletions
diff --git a/drivers/net/wireless/hostap/hostap_wlan.h b/drivers/net/wireless/hostap/hostap_wlan.h
index e6516a186d0e..15445bce2ac7 100644
--- a/drivers/net/wireless/hostap/hostap_wlan.h
+++ b/drivers/net/wireless/hostap/hostap_wlan.h
@@ -39,20 +39,20 @@ struct linux_wlan_ng_prism_hdr {
39} __attribute__ ((packed)); 39} __attribute__ ((packed));
40 40
41struct linux_wlan_ng_cap_hdr { 41struct linux_wlan_ng_cap_hdr {
42 u32 version; 42 __be32 version;
43 u32 length; 43 __be32 length;
44 u64 mactime; 44 __be64 mactime;
45 u64 hosttime; 45 __be64 hosttime;
46 u32 phytype; 46 __be32 phytype;
47 u32 channel; 47 __be32 channel;
48 u32 datarate; 48 __be32 datarate;
49 u32 antenna; 49 __be32 antenna;
50 u32 priority; 50 __be32 priority;
51 u32 ssi_type; 51 __be32 ssi_type;
52 s32 ssi_signal; 52 __be32 ssi_signal;
53 s32 ssi_noise; 53 __be32 ssi_noise;
54 u32 preamble; 54 __be32 preamble;
55 u32 encoding; 55 __be32 encoding;
56} __attribute__ ((packed)); 56} __attribute__ ((packed));
57 57
58#define LWNG_CAP_DID_BASE (4 | (1 << 6)) /* section 4, group 1 */ 58#define LWNG_CAP_DID_BASE (4 | (1 << 6)) /* section 4, group 1 */
@@ -60,28 +60,28 @@ struct linux_wlan_ng_cap_hdr {
60 60
61struct hfa384x_rx_frame { 61struct hfa384x_rx_frame {
62 /* HFA384X RX frame descriptor */ 62 /* HFA384X RX frame descriptor */
63 u16 status; /* HFA384X_RX_STATUS_ flags */ 63 __le16 status; /* HFA384X_RX_STATUS_ flags */
64 u32 time; /* timestamp, 1 microsecond resolution */ 64 __le32 time; /* timestamp, 1 microsecond resolution */
65 u8 silence; /* 27 .. 154; seems to be 0 */ 65 u8 silence; /* 27 .. 154; seems to be 0 */
66 u8 signal; /* 27 .. 154 */ 66 u8 signal; /* 27 .. 154 */
67 u8 rate; /* 10, 20, 55, or 110 */ 67 u8 rate; /* 10, 20, 55, or 110 */
68 u8 rxflow; 68 u8 rxflow;
69 u32 reserved; 69 __le32 reserved;
70 70
71 /* 802.11 */ 71 /* 802.11 */
72 u16 frame_control; 72 __le16 frame_control;
73 u16 duration_id; 73 __le16 duration_id;
74 u8 addr1[6]; 74 u8 addr1[6];
75 u8 addr2[6]; 75 u8 addr2[6];
76 u8 addr3[6]; 76 u8 addr3[6];
77 u16 seq_ctrl; 77 __le16 seq_ctrl;
78 u8 addr4[6]; 78 u8 addr4[6];
79 u16 data_len; 79 __le16 data_len;
80 80
81 /* 802.3 */ 81 /* 802.3 */
82 u8 dst_addr[6]; 82 u8 dst_addr[6];
83 u8 src_addr[6]; 83 u8 src_addr[6];
84 u16 len; 84 __be16 len;
85 85
86 /* followed by frame data; max 2304 bytes */ 86 /* followed by frame data; max 2304 bytes */
87} __attribute__ ((packed)); 87} __attribute__ ((packed));
@@ -89,28 +89,28 @@ struct hfa384x_rx_frame {
89 89
90struct hfa384x_tx_frame { 90struct hfa384x_tx_frame {
91 /* HFA384X TX frame descriptor */ 91 /* HFA384X TX frame descriptor */
92 u16 status; /* HFA384X_TX_STATUS_ flags */ 92 __le16 status; /* HFA384X_TX_STATUS_ flags */
93 u16 reserved1; 93 __le16 reserved1;
94 u16 reserved2; 94 __le16 reserved2;
95 u32 sw_support; 95 __le32 sw_support;
96 u8 retry_count; /* not yet implemented */ 96 u8 retry_count; /* not yet implemented */
97 u8 tx_rate; /* Host AP only; 0 = firmware, or 10, 20, 55, 110 */ 97 u8 tx_rate; /* Host AP only; 0 = firmware, or 10, 20, 55, 110 */
98 u16 tx_control; /* HFA384X_TX_CTRL_ flags */ 98 __le16 tx_control; /* HFA384X_TX_CTRL_ flags */
99 99
100 /* 802.11 */ 100 /* 802.11 */
101 u16 frame_control; /* parts not used */ 101 __le16 frame_control; /* parts not used */
102 u16 duration_id; 102 __le16 duration_id;
103 u8 addr1[6]; 103 u8 addr1[6];
104 u8 addr2[6]; /* filled by firmware */ 104 u8 addr2[6]; /* filled by firmware */
105 u8 addr3[6]; 105 u8 addr3[6];
106 u16 seq_ctrl; /* filled by firmware */ 106 __le16 seq_ctrl; /* filled by firmware */
107 u8 addr4[6]; 107 u8 addr4[6];
108 u16 data_len; 108 __le16 data_len;
109 109
110 /* 802.3 */ 110 /* 802.3 */
111 u8 dst_addr[6]; 111 u8 dst_addr[6];
112 u8 src_addr[6]; 112 u8 src_addr[6];
113 u16 len; 113 __be16 len;
114 114
115 /* followed by frame data; max 2304 bytes */ 115 /* followed by frame data; max 2304 bytes */
116} __attribute__ ((packed)); 116} __attribute__ ((packed));
@@ -118,8 +118,8 @@ struct hfa384x_tx_frame {
118 118
119struct hfa384x_rid_hdr 119struct hfa384x_rid_hdr
120{ 120{
121 u16 len; 121 __le16 len;
122 u16 rid; 122 __le16 rid;
123} __attribute__ ((packed)); 123} __attribute__ ((packed));
124 124
125 125
@@ -130,78 +130,78 @@ struct hfa384x_rid_hdr
130#define HFA384X_LEVEL_TO_dBm_sign(v) (v) * 100 / 255 - 100 130#define HFA384X_LEVEL_TO_dBm_sign(v) (v) * 100 / 255 - 100
131 131
132struct hfa384x_scan_request { 132struct hfa384x_scan_request {
133 u16 channel_list; 133 __le16 channel_list;
134 u16 txrate; /* HFA384X_RATES_* */ 134 __le16 txrate; /* HFA384X_RATES_* */
135} __attribute__ ((packed)); 135} __attribute__ ((packed));
136 136
137struct hfa384x_hostscan_request { 137struct hfa384x_hostscan_request {
138 u16 channel_list; 138 __le16 channel_list;
139 u16 txrate; 139 __le16 txrate;
140 u16 target_ssid_len; 140 __le16 target_ssid_len;
141 u8 target_ssid[32]; 141 u8 target_ssid[32];
142} __attribute__ ((packed)); 142} __attribute__ ((packed));
143 143
144struct hfa384x_join_request { 144struct hfa384x_join_request {
145 u8 bssid[6]; 145 u8 bssid[6];
146 u16 channel; 146 __le16 channel;
147} __attribute__ ((packed)); 147} __attribute__ ((packed));
148 148
149struct hfa384x_info_frame { 149struct hfa384x_info_frame {
150 u16 len; 150 __le16 len;
151 u16 type; 151 __le16 type;
152} __attribute__ ((packed)); 152} __attribute__ ((packed));
153 153
154struct hfa384x_comm_tallies { 154struct hfa384x_comm_tallies {
155 u16 tx_unicast_frames; 155 __le16 tx_unicast_frames;
156 u16 tx_multicast_frames; 156 __le16 tx_multicast_frames;
157 u16 tx_fragments; 157 __le16 tx_fragments;
158 u16 tx_unicast_octets; 158 __le16 tx_unicast_octets;
159 u16 tx_multicast_octets; 159 __le16 tx_multicast_octets;
160 u16 tx_deferred_transmissions; 160 __le16 tx_deferred_transmissions;
161 u16 tx_single_retry_frames; 161 __le16 tx_single_retry_frames;
162 u16 tx_multiple_retry_frames; 162 __le16 tx_multiple_retry_frames;
163 u16 tx_retry_limit_exceeded; 163 __le16 tx_retry_limit_exceeded;
164 u16 tx_discards; 164 __le16 tx_discards;
165 u16 rx_unicast_frames; 165 __le16 rx_unicast_frames;
166 u16 rx_multicast_frames; 166 __le16 rx_multicast_frames;
167 u16 rx_fragments; 167 __le16 rx_fragments;
168 u16 rx_unicast_octets; 168 __le16 rx_unicast_octets;
169 u16 rx_multicast_octets; 169 __le16 rx_multicast_octets;
170 u16 rx_fcs_errors; 170 __le16 rx_fcs_errors;
171 u16 rx_discards_no_buffer; 171 __le16 rx_discards_no_buffer;
172 u16 tx_discards_wrong_sa; 172 __le16 tx_discards_wrong_sa;
173 u16 rx_discards_wep_undecryptable; 173 __le16 rx_discards_wep_undecryptable;
174 u16 rx_message_in_msg_fragments; 174 __le16 rx_message_in_msg_fragments;
175 u16 rx_message_in_bad_msg_fragments; 175 __le16 rx_message_in_bad_msg_fragments;
176} __attribute__ ((packed)); 176} __attribute__ ((packed));
177 177
178struct hfa384x_comm_tallies32 { 178struct hfa384x_comm_tallies32 {
179 u32 tx_unicast_frames; 179 __le32 tx_unicast_frames;
180 u32 tx_multicast_frames; 180 __le32 tx_multicast_frames;
181 u32 tx_fragments; 181 __le32 tx_fragments;
182 u32 tx_unicast_octets; 182 __le32 tx_unicast_octets;
183 u32 tx_multicast_octets; 183 __le32 tx_multicast_octets;
184 u32 tx_deferred_transmissions; 184 __le32 tx_deferred_transmissions;
185 u32 tx_single_retry_frames; 185 __le32 tx_single_retry_frames;
186 u32 tx_multiple_retry_frames; 186 __le32 tx_multiple_retry_frames;
187 u32 tx_retry_limit_exceeded; 187 __le32 tx_retry_limit_exceeded;
188 u32 tx_discards; 188 __le32 tx_discards;
189 u32 rx_unicast_frames; 189 __le32 rx_unicast_frames;
190 u32 rx_multicast_frames; 190 __le32 rx_multicast_frames;
191 u32 rx_fragments; 191 __le32 rx_fragments;
192 u32 rx_unicast_octets; 192 __le32 rx_unicast_octets;
193 u32 rx_multicast_octets; 193 __le32 rx_multicast_octets;
194 u32 rx_fcs_errors; 194 __le32 rx_fcs_errors;
195 u32 rx_discards_no_buffer; 195 __le32 rx_discards_no_buffer;
196 u32 tx_discards_wrong_sa; 196 __le32 tx_discards_wrong_sa;
197 u32 rx_discards_wep_undecryptable; 197 __le32 rx_discards_wep_undecryptable;
198 u32 rx_message_in_msg_fragments; 198 __le32 rx_message_in_msg_fragments;
199 u32 rx_message_in_bad_msg_fragments; 199 __le32 rx_message_in_bad_msg_fragments;
200} __attribute__ ((packed)); 200} __attribute__ ((packed));
201 201
202struct hfa384x_scan_result_hdr { 202struct hfa384x_scan_result_hdr {
203 u16 reserved; 203 __le16 reserved;
204 u16 scan_reason; 204 __le16 scan_reason;
205#define HFA384X_SCAN_IN_PROGRESS 0 /* no results available yet */ 205#define HFA384X_SCAN_IN_PROGRESS 0 /* no results available yet */
206#define HFA384X_SCAN_HOST_INITIATED 1 206#define HFA384X_SCAN_HOST_INITIATED 1
207#define HFA384X_SCAN_FIRMWARE_INITIATED 2 207#define HFA384X_SCAN_FIRMWARE_INITIATED 2
@@ -211,30 +211,30 @@ struct hfa384x_scan_result_hdr {
211#define HFA384X_SCAN_MAX_RESULTS 32 211#define HFA384X_SCAN_MAX_RESULTS 32
212 212
213struct hfa384x_scan_result { 213struct hfa384x_scan_result {
214 u16 chid; 214 __le16 chid;
215 u16 anl; 215 __le16 anl;
216 u16 sl; 216 __le16 sl;
217 u8 bssid[6]; 217 u8 bssid[6];
218 u16 beacon_interval; 218 __le16 beacon_interval;
219 u16 capability; 219 __le16 capability;
220 u16 ssid_len; 220 __le16 ssid_len;
221 u8 ssid[32]; 221 u8 ssid[32];
222 u8 sup_rates[10]; 222 u8 sup_rates[10];
223 u16 rate; 223 __le16 rate;
224} __attribute__ ((packed)); 224} __attribute__ ((packed));
225 225
226struct hfa384x_hostscan_result { 226struct hfa384x_hostscan_result {
227 u16 chid; 227 __le16 chid;
228 u16 anl; 228 __le16 anl;
229 u16 sl; 229 __le16 sl;
230 u8 bssid[6]; 230 u8 bssid[6];
231 u16 beacon_interval; 231 __le16 beacon_interval;
232 u16 capability; 232 __le16 capability;
233 u16 ssid_len; 233 __le16 ssid_len;
234 u8 ssid[32]; 234 u8 ssid[32];
235 u8 sup_rates[10]; 235 u8 sup_rates[10];
236 u16 rate; 236 __le16 rate;
237 u16 atim; 237 __le16 atim;
238} __attribute__ ((packed)); 238} __attribute__ ((packed));
239 239
240struct comm_tallies_sums { 240struct comm_tallies_sums {