Lines Matching refs:erq

242 	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()
305 if (erq->pointer && erq->length > 0) { in orinoco_ioctl_setiwencode()
307 erq->length, NULL, 0); in orinoco_ioctl_setiwencode()
334 struct iw_point *erq = &wrqu->encoding; in orinoco_ioctl_getiwencode() local
336 int index = (erq->flags & IW_ENCODE_INDEX) - 1; in orinoco_ioctl_getiwencode()
348 erq->flags = 0; in orinoco_ioctl_getiwencode()
350 erq->flags |= IW_ENCODE_DISABLED; in orinoco_ioctl_getiwencode()
351 erq->flags |= index + 1; in orinoco_ioctl_getiwencode()
354 erq->flags |= IW_ENCODE_RESTRICTED; in orinoco_ioctl_getiwencode()
356 erq->flags |= IW_ENCODE_OPEN; in orinoco_ioctl_getiwencode()
358 erq->length = priv->keys[index].key_len; in orinoco_ioctl_getiwencode()
360 memcpy(keybuf, priv->keys[index].key, erq->length); in orinoco_ioctl_getiwencode()
371 struct iw_point *erq = &wrqu->essid; in orinoco_ioctl_setessid() local
380 if (erq->length > IW_ESSID_MAX_SIZE) in orinoco_ioctl_setessid()
390 if (erq->flags) in orinoco_ioctl_setessid()
391 memcpy(priv->desired_essid, essidbuf, erq->length); in orinoco_ioctl_setessid()
403 struct iw_point *erq = &wrqu->essid; in orinoco_ioctl_getessid() local
413 erq->length = err; in orinoco_ioctl_getessid()
418 erq->length = strlen(priv->desired_essid); in orinoco_ioctl_getessid()
422 erq->flags = 1; in orinoco_ioctl_getessid()