Lines Matching refs:erq
1390 struct iw_request_info *info, struct iw_point *erq, char *key) in zd1201_set_encode() argument
1396 if (erq->length > ZD1201_MAXKEYLEN) in zd1201_set_encode()
1399 i = (erq->flags & IW_ENCODE_INDEX)-1; in zd1201_set_encode()
1414 err = zd1201_setconfig(zd, rid, key, erq->length, 1); in zd1201_set_encode()
1417 zd->encode_keylen[i] = erq->length; in zd1201_set_encode()
1418 memcpy(zd->encode_keys[i], key, erq->length); in zd1201_set_encode()
1421 if (!(erq->flags & IW_ENCODE_DISABLED & IW_ENCODE_MODE)) { in zd1201_set_encode()
1426 if (erq->flags & IW_ENCODE_RESTRICTED & IW_ENCODE_MODE) { in zd1201_set_encode()
1447 struct iw_request_info *info, struct iw_point *erq, char *key) in zd1201_get_encode() argument
1454 erq->flags = IW_ENCODE_ENABLED; in zd1201_get_encode()
1456 erq->flags = IW_ENCODE_DISABLED; in zd1201_get_encode()
1458 erq->flags |= IW_ENCODE_RESTRICTED; in zd1201_get_encode()
1460 erq->flags |= IW_ENCODE_OPEN; in zd1201_get_encode()
1462 i = (erq->flags & IW_ENCODE_INDEX) -1; in zd1201_get_encode()
1471 erq->flags |= i+1; in zd1201_get_encode()
1473 erq->length = zd->encode_keylen[i]; in zd1201_get_encode()
1474 memcpy(key, zd->encode_keys[i], erq->length); in zd1201_get_encode()