Lines Matching refs:erq
237 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()
302 if (erq->pointer && erq->length > 0) { in orinoco_ioctl_setiwencode()
304 erq->length, NULL, 0); in orinoco_ioctl_setiwencode()
328 struct iw_point *erq, in orinoco_ioctl_getiwencode() argument
332 int index = (erq->flags & IW_ENCODE_INDEX) - 1; in orinoco_ioctl_getiwencode()
344 erq->flags = 0; in orinoco_ioctl_getiwencode()
346 erq->flags |= IW_ENCODE_DISABLED; in orinoco_ioctl_getiwencode()
347 erq->flags |= index + 1; in orinoco_ioctl_getiwencode()
350 erq->flags |= IW_ENCODE_RESTRICTED; in orinoco_ioctl_getiwencode()
352 erq->flags |= IW_ENCODE_OPEN; in orinoco_ioctl_getiwencode()
354 erq->length = priv->keys[index].key_len; in orinoco_ioctl_getiwencode()
356 memcpy(keybuf, priv->keys[index].key, erq->length); in orinoco_ioctl_getiwencode()
364 struct iw_point *erq, in orinoco_ioctl_setessid() argument
375 if (erq->length > IW_ESSID_MAX_SIZE) in orinoco_ioctl_setessid()
385 if (erq->flags) in orinoco_ioctl_setessid()
386 memcpy(priv->desired_essid, essidbuf, erq->length); in orinoco_ioctl_setessid()
395 struct iw_point *erq, in orinoco_ioctl_getessid() argument
407 erq->length = err; in orinoco_ioctl_getessid()
412 erq->length = strlen(priv->desired_essid); in orinoco_ioctl_getessid()
416 erq->flags = 1; in orinoco_ioctl_getessid()