Lines Matching refs:erq
297 struct iw_point *erq = &(wrqu->encoding); in libipw_wx_set_encode() local
308 key = erq->flags & IW_ENCODE_INDEX; in libipw_wx_set_encode()
324 if (erq->flags & IW_ENCODE_DISABLED) { in libipw_wx_set_encode()
393 if (erq->length > 0) { in libipw_wx_set_encode()
394 len = erq->length <= 5 ? 5 : 13; in libipw_wx_set_encode()
395 memcpy(sec.keys[key], keybuf, erq->length); in libipw_wx_set_encode()
396 if (len > erq->length) in libipw_wx_set_encode()
397 memset(sec.keys[key] + erq->length, 0, in libipw_wx_set_encode()
398 len - erq->length); in libipw_wx_set_encode()
401 erq->length, len); in libipw_wx_set_encode()
436 if (erq->flags & (IW_ENCODE_OPEN | IW_ENCODE_RESTRICTED)) { in libipw_wx_set_encode()
437 ieee->open_wep = !(erq->flags & IW_ENCODE_RESTRICTED); in libipw_wx_set_encode()
463 struct iw_point *erq = &(wrqu->encoding); in libipw_wx_get_encode() local
469 key = erq->flags & IW_ENCODE_INDEX; in libipw_wx_get_encode()
477 erq->flags = key + 1; in libipw_wx_get_encode()
480 erq->length = 0; in libipw_wx_get_encode()
481 erq->flags |= IW_ENCODE_DISABLED; in libipw_wx_get_encode()
488 erq->length = len; in libipw_wx_get_encode()
489 erq->flags |= IW_ENCODE_ENABLED; in libipw_wx_get_encode()
492 erq->flags |= IW_ENCODE_OPEN; in libipw_wx_get_encode()
494 erq->flags |= IW_ENCODE_RESTRICTED; in libipw_wx_get_encode()