Home
last modified time | relevance | path

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

/linux-6.6.21/drivers/net/wireless/intersil/orinoco/
Dwext.c242 struct iw_point *erq = &wrqu->encoding; in orinoco_ioctl_setiwencode() local
244 int index = (erq->flags & IW_ENCODE_INDEX) - 1; in orinoco_ioctl_setiwencode()
254 if (erq->pointer) { in orinoco_ioctl_setiwencode()
256 if (erq->length > LARGE_KEY_SIZE) in orinoco_ioctl_setiwencode()
259 if ((erq->length > SMALL_KEY_SIZE) && !priv->has_big_wep) in orinoco_ioctl_setiwencode()
270 if (erq->length > 0) { in orinoco_ioctl_setiwencode()
284 if ((index != -1) || (erq->flags == 0)) { in orinoco_ioctl_setiwencode()
298 if (erq->flags & IW_ENCODE_DISABLED) in orinoco_ioctl_setiwencode()
300 if (erq->flags & IW_ENCODE_OPEN) in orinoco_ioctl_setiwencode()
302 if (erq->flags & IW_ENCODE_RESTRICTED) in orinoco_ioctl_setiwencode()
[all …]
/linux-6.6.21/drivers/net/wireless/intel/ipw2x00/
Dlibipw_wx.c300 struct iw_point *erq = &(wrqu->encoding); in libipw_wx_set_encode() local
311 key = erq->flags & IW_ENCODE_INDEX; in libipw_wx_set_encode()
327 if (erq->flags & IW_ENCODE_DISABLED) { in libipw_wx_set_encode()
396 if (erq->length > 0) { in libipw_wx_set_encode()
397 len = erq->length <= 5 ? 5 : 13; in libipw_wx_set_encode()
398 memcpy(sec.keys[key], keybuf, erq->length); in libipw_wx_set_encode()
399 if (len > erq->length) in libipw_wx_set_encode()
400 memset(sec.keys[key] + erq->length, 0, in libipw_wx_set_encode()
401 len - erq->length); in libipw_wx_set_encode()
404 erq->length, len); in libipw_wx_set_encode()
[all …]
/linux-6.6.21/drivers/staging/rtl8192e/
Drtllib_wx.c270 struct iw_point *erq = &wrqu->encoding; in rtllib_wx_set_encode() local
278 key = erq->flags & IW_ENCODE_INDEX; in rtllib_wx_set_encode()
292 if (erq->flags & IW_ENCODE_DISABLED) { in rtllib_wx_set_encode()
362 if (erq->length > 0) { in rtllib_wx_set_encode()
363 len = erq->length <= 5 ? 5 : 13; in rtllib_wx_set_encode()
364 memcpy(sec.keys[key], keybuf, erq->length); in rtllib_wx_set_encode()
365 if (len > erq->length) in rtllib_wx_set_encode()
366 memset(sec.keys[key] + erq->length, 0, in rtllib_wx_set_encode()
367 len - erq->length); in rtllib_wx_set_encode()
369 key, escape_essid(sec.keys[key], len), erq->length, in rtllib_wx_set_encode()
[all …]
/linux-6.6.21/drivers/staging/rtl8192u/ieee80211/
Dieee80211_wx.c275 struct iw_point *erq = &(wrqu->encoding); in ieee80211_wx_set_encode() local
285 key = erq->flags & IW_ENCODE_INDEX; in ieee80211_wx_set_encode()
300 if (erq->flags & IW_ENCODE_DISABLED) { in ieee80211_wx_set_encode()
365 if (erq->length > 0) { in ieee80211_wx_set_encode()
366 len = erq->length <= 5 ? 5 : 13; in ieee80211_wx_set_encode()
367 memcpy(sec.keys[key], keybuf, erq->length); in ieee80211_wx_set_encode()
368 if (len > erq->length) in ieee80211_wx_set_encode()
369 memset(sec.keys[key] + erq->length, 0, in ieee80211_wx_set_encode()
370 len - erq->length); in ieee80211_wx_set_encode()
373 erq->length, len); in ieee80211_wx_set_encode()
[all …]
/linux-6.6.21/net/wireless/
Dwext-compat.c602 struct iw_point *erq = &wrqu->encoding; in cfg80211_wext_siwencode() local
625 idx = erq->flags & IW_ENCODE_INDEX; in cfg80211_wext_siwencode()
637 if (erq->flags & IW_ENCODE_DISABLED) in cfg80211_wext_siwencode()
639 else if (erq->length == 0) { in cfg80211_wext_siwencode()
656 params.key_len = erq->length; in cfg80211_wext_siwencode()
657 if (erq->length == 5) { in cfg80211_wext_siwencode()
659 } else if (erq->length == 13) { in cfg80211_wext_siwencode()
679 struct iw_point *erq = &wrqu->encoding; in cfg80211_wext_siwencodeext() local
733 if (erq->flags & IW_ENCODE_DISABLED) in cfg80211_wext_siwencodeext()
736 idx = erq->flags & IW_ENCODE_INDEX; in cfg80211_wext_siwencodeext()
[all …]
/linux-6.6.21/drivers/staging/rtl8712/
Drtl871x_ioctl_linux.c1497 struct iw_point *erq = &wrqu->encoding; in r8711_wx_set_enc() local
1500 key = erq->flags & IW_ENCODE_INDEX; in r8711_wx_set_enc()
1502 if (erq->flags & IW_ENCODE_DISABLED) { in r8711_wx_set_enc()
1523 if (erq->flags & IW_ENCODE_OPEN) { in r8711_wx_set_enc()
1532 } else if (erq->flags & IW_ENCODE_RESTRICTED) { in r8711_wx_set_enc()
1552 if (erq->length > 0) { in r8711_wx_set_enc()
1553 wep.KeyLength = erq->length <= 5 ? 5 : 13; in r8711_wx_set_enc()
1592 struct iw_point *erq = &wrqu->encoding; in r8711_wx_get_enc() local
1598 erq->length = 0; in r8711_wx_get_enc()
1599 erq->flags |= IW_ENCODE_DISABLED; in r8711_wx_get_enc()
[all …]
/linux-6.6.21/drivers/net/wireless/zydas/
Dzd1201.c1407 struct iw_point *erq = &wrqu->encoding; in zd1201_set_encode() local
1412 if (erq->length > ZD1201_MAXKEYLEN) in zd1201_set_encode()
1415 i = (erq->flags & IW_ENCODE_INDEX)-1; in zd1201_set_encode()
1430 err = zd1201_setconfig(zd, rid, key, erq->length, 1); in zd1201_set_encode()
1433 zd->encode_keylen[i] = erq->length; in zd1201_set_encode()
1434 memcpy(zd->encode_keys[i], key, erq->length); in zd1201_set_encode()
1437 if (!(erq->flags & IW_ENCODE_DISABLED & IW_ENCODE_MODE)) { in zd1201_set_encode()
1442 if (erq->flags & IW_ENCODE_RESTRICTED & IW_ENCODE_MODE) { in zd1201_set_encode()
1465 struct iw_point *erq = &wrqu->encoding; in zd1201_get_encode() local
1471 erq->flags = IW_ENCODE_ENABLED; in zd1201_get_encode()
[all …]
/linux-6.6.21/drivers/net/wireless/intersil/hostap/
Dhostap_ioctl.c118 struct iw_point *erq = &wrqu->encoding; in prism2_ioctl_siwencode() local
127 i = erq->flags & IW_ENCODE_INDEX; in prism2_ioctl_siwencode()
137 if (erq->flags & IW_ENCODE_DISABLED) { in prism2_ioctl_siwencode()
176 if (erq->length > 0) { in prism2_ioctl_siwencode()
177 int len = erq->length <= 5 ? 5 : 13; in prism2_ioctl_siwencode()
179 if (len > erq->length) in prism2_ioctl_siwencode()
180 memset(keybuf + erq->length, 0, len - erq->length); in prism2_ioctl_siwencode()
196 local->open_wep = erq->flags & IW_ENCODE_OPEN; in prism2_ioctl_siwencode()
221 struct iw_point *erq = &wrqu->encoding; in prism2_ioctl_giwencode() local
231 i = erq->flags & IW_ENCODE_INDEX; in prism2_ioctl_giwencode()
[all …]
/linux-6.6.21/drivers/gpu/drm/i915/
Di915_gpu_error.c485 const struct i915_request_coredump *erq) in error_print_request() argument
487 if (!erq->seqno) in error_print_request()
491 prefix, erq->pid, erq->context, erq->seqno, in error_print_request()
493 &erq->flags) ? "!" : "", in error_print_request()
495 &erq->flags) ? "+" : "", in error_print_request()
496 erq->sched_attr.priority, in error_print_request()
497 erq->head, erq->tail); in error_print_request()
1351 struct i915_request_coredump *erq) in record_request() argument
1353 erq->flags = request->fence.flags; in record_request()
1354 erq->context = request->fence.context; in record_request()
[all …]