Lines Matching refs:vwrq
1499 struct iw_param *vwrq = &wrqu->power; in zd1201_set_power() local
1504 enabled = vwrq->disabled ? 0 : 1; in zd1201_set_power()
1506 if (vwrq->flags & IW_POWER_PERIOD) { in zd1201_set_power()
1507 duration = vwrq->value; in zd1201_set_power()
1514 if (vwrq->flags & IW_POWER_TIMEOUT) { in zd1201_set_power()
1519 level = vwrq->value * 4 / duration; in zd1201_set_power()
1539 struct iw_param *vwrq = &wrqu->power; in zd1201_get_power() local
1553 vwrq->disabled = enabled ? 0 : 1; in zd1201_get_power()
1554 if (vwrq->flags & IW_POWER_TYPE) { in zd1201_get_power()
1555 if (vwrq->flags & IW_POWER_PERIOD) { in zd1201_get_power()
1556 vwrq->value = duration; in zd1201_get_power()
1557 vwrq->flags = IW_POWER_PERIOD; in zd1201_get_power()
1559 vwrq->value = duration * level / 4; in zd1201_get_power()
1560 vwrq->flags = IW_POWER_TIMEOUT; in zd1201_get_power()
1563 if (vwrq->flags & IW_POWER_MODE) { in zd1201_get_power()
1565 vwrq->flags = IW_POWER_UNICAST_R; in zd1201_get_power()
1567 vwrq->flags = IW_POWER_ALL_R; in zd1201_get_power()