Lines Matching refs:erq
300 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()
439 if (erq->flags & (IW_ENCODE_OPEN | IW_ENCODE_RESTRICTED)) { in libipw_wx_set_encode()
440 ieee->open_wep = !(erq->flags & IW_ENCODE_RESTRICTED); in libipw_wx_set_encode()
466 struct iw_point *erq = &(wrqu->encoding); in libipw_wx_get_encode() local
472 key = erq->flags & IW_ENCODE_INDEX; in libipw_wx_get_encode()
480 erq->flags = key + 1; in libipw_wx_get_encode()
483 erq->length = 0; in libipw_wx_get_encode()
484 erq->flags |= IW_ENCODE_DISABLED; in libipw_wx_get_encode()
491 erq->length = len; in libipw_wx_get_encode()
492 erq->flags |= IW_ENCODE_ENABLED; in libipw_wx_get_encode()
495 erq->flags |= IW_ENCODE_OPEN; in libipw_wx_get_encode()
497 erq->flags |= IW_ENCODE_RESTRICTED; in libipw_wx_get_encode()