Lines Matching refs:erq
1407 struct iw_point *erq = &wrqu->encoding; in zd1201_set_encode() local
1412 if (erq->length > ZD1201_MAXKEYLEN) in zd1201_set_encode()
1415 i = (erq->flags & IW_ENCODE_INDEX)-1; in zd1201_set_encode()
1430 err = zd1201_setconfig(zd, rid, key, erq->length, 1); in zd1201_set_encode()
1433 zd->encode_keylen[i] = erq->length; in zd1201_set_encode()
1434 memcpy(zd->encode_keys[i], key, erq->length); in zd1201_set_encode()
1437 if (!(erq->flags & IW_ENCODE_DISABLED & IW_ENCODE_MODE)) { in zd1201_set_encode()
1442 if (erq->flags & IW_ENCODE_RESTRICTED & IW_ENCODE_MODE) { in zd1201_set_encode()
1465 struct iw_point *erq = &wrqu->encoding; in zd1201_get_encode() local
1471 erq->flags = IW_ENCODE_ENABLED; in zd1201_get_encode()
1473 erq->flags = IW_ENCODE_DISABLED; in zd1201_get_encode()
1475 erq->flags |= IW_ENCODE_RESTRICTED; in zd1201_get_encode()
1477 erq->flags |= IW_ENCODE_OPEN; in zd1201_get_encode()
1479 i = (erq->flags & IW_ENCODE_INDEX) -1; in zd1201_get_encode()
1488 erq->flags |= i+1; in zd1201_get_encode()
1490 erq->length = zd->encode_keylen[i]; in zd1201_get_encode()
1491 memcpy(key, zd->encode_keys[i], erq->length); in zd1201_get_encode()