Lines Matching refs:erq
1389 struct iw_request_info *info, struct iw_point *erq, char *key) in zd1201_set_encode() argument
1395 if (erq->length > ZD1201_MAXKEYLEN) in zd1201_set_encode()
1398 i = (erq->flags & IW_ENCODE_INDEX)-1; in zd1201_set_encode()
1413 err = zd1201_setconfig(zd, rid, key, erq->length, 1); in zd1201_set_encode()
1416 zd->encode_keylen[i] = erq->length; in zd1201_set_encode()
1417 memcpy(zd->encode_keys[i], key, erq->length); in zd1201_set_encode()
1420 if (!(erq->flags & IW_ENCODE_DISABLED & IW_ENCODE_MODE)) { in zd1201_set_encode()
1425 if (erq->flags & IW_ENCODE_RESTRICTED & IW_ENCODE_MODE) { in zd1201_set_encode()
1446 struct iw_request_info *info, struct iw_point *erq, char *key) in zd1201_get_encode() argument
1453 erq->flags = IW_ENCODE_ENABLED; in zd1201_get_encode()
1455 erq->flags = IW_ENCODE_DISABLED; in zd1201_get_encode()
1457 erq->flags |= IW_ENCODE_RESTRICTED; in zd1201_get_encode()
1459 erq->flags |= IW_ENCODE_OPEN; in zd1201_get_encode()
1461 i = (erq->flags & IW_ENCODE_INDEX) -1; in zd1201_get_encode()
1470 erq->flags |= i+1; in zd1201_get_encode()
1472 erq->length = zd->encode_keylen[i]; in zd1201_get_encode()
1473 memcpy(key, zd->encode_keys[i], erq->length); in zd1201_get_encode()