15 #include <linux/types.h>
17 #include <linux/if_arp.h>
46 unsigned char *req_ie,
int req_ie_len,
47 unsigned char *resp_ie,
int resp_ie_len,
48 unsigned char *scan_ie,
unsigned int scan_ie_len)
53 if (req_ie_len == 0) req_ie =
NULL;
54 wrqu.
data.length = req_ie_len;
58 if (resp_ie_len == 0) resp_ie =
NULL;
59 wrqu.
data.length = resp_ie_len;
63 if (scan_ie_len > 0) {
64 wrqu.
data.length = scan_ie_len;
129 #if WIRELESS_EXT > 17
132 wrqu.
data.length = 0;
157 #if WIRELESS_EXT >= 18
161 int key_type,
int key_idx,
167 memset(&mmf, 0,
sizeof(mmf));
182 memset(&wrqu, 0,
sizeof(wrqu));
183 wrqu.data.length =
sizeof(mmf);
187 #elif WIRELESS_EXT >= 15
189 _send_michaelmicfailure_event(
struct net_device *dev,
190 int count,
const unsigned char *macaddr,
191 int key_type,
int key_idx,
198 "MLME-MICHAELMICFAILURE.indication(keyid=%d %scast addr=%pM)",
199 key_idx, (key_type ==
CSR_GROUP) ?
"broad" :
"uni", macaddr);
200 memset(&wrqu, 0,
sizeof(wrqu));
201 wrqu.data.length =
strlen(buf);
206 _send_michaelmicfailure_event(
struct net_device *dev,
207 int count,
const unsigned char *macaddr,
208 int key_type,
int key_idx,
223 unsigned char tsc[8] = {0};
226 unifi_error(priv,
"wext_send_michaelmicfailure_event bad interfaceTag\n");
230 _send_michaelmicfailure_event(priv->
netdev[interfaceTag],
241 #if WIRELESS_EXT > 17
246 unifi_error(priv,
"wext_send_pmkid_candidate_event bad interfaceTag\n");
250 memset(&pmkid_cand, 0,
sizeof(pmkid_cand));
252 if (preauth_allowed) {
258 pmkid_cand.
index = 1;
260 memset(&wrqu, 0,
sizeof(wrqu));
261 wrqu.
data.length =
sizeof(pmkid_cand);
274 #if WIRELESS_EXT > 17
276 char data[] =
"STARTED";