Lines Matching refs:erq
314 struct iw_point *erq = &(wrqu->encoding); in libipw_wx_set_encode() local
325 key = erq->flags & IW_ENCODE_INDEX; in libipw_wx_set_encode()
341 if (erq->flags & IW_ENCODE_DISABLED) { in libipw_wx_set_encode()
410 if (erq->length > 0) { in libipw_wx_set_encode()
411 len = erq->length <= 5 ? 5 : 13; in libipw_wx_set_encode()
412 memcpy(sec.keys[key], keybuf, erq->length); in libipw_wx_set_encode()
413 if (len > erq->length) in libipw_wx_set_encode()
414 memset(sec.keys[key] + erq->length, 0, in libipw_wx_set_encode()
415 len - erq->length); in libipw_wx_set_encode()
418 erq->length, len); in libipw_wx_set_encode()
453 if (erq->flags & (IW_ENCODE_OPEN | IW_ENCODE_RESTRICTED)) { in libipw_wx_set_encode()
454 ieee->open_wep = !(erq->flags & IW_ENCODE_RESTRICTED); in libipw_wx_set_encode()
480 struct iw_point *erq = &(wrqu->encoding); in libipw_wx_get_encode() local
487 key = erq->flags & IW_ENCODE_INDEX; in libipw_wx_get_encode()
496 erq->flags = key + 1; in libipw_wx_get_encode()
499 erq->length = 0; in libipw_wx_get_encode()
500 erq->flags |= IW_ENCODE_DISABLED; in libipw_wx_get_encode()
507 erq->length = len; in libipw_wx_get_encode()
508 erq->flags |= IW_ENCODE_ENABLED; in libipw_wx_get_encode()
511 erq->flags |= IW_ENCODE_OPEN; in libipw_wx_get_encode()
513 erq->flags |= IW_ENCODE_RESTRICTED; in libipw_wx_get_encode()