Lines Matching refs:vwrq
1479 struct iw_request_info *info, struct iw_param *vwrq, char *extra) in zd1201_set_power() argument
1485 enabled = vwrq->disabled ? 0 : 1; in zd1201_set_power()
1487 if (vwrq->flags & IW_POWER_PERIOD) { in zd1201_set_power()
1488 duration = vwrq->value; in zd1201_set_power()
1495 if (vwrq->flags & IW_POWER_TIMEOUT) { in zd1201_set_power()
1500 level = vwrq->value * 4 / duration; in zd1201_set_power()
1518 struct iw_request_info *info, struct iw_param *vwrq, char *extra) in zd1201_get_power() argument
1533 vwrq->disabled = enabled ? 0 : 1; in zd1201_get_power()
1534 if (vwrq->flags & IW_POWER_TYPE) { in zd1201_get_power()
1535 if (vwrq->flags & IW_POWER_PERIOD) { in zd1201_get_power()
1536 vwrq->value = duration; in zd1201_get_power()
1537 vwrq->flags = IW_POWER_PERIOD; in zd1201_get_power()
1539 vwrq->value = duration * level / 4; in zd1201_get_power()
1540 vwrq->flags = IW_POWER_TIMEOUT; in zd1201_get_power()
1543 if (vwrq->flags & IW_POWER_MODE) { in zd1201_get_power()
1545 vwrq->flags = IW_POWER_UNICAST_R; in zd1201_get_power()
1547 vwrq->flags = IW_POWER_ALL_R; in zd1201_get_power()