Home
last modified time | relevance | path

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

/Linux-v5.10/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.10/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.10/drivers/staging/rtl8192u/ieee80211/
Dieee80211_wx.c277 struct iw_point *erq = &(wrqu->encoding); in ieee80211_wx_set_encode() local
287 key = erq->flags & IW_ENCODE_INDEX; in ieee80211_wx_set_encode()
302 if (erq->flags & IW_ENCODE_DISABLED) { in ieee80211_wx_set_encode()
367 if (erq->length > 0) { in ieee80211_wx_set_encode()
368 len = erq->length <= 5 ? 5 : 13; in ieee80211_wx_set_encode()
369 memcpy(sec.keys[key], keybuf, erq->length); in ieee80211_wx_set_encode()
370 if (len > erq->length) in ieee80211_wx_set_encode()
371 memset(sec.keys[key] + erq->length, 0, in ieee80211_wx_set_encode()
372 len - erq->length); in ieee80211_wx_set_encode()
375 erq->length, len); in ieee80211_wx_set_encode()
[all …]
/Linux-v5.10/drivers/staging/rtl8192e/
Drtllib_wx.c291 struct iw_point *erq = &(wrqu->encoding); in rtllib_wx_set_encode() local
301 key = erq->flags & IW_ENCODE_INDEX; in rtllib_wx_set_encode()
315 if (erq->flags & IW_ENCODE_DISABLED) { in rtllib_wx_set_encode()
386 if (erq->length > 0) { in rtllib_wx_set_encode()
387 len = erq->length <= 5 ? 5 : 13; in rtllib_wx_set_encode()
388 memcpy(sec.keys[key], keybuf, erq->length); in rtllib_wx_set_encode()
389 if (len > erq->length) in rtllib_wx_set_encode()
390 memset(sec.keys[key] + erq->length, 0, in rtllib_wx_set_encode()
391 len - erq->length); in rtllib_wx_set_encode()
393 key, escape_essid(sec.keys[key], len), erq->length, in rtllib_wx_set_encode()
[all …]
/Linux-v5.10/net/wireless/
Dwext-compat.c565 struct iw_point *erq, char *keybuf) in cfg80211_wext_siwencode() argument
583 idx = erq->flags & IW_ENCODE_INDEX; in cfg80211_wext_siwencode()
593 if (erq->flags & IW_ENCODE_DISABLED) in cfg80211_wext_siwencode()
595 else if (erq->length == 0) { in cfg80211_wext_siwencode()
610 params.key_len = erq->length; in cfg80211_wext_siwencode()
611 if (erq->length == 5) in cfg80211_wext_siwencode()
613 else if (erq->length == 13) in cfg80211_wext_siwencode()
625 struct iw_point *erq, char *extra) in cfg80211_wext_siwencodeext() argument
672 if (erq->flags & IW_ENCODE_DISABLED) in cfg80211_wext_siwencodeext()
675 idx = erq->flags & IW_ENCODE_INDEX; in cfg80211_wext_siwencodeext()
[all …]
/Linux-v5.10/drivers/staging/rtl8712/
Drtl871x_ioctl_linux.c1499 struct iw_point *erq = &(wrqu->encoding); in r8711_wx_set_enc() local
1502 key = erq->flags & IW_ENCODE_INDEX; in r8711_wx_set_enc()
1504 if (erq->flags & IW_ENCODE_DISABLED) { in r8711_wx_set_enc()
1525 if (erq->flags & IW_ENCODE_OPEN) { in r8711_wx_set_enc()
1534 } else if (erq->flags & IW_ENCODE_RESTRICTED) { in r8711_wx_set_enc()
1554 if (erq->length > 0) { in r8711_wx_set_enc()
1555 wep.KeyLength = erq->length <= 5 ? 5 : 13; in r8711_wx_set_enc()
1594 struct iw_point *erq = &(wrqu->encoding); in r8711_wx_get_enc() local
1600 erq->length = 0; in r8711_wx_get_enc()
1601 erq->flags |= IW_ENCODE_DISABLED; in r8711_wx_get_enc()
[all …]
/Linux-v5.10/drivers/gpu/drm/i915/
Di915_gpu_error.c469 const struct i915_request_coredump *erq) in error_print_request() argument
471 if (!erq->seqno) in error_print_request()
475 prefix, erq->pid, erq->context, erq->seqno, in error_print_request()
477 &erq->flags) ? "!" : "", in error_print_request()
479 &erq->flags) ? "+" : "", in error_print_request()
480 erq->sched_attr.priority, in error_print_request()
481 erq->head, erq->tail); in error_print_request()
1219 struct i915_request_coredump *erq) in record_request() argument
1221 erq->flags = request->fence.flags; in record_request()
1222 erq->context = request->fence.context; in record_request()
[all …]
/Linux-v5.10/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.10/drivers/net/wireless/intersil/hostap/
Dhostap_ioctl.c127 struct iw_point *erq, char *keybuf) in prism2_ioctl_siwencode() argument
137 i = erq->flags & IW_ENCODE_INDEX; in prism2_ioctl_siwencode()
147 if (erq->flags & IW_ENCODE_DISABLED) { in prism2_ioctl_siwencode()
186 if (erq->length > 0) { in prism2_ioctl_siwencode()
187 int len = erq->length <= 5 ? 5 : 13; in prism2_ioctl_siwencode()
189 if (len > erq->length) in prism2_ioctl_siwencode()
190 memset(keybuf + erq->length, 0, len - erq->length); in prism2_ioctl_siwencode()
206 local->open_wep = erq->flags & IW_ENCODE_OPEN; in prism2_ioctl_siwencode()
229 struct iw_point *erq, char *key) in prism2_ioctl_giwencode() argument
240 i = erq->flags & IW_ENCODE_INDEX; in prism2_ioctl_giwencode()
[all …]
/Linux-v5.10/drivers/staging/rtl8188eu/os_dep/
Dioctl_linux.c1567 struct iw_point *erq = &wrqu->encoding; in rtw_wx_set_enc() local
1571 DBG_88E("+%s, flags = 0x%x\n", __func__, erq->flags); in rtw_wx_set_enc()
1575 key = erq->flags & IW_ENCODE_INDEX; in rtw_wx_set_enc()
1577 if (erq->flags & IW_ENCODE_DISABLED) { in rtw_wx_set_enc()
1601 if (erq->flags & IW_ENCODE_OPEN) { in rtw_wx_set_enc()
1609 } else if (erq->flags & IW_ENCODE_RESTRICTED) { in rtw_wx_set_enc()
1618 DBG_88E("%s():erq->flags = 0x%x\n", __func__, erq->flags); in rtw_wx_set_enc()
1629 if (erq->length > 0) { in rtw_wx_set_enc()
1630 wep.KeyLength = erq->length <= 5 ? 5 : 13; in rtw_wx_set_enc()
1678 struct iw_point *erq = &wrqu->encoding; in rtw_wx_get_enc() local
[all …]
/Linux-v5.10/drivers/staging/rtl8723bs/os_dep/
Dioctl_linux.c1842 struct iw_point *erq = &(wrqu->encoding); in rtw_wx_set_enc() local
1845 DBG_871X("+rtw_wx_set_enc, flags = 0x%x\n", erq->flags); in rtw_wx_set_enc()
1849 key = erq->flags & IW_ENCODE_INDEX; in rtw_wx_set_enc()
1851 if (erq->flags & IW_ENCODE_DISABLED) { in rtw_wx_set_enc()
1875 if (erq->flags & IW_ENCODE_OPEN) { in rtw_wx_set_enc()
1885 } else if (erq->flags & IW_ENCODE_RESTRICTED) { in rtw_wx_set_enc()
1896 DBG_871X("rtw_wx_set_enc():erq->flags = 0x%x\n", erq->flags); in rtw_wx_set_enc()
1907 if (erq->length > 0) { in rtw_wx_set_enc()
1908 wep.KeyLength = erq->length <= 5 ? 5 : 13; in rtw_wx_set_enc()
1957 struct iw_point *erq = &(wrqu->encoding); in rtw_wx_get_enc() local
[all …]