Lines Matching refs:vwrq
6055 struct iw_param *vwrq, in airo_set_rate() argument
6067 if ((vwrq->value < 8) && (vwrq->value >= 0)) { in airo_set_rate()
6070 brate = cap_rid.supportedRates[vwrq->value]; in airo_set_rate()
6073 u8 normvalue = (u8) (vwrq->value/500000); in airo_set_rate()
6084 if (vwrq->value == -1) { in airo_set_rate()
6100 if (vwrq->fixed == 0) { in airo_set_rate()
6125 struct iw_param *vwrq, in airo_get_rate() argument
6133 vwrq->value = le16_to_cpu(status_rid.currentXmitRate) * 500000; in airo_get_rate()
6136 vwrq->fixed = (local->config.rates[1] == 0); in airo_get_rate()
6147 struct iw_param *vwrq, in airo_set_rts() argument
6151 int rthr = vwrq->value; in airo_set_rts()
6153 if (vwrq->disabled) in airo_set_rts()
6171 struct iw_param *vwrq, in airo_get_rts() argument
6177 vwrq->value = le16_to_cpu(local->config.rtsThres); in airo_get_rts()
6178 vwrq->disabled = (vwrq->value >= AIRO_DEF_MTU); in airo_get_rts()
6179 vwrq->fixed = 1; in airo_get_rts()
6190 struct iw_param *vwrq, in airo_set_frag() argument
6194 int fthr = vwrq->value; in airo_set_frag()
6196 if (vwrq->disabled) in airo_set_frag()
6215 struct iw_param *vwrq, in airo_get_frag() argument
6221 vwrq->value = le16_to_cpu(local->config.fragThresh); in airo_get_frag()
6222 vwrq->disabled = (vwrq->value >= AIRO_DEF_MTU); in airo_get_frag()
6223 vwrq->fixed = 1; in airo_get_frag()
6778 struct iw_param *vwrq, in airo_set_txpow() argument
6785 __le16 v = cpu_to_le16(vwrq->value); in airo_set_txpow()
6789 if (vwrq->disabled) { in airo_set_txpow()
6794 if (vwrq->flags != IW_TXPOW_MWATT) { in airo_set_txpow()
6815 struct iw_param *vwrq, in airo_get_txpow() argument
6821 vwrq->value = le16_to_cpu(local->config.txPower); in airo_get_txpow()
6822 vwrq->fixed = 1; /* No power control */ in airo_get_txpow()
6823 vwrq->disabled = test_bit(FLAG_RADIO_OFF, &local->flags); in airo_get_txpow()
6824 vwrq->flags = IW_TXPOW_MWATT; in airo_get_txpow()
6835 struct iw_param *vwrq, in airo_set_retry() argument
6841 if (vwrq->disabled) { in airo_set_retry()
6845 if (vwrq->flags & IW_RETRY_LIMIT) { in airo_set_retry()
6846 __le16 v = cpu_to_le16(vwrq->value); in airo_set_retry()
6847 if (vwrq->flags & IW_RETRY_LONG) in airo_set_retry()
6849 else if (vwrq->flags & IW_RETRY_SHORT) in airo_set_retry()
6859 if (vwrq->flags & IW_RETRY_LIFETIME) { in airo_set_retry()
6860 local->config.txLifetime = cpu_to_le16(vwrq->value / 1024); in airo_set_retry()
6873 struct iw_param *vwrq, in airo_get_retry() argument
6878 vwrq->disabled = 0; /* Can't be disabled */ in airo_get_retry()
6882 if ((vwrq->flags & IW_RETRY_TYPE) == IW_RETRY_LIFETIME) { in airo_get_retry()
6883 vwrq->flags = IW_RETRY_LIFETIME; in airo_get_retry()
6884 vwrq->value = le16_to_cpu(local->config.txLifetime) * 1024; in airo_get_retry()
6885 } else if ((vwrq->flags & IW_RETRY_LONG)) { in airo_get_retry()
6886 vwrq->flags = IW_RETRY_LIMIT | IW_RETRY_LONG; in airo_get_retry()
6887 vwrq->value = le16_to_cpu(local->config.longRetryLimit); in airo_get_retry()
6889 vwrq->flags = IW_RETRY_LIMIT; in airo_get_retry()
6890 vwrq->value = le16_to_cpu(local->config.shortRetryLimit); in airo_get_retry()
6892 vwrq->flags |= IW_RETRY_SHORT; in airo_get_retry()
7030 struct iw_param *vwrq, in airo_set_power() argument
7036 if (vwrq->disabled) { in airo_set_power()
7045 if ((vwrq->flags & IW_POWER_TYPE) == IW_POWER_TIMEOUT) { in airo_set_power()
7046 local->config.fastListenDelay = cpu_to_le16((vwrq->value + 500) / 1024); in airo_set_power()
7049 } else if ((vwrq->flags & IW_POWER_TYPE) == IW_POWER_PERIOD) { in airo_set_power()
7052 cpu_to_le16((vwrq->value + 500) / 1024); in airo_set_power()
7056 switch (vwrq->flags & IW_POWER_MODE) { in airo_set_power()
7087 struct iw_param *vwrq, in airo_get_power() argument
7095 if ((vwrq->disabled = (mode == POWERSAVE_CAM))) in airo_get_power()
7097 if ((vwrq->flags & IW_POWER_TYPE) == IW_POWER_TIMEOUT) { in airo_get_power()
7098 vwrq->value = le16_to_cpu(local->config.fastListenDelay) * 1024; in airo_get_power()
7099 vwrq->flags = IW_POWER_TIMEOUT; in airo_get_power()
7101 vwrq->value = le16_to_cpu(local->config.fastListenInterval) * 1024; in airo_get_power()
7102 vwrq->flags = IW_POWER_PERIOD; in airo_get_power()
7105 vwrq->flags |= IW_POWER_UNICAST_R; in airo_get_power()
7107 vwrq->flags |= IW_POWER_ALL_R; in airo_get_power()
7118 struct iw_param *vwrq, in airo_set_sens() argument
7125 cpu_to_le16(vwrq->disabled ? RSSI_DEFAULT : vwrq->value); in airo_set_sens()
7137 struct iw_param *vwrq, in airo_get_sens() argument
7143 vwrq->value = le16_to_cpu(local->config.rssiThreshold); in airo_get_sens()
7144 vwrq->disabled = (vwrq->value == 0); in airo_get_sens()
7145 vwrq->fixed = 1; in airo_get_sens()