Home
last modified time | relevance | path

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

/Linux-v5.15/drivers/net/wireless/intersil/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 …]
/Linux-v5.15/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-v5.15/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-v5.15/drivers/staging/rtl8192e/
Drtllib_wx.c288 struct iw_point *erq = &(wrqu->encoding); in rtllib_wx_set_encode() local
296 key = erq->flags & IW_ENCODE_INDEX; in rtllib_wx_set_encode()
310 if (erq->flags & IW_ENCODE_DISABLED) { in rtllib_wx_set_encode()
379 if (erq->length > 0) { in rtllib_wx_set_encode()
380 len = erq->length <= 5 ? 5 : 13; in rtllib_wx_set_encode()
381 memcpy(sec.keys[key], keybuf, erq->length); in rtllib_wx_set_encode()
382 if (len > erq->length) in rtllib_wx_set_encode()
383 memset(sec.keys[key] + erq->length, 0, in rtllib_wx_set_encode()
384 len - erq->length); in rtllib_wx_set_encode()
386 key, escape_essid(sec.keys[key], len), erq->length, in rtllib_wx_set_encode()
[all …]
/Linux-v5.15/net/wireless/
Dwext-compat.c579 struct iw_point *erq, char *keybuf) in cfg80211_wext_siwencode() argument
598 idx = erq->flags & IW_ENCODE_INDEX; in cfg80211_wext_siwencode()
610 if (erq->flags & IW_ENCODE_DISABLED) in cfg80211_wext_siwencode()
612 else if (erq->length == 0) { in cfg80211_wext_siwencode()
627 params.key_len = erq->length; in cfg80211_wext_siwencode()
628 if (erq->length == 5) { in cfg80211_wext_siwencode()
630 } else if (erq->length == 13) { in cfg80211_wext_siwencode()
648 struct iw_point *erq, char *extra) in cfg80211_wext_siwencodeext() argument
696 if (erq->flags & IW_ENCODE_DISABLED) in cfg80211_wext_siwencodeext()
699 idx = erq->flags & IW_ENCODE_INDEX; in cfg80211_wext_siwencodeext()
[all …]
/Linux-v5.15/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-v5.15/drivers/gpu/drm/i915/
Di915_gpu_error.c468 const struct i915_request_coredump *erq) in error_print_request() argument
470 if (!erq->seqno) in error_print_request()
474 prefix, erq->pid, erq->context, erq->seqno, in error_print_request()
476 &erq->flags) ? "!" : "", in error_print_request()
478 &erq->flags) ? "+" : "", in error_print_request()
479 erq->sched_attr.priority, in error_print_request()
480 erq->head, erq->tail); in error_print_request()
1231 struct i915_request_coredump *erq) in record_request() argument
1233 erq->flags = request->fence.flags; in record_request()
1234 erq->context = request->fence.context; in record_request()
[all …]
/Linux-v5.15/drivers/net/wireless/zydas/
Dzd1201.c1390 struct iw_request_info *info, struct iw_point *erq, char *key) in zd1201_set_encode() argument
1396 if (erq->length > ZD1201_MAXKEYLEN) in zd1201_set_encode()
1399 i = (erq->flags & IW_ENCODE_INDEX)-1; in zd1201_set_encode()
1414 err = zd1201_setconfig(zd, rid, key, erq->length, 1); in zd1201_set_encode()
1417 zd->encode_keylen[i] = erq->length; in zd1201_set_encode()
1418 memcpy(zd->encode_keys[i], key, erq->length); in zd1201_set_encode()
1421 if (!(erq->flags & IW_ENCODE_DISABLED & IW_ENCODE_MODE)) { in zd1201_set_encode()
1426 if (erq->flags & IW_ENCODE_RESTRICTED & IW_ENCODE_MODE) { in zd1201_set_encode()
1447 struct iw_request_info *info, struct iw_point *erq, char *key) in zd1201_get_encode() argument
1454 erq->flags = IW_ENCODE_ENABLED; in zd1201_get_encode()
[all …]
/Linux-v5.15/drivers/net/wireless/intersil/hostap/
Dhostap_ioctl.c116 struct iw_point *erq, char *keybuf) in prism2_ioctl_siwencode() argument
126 i = erq->flags & IW_ENCODE_INDEX; in prism2_ioctl_siwencode()
136 if (erq->flags & IW_ENCODE_DISABLED) { in prism2_ioctl_siwencode()
175 if (erq->length > 0) { in prism2_ioctl_siwencode()
176 int len = erq->length <= 5 ? 5 : 13; in prism2_ioctl_siwencode()
178 if (len > erq->length) in prism2_ioctl_siwencode()
179 memset(keybuf + erq->length, 0, len - erq->length); in prism2_ioctl_siwencode()
195 local->open_wep = erq->flags & IW_ENCODE_OPEN; in prism2_ioctl_siwencode()
218 struct iw_point *erq, char *key) in prism2_ioctl_giwencode() argument
229 i = erq->flags & IW_ENCODE_INDEX; in prism2_ioctl_giwencode()
[all …]
/Linux-v5.15/drivers/staging/r8188eu/os_dep/
Dioctl_linux.c1690 struct iw_point *erq = &wrqu->encoding; in rtw_wx_set_enc() local
1693 DBG_88E("+rtw_wx_set_enc, flags = 0x%x\n", erq->flags); in rtw_wx_set_enc()
1697 key = erq->flags & IW_ENCODE_INDEX; in rtw_wx_set_enc()
1701 if (erq->flags & IW_ENCODE_DISABLED) { in rtw_wx_set_enc()
1725 if (erq->flags & IW_ENCODE_OPEN) { in rtw_wx_set_enc()
1733 } else if (erq->flags & IW_ENCODE_RESTRICTED) { in rtw_wx_set_enc()
1742 DBG_88E("rtw_wx_set_enc():erq->flags = 0x%x\n", erq->flags); in rtw_wx_set_enc()
1753 if (erq->length > 0) { in rtw_wx_set_enc()
1754 wep.KeyLength = erq->length <= 5 ? 5 : 13; in rtw_wx_set_enc()
1805 struct iw_point *erq = &wrqu->encoding; in rtw_wx_get_enc() local
[all …]