Home
last modified time | relevance | path

Searched refs:erq (Results 1 – 14 of 14) sorted by relevance

/drivers/staging/rtl8187se/ieee80211/
Dieee80211_wx.c254 struct iw_point *erq = &(wrqu->encoding); in ieee80211_wx_set_encode() local
264 key = erq->flags & IW_ENCODE_INDEX; in ieee80211_wx_set_encode()
280 if (erq->flags & IW_ENCODE_DISABLED) { in ieee80211_wx_set_encode()
347 if (erq->length > 0) { in ieee80211_wx_set_encode()
348 len = erq->length <= 5 ? 5 : 13; in ieee80211_wx_set_encode()
349 memcpy(sec.keys[key], keybuf, erq->length); in ieee80211_wx_set_encode()
350 if (len > erq->length) in ieee80211_wx_set_encode()
351 memset(sec.keys[key] + erq->length, 0, in ieee80211_wx_set_encode()
352 len - erq->length); in ieee80211_wx_set_encode()
355 erq->length, len); in ieee80211_wx_set_encode()
[all …]
/drivers/net/wireless/orinoco/
Dwext.c237 struct iw_point *erq, in orinoco_ioctl_setiwencode() argument
241 int index = (erq->flags & IW_ENCODE_INDEX) - 1; in orinoco_ioctl_setiwencode()
251 if (erq->pointer) { in orinoco_ioctl_setiwencode()
253 if (erq->length > LARGE_KEY_SIZE) in orinoco_ioctl_setiwencode()
256 if ((erq->length > SMALL_KEY_SIZE) && !priv->has_big_wep) in orinoco_ioctl_setiwencode()
267 if (erq->length > 0) { in orinoco_ioctl_setiwencode()
281 if ((index != -1) || (erq->flags == 0)) { in orinoco_ioctl_setiwencode()
295 if (erq->flags & IW_ENCODE_DISABLED) in orinoco_ioctl_setiwencode()
297 if (erq->flags & IW_ENCODE_OPEN) in orinoco_ioctl_setiwencode()
299 if (erq->flags & IW_ENCODE_RESTRICTED) in orinoco_ioctl_setiwencode()
[all …]
/drivers/net/wireless/ipw2x00/
Dlibipw_wx.c317 struct iw_point *erq = &(wrqu->encoding); in libipw_wx_set_encode() local
329 key = erq->flags & IW_ENCODE_INDEX; in libipw_wx_set_encode()
345 if (erq->flags & IW_ENCODE_DISABLED) { in libipw_wx_set_encode()
414 if (erq->length > 0) { in libipw_wx_set_encode()
415 len = erq->length <= 5 ? 5 : 13; in libipw_wx_set_encode()
416 memcpy(sec.keys[key], keybuf, erq->length); in libipw_wx_set_encode()
417 if (len > erq->length) in libipw_wx_set_encode()
418 memset(sec.keys[key] + erq->length, 0, in libipw_wx_set_encode()
419 len - erq->length); in libipw_wx_set_encode()
422 erq->length, len); in libipw_wx_set_encode()
[all …]
/drivers/staging/rtl8192u/ieee80211/
Dieee80211_wx.c313 struct iw_point *erq = &(wrqu->encoding); in ieee80211_wx_set_encode() local
323 key = erq->flags & IW_ENCODE_INDEX; in ieee80211_wx_set_encode()
338 if (erq->flags & IW_ENCODE_DISABLED) { in ieee80211_wx_set_encode()
407 if (erq->length > 0) { in ieee80211_wx_set_encode()
408 len = erq->length <= 5 ? 5 : 13; in ieee80211_wx_set_encode()
409 memcpy(sec.keys[key], keybuf, erq->length); in ieee80211_wx_set_encode()
410 if (len > erq->length) in ieee80211_wx_set_encode()
411 memset(sec.keys[key] + erq->length, 0, in ieee80211_wx_set_encode()
412 len - erq->length); in ieee80211_wx_set_encode()
415 erq->length, len); in ieee80211_wx_set_encode()
[all …]
/drivers/staging/rtl8192e/
Drtllib_wx.c303 struct iw_point *erq = &(wrqu->encoding); in rtllib_wx_set_encode() local
313 key = erq->flags & IW_ENCODE_INDEX; in rtllib_wx_set_encode()
327 if (erq->flags & IW_ENCODE_DISABLED) { in rtllib_wx_set_encode()
397 if (erq->length > 0) { in rtllib_wx_set_encode()
398 len = erq->length <= 5 ? 5 : 13; in rtllib_wx_set_encode()
399 memcpy(sec.keys[key], keybuf, erq->length); in rtllib_wx_set_encode()
400 if (len > erq->length) in rtllib_wx_set_encode()
401 memset(sec.keys[key] + erq->length, 0, in rtllib_wx_set_encode()
402 len - erq->length); in rtllib_wx_set_encode()
405 erq->length, len); in rtllib_wx_set_encode()
[all …]
/drivers/staging/rtl8712/
Drtl871x_ioctl_linux.c1546 struct iw_point *erq = &(wrqu->encoding); in r8711_wx_set_enc() local
1549 key = erq->flags & IW_ENCODE_INDEX; in r8711_wx_set_enc()
1551 if (erq->flags & IW_ENCODE_DISABLED) { in r8711_wx_set_enc()
1572 if (erq->flags & IW_ENCODE_OPEN) { in r8711_wx_set_enc()
1581 } else if (erq->flags & IW_ENCODE_RESTRICTED) { in r8711_wx_set_enc()
1600 if (erq->length > 0) { in r8711_wx_set_enc()
1601 wep.KeyLength = erq->length <= 5 ? 5 : 13; in r8711_wx_set_enc()
1639 struct iw_point *erq = &(wrqu->encoding); in r8711_wx_get_enc() local
1644 erq->length = 0; in r8711_wx_get_enc()
1645 erq->flags |= IW_ENCODE_DISABLED; in r8711_wx_get_enc()
[all …]
/drivers/net/wireless/
Dzd1201.c1392 struct iw_request_info *info, struct iw_point *erq, char *key) in zd1201_set_encode() argument
1398 if (erq->length > ZD1201_MAXKEYLEN) in zd1201_set_encode()
1401 i = (erq->flags & IW_ENCODE_INDEX)-1; in zd1201_set_encode()
1416 err = zd1201_setconfig(zd, rid, key, erq->length, 1); in zd1201_set_encode()
1419 zd->encode_keylen[i] = erq->length; in zd1201_set_encode()
1420 memcpy(zd->encode_keys[i], key, erq->length); in zd1201_set_encode()
1423 if (!(erq->flags & IW_ENCODE_DISABLED & IW_ENCODE_MODE)) { in zd1201_set_encode()
1428 if (erq->flags & IW_ENCODE_RESTRICTED & IW_ENCODE_MODE) { in zd1201_set_encode()
1449 struct iw_request_info *info, struct iw_point *erq, char *key) in zd1201_get_encode() argument
1456 erq->flags = IW_ENCODE_ENABLED; in zd1201_get_encode()
[all …]
/drivers/staging/csr/
Dsme_wext.c2042 struct iw_point *erq = &wrqu->encoding; in unifi_siwencode() local
2066 index = (erq->flags & IW_ENCODE_INDEX); /* key number, 1-4 */ in unifi_siwencode()
2077 if (erq->length > 0) { in unifi_siwencode()
2080 if ((erq->length > LARGE_KEY_SIZE) || (erq->length < SMALL_KEY_SIZE)) { in unifi_siwencode()
2082 erq->length); in unifi_siwencode()
2105 if ((erq->flags & IW_ENCODE_NOKEY) == 0) { in unifi_siwencode()
2109 erq->length, index); in unifi_siwencode()
2119 sme_key.keyLength = erq->length; in unifi_siwencode()
2122 memcpy(sme_key.key, extra, erq->length); in unifi_siwencode()
2133 priv->wep_keys[index - 1].len = erq->length; in unifi_siwencode()
[all …]
/drivers/net/wireless/hostap/
Dhostap_ioctl.c126 struct iw_point *erq, char *keybuf) in prism2_ioctl_siwencode() argument
136 i = erq->flags & IW_ENCODE_INDEX; in prism2_ioctl_siwencode()
146 if (erq->flags & IW_ENCODE_DISABLED) { in prism2_ioctl_siwencode()
185 if (erq->length > 0) { in prism2_ioctl_siwencode()
186 int len = erq->length <= 5 ? 5 : 13; in prism2_ioctl_siwencode()
188 if (len > erq->length) in prism2_ioctl_siwencode()
189 memset(keybuf + erq->length, 0, len - erq->length); in prism2_ioctl_siwencode()
205 local->open_wep = erq->flags & IW_ENCODE_OPEN; in prism2_ioctl_siwencode()
228 struct iw_point *erq, char *key) in prism2_ioctl_giwencode() argument
239 i = erq->flags & IW_ENCODE_INDEX; in prism2_ioctl_giwencode()
[all …]
/drivers/staging/wlags49_h2/
Dwl_wext.c1330 …et_encode(struct net_device *dev, struct iw_request_info *info, struct iw_point *erq, char *keybuf) in wireless_set_encode() argument
1334 int key_idx = (erq->flags & IW_ENCODE_INDEX) - 1; in wireless_set_encode()
1345 if (erq->flags & IW_ENCODE_DISABLED) in wireless_set_encode()
1352 ret = hermes_set_wep_keys(lp, key_idx, keybuf, erq->length, in wireless_set_encode()
1387 …s_get_encode(struct net_device *dev, struct iw_request_info *info, struct iw_point *erq, char *key) in wireless_get_encode() argument
1424 index = (erq->flags & IW_ENCODE_INDEX ) - 1; in wireless_get_encode()
1428 erq->flags = 0; in wireless_get_encode()
1431 erq->flags |= IW_ENCODE_DISABLED; in wireless_get_encode()
1439 erq->flags |= index + 1; in wireless_get_encode()
1442 erq->length = lp->DefaultKeys.key[index].len; in wireless_get_encode()
[all …]
/drivers/isdn/hisax/
Dhisax_if.h58 struct sk_buff_head erq; member
Dconfig.c1630 skb_queue_head_init(&hisax_d_if->erq); in hisax_register()
1640 skb_queue_purge(&hisax_d_if->erq); in hisax_unregister()
1726 skb_queue_tail(&d_if->erq, arg); in hisax_d_l1l2()
1886 while ((skb = skb_dequeue(&d_if->erq)) != NULL) { in EChannel_proc_rcv()
/drivers/gpu/drm/i915/
Di915_irq.c1461 struct drm_i915_error_request *erq; in i915_gem_record_rings() local
1463 erq = &error->ring[i].requests[count++]; in i915_gem_record_rings()
1464 erq->seqno = request->seqno; in i915_gem_record_rings()
1465 erq->jiffies = request->emitted_jiffies; in i915_gem_record_rings()
1466 erq->tail = request->tail; in i915_gem_record_rings()
/drivers/staging/rtl8187se/
Dr8180_wx.c57 struct iw_point *erq = &(wrqu->encoding); in r8180_wx_set_key() local
62 if (erq->length > 0) { in r8180_wx_set_key()