Lines Matching refs:vwrq
1480 struct iw_request_info *info, struct iw_param *vwrq, char *extra) in zd1201_set_power() argument
1486 enabled = vwrq->disabled ? 0 : 1; in zd1201_set_power()
1488 if (vwrq->flags & IW_POWER_PERIOD) { in zd1201_set_power()
1489 duration = vwrq->value; in zd1201_set_power()
1496 if (vwrq->flags & IW_POWER_TIMEOUT) { in zd1201_set_power()
1501 level = vwrq->value * 4 / duration; in zd1201_set_power()
1519 struct iw_request_info *info, struct iw_param *vwrq, char *extra) in zd1201_get_power() argument
1534 vwrq->disabled = enabled ? 0 : 1; in zd1201_get_power()
1535 if (vwrq->flags & IW_POWER_TYPE) { in zd1201_get_power()
1536 if (vwrq->flags & IW_POWER_PERIOD) { in zd1201_get_power()
1537 vwrq->value = duration; in zd1201_get_power()
1538 vwrq->flags = IW_POWER_PERIOD; in zd1201_get_power()
1540 vwrq->value = duration * level / 4; in zd1201_get_power()
1541 vwrq->flags = IW_POWER_TIMEOUT; in zd1201_get_power()
1544 if (vwrq->flags & IW_POWER_MODE) { in zd1201_get_power()
1546 vwrq->flags = IW_POWER_UNICAST_R; in zd1201_get_power()
1548 vwrq->flags = IW_POWER_ALL_R; in zd1201_get_power()