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