Lines Matching refs:vwrq
6086 struct iw_param *vwrq = &wrqu->bitrate; in airo_set_rate() local
6096 if ((vwrq->value < 8) && (vwrq->value >= 0)) { in airo_set_rate()
6099 brate = cap_rid.supportedRates[vwrq->value]; in airo_set_rate()
6102 u8 normvalue = (u8) (vwrq->value/500000); in airo_set_rate()
6113 if (vwrq->value == -1) { in airo_set_rate()
6129 if (vwrq->fixed == 0) { in airo_set_rate()
6157 struct iw_param *vwrq = &wrqu->bitrate; in airo_get_rate() local
6166 vwrq->value = le16_to_cpu(status_rid.currentXmitRate) * 500000; in airo_get_rate()
6169 vwrq->fixed = (local->config.rates[1] == 0); in airo_get_rate()
6183 struct iw_param *vwrq = &wrqu->rts; in airo_set_rts() local
6185 int rthr = vwrq->value; in airo_set_rts()
6187 if (vwrq->disabled) in airo_set_rts()
6208 struct iw_param *vwrq = &wrqu->rts; in airo_get_rts() local
6212 vwrq->value = le16_to_cpu(local->config.rtsThres); in airo_get_rts()
6213 vwrq->disabled = (vwrq->value >= AIRO_DEF_MTU); in airo_get_rts()
6214 vwrq->fixed = 1; in airo_get_rts()
6227 struct iw_param *vwrq = &wrqu->frag; in airo_set_frag() local
6229 int fthr = vwrq->value; in airo_set_frag()
6231 if (vwrq->disabled) in airo_set_frag()
6253 struct iw_param *vwrq = &wrqu->frag; in airo_get_frag() local
6257 vwrq->value = le16_to_cpu(local->config.fragThresh); in airo_get_frag()
6258 vwrq->disabled = (vwrq->value >= AIRO_DEF_MTU); in airo_get_frag()
6259 vwrq->fixed = 1; in airo_get_frag()
6820 struct iw_param *vwrq = &wrqu->txpower; in airo_set_txpow() local
6825 __le16 v = cpu_to_le16(vwrq->value); in airo_set_txpow()
6829 if (vwrq->disabled) { in airo_set_txpow()
6834 if (vwrq->flags != IW_TXPOW_MWATT) { in airo_set_txpow()
6858 struct iw_param *vwrq = &wrqu->txpower; in airo_get_txpow() local
6862 vwrq->value = le16_to_cpu(local->config.txPower); in airo_get_txpow()
6863 vwrq->fixed = 1; /* No power control */ in airo_get_txpow()
6864 vwrq->disabled = test_bit(FLAG_RADIO_OFF, &local->flags); in airo_get_txpow()
6865 vwrq->flags = IW_TXPOW_MWATT; in airo_get_txpow()
6879 struct iw_param *vwrq = &wrqu->retry; in airo_set_retry() local
6883 if (vwrq->disabled) { in airo_set_retry()
6887 if (vwrq->flags & IW_RETRY_LIMIT) { in airo_set_retry()
6888 __le16 v = cpu_to_le16(vwrq->value); in airo_set_retry()
6889 if (vwrq->flags & IW_RETRY_LONG) in airo_set_retry()
6891 else if (vwrq->flags & IW_RETRY_SHORT) in airo_set_retry()
6901 if (vwrq->flags & IW_RETRY_LIFETIME) { in airo_set_retry()
6902 local->config.txLifetime = cpu_to_le16(vwrq->value / 1024); in airo_set_retry()
6918 struct iw_param *vwrq = &wrqu->retry; in airo_get_retry() local
6921 vwrq->disabled = 0; /* Can't be disabled */ in airo_get_retry()
6925 if ((vwrq->flags & IW_RETRY_TYPE) == IW_RETRY_LIFETIME) { in airo_get_retry()
6926 vwrq->flags = IW_RETRY_LIFETIME; in airo_get_retry()
6927 vwrq->value = le16_to_cpu(local->config.txLifetime) * 1024; in airo_get_retry()
6928 } else if ((vwrq->flags & IW_RETRY_LONG)) { in airo_get_retry()
6929 vwrq->flags = IW_RETRY_LIMIT | IW_RETRY_LONG; in airo_get_retry()
6930 vwrq->value = le16_to_cpu(local->config.longRetryLimit); in airo_get_retry()
6932 vwrq->flags = IW_RETRY_LIMIT; in airo_get_retry()
6933 vwrq->value = le16_to_cpu(local->config.shortRetryLimit); in airo_get_retry()
6935 vwrq->flags |= IW_RETRY_SHORT; in airo_get_retry()
7076 struct iw_param *vwrq = &wrqu->power; in airo_set_power() local
7080 if (vwrq->disabled) { in airo_set_power()
7089 if ((vwrq->flags & IW_POWER_TYPE) == IW_POWER_TIMEOUT) { in airo_set_power()
7090 local->config.fastListenDelay = cpu_to_le16((vwrq->value + 500) / 1024); in airo_set_power()
7093 } else if ((vwrq->flags & IW_POWER_TYPE) == IW_POWER_PERIOD) { in airo_set_power()
7096 cpu_to_le16((vwrq->value + 500) / 1024); in airo_set_power()
7100 switch (vwrq->flags & IW_POWER_MODE) { in airo_set_power()
7135 struct iw_param *vwrq = &wrqu->power; in airo_get_power() local
7141 if ((vwrq->disabled = (mode == POWERSAVE_CAM))) in airo_get_power()
7143 if ((vwrq->flags & IW_POWER_TYPE) == IW_POWER_TIMEOUT) { in airo_get_power()
7144 vwrq->value = le16_to_cpu(local->config.fastListenDelay) * 1024; in airo_get_power()
7145 vwrq->flags = IW_POWER_TIMEOUT; in airo_get_power()
7147 vwrq->value = le16_to_cpu(local->config.fastListenInterval) * 1024; in airo_get_power()
7148 vwrq->flags = IW_POWER_PERIOD; in airo_get_power()
7151 vwrq->flags |= IW_POWER_UNICAST_R; in airo_get_power()
7153 vwrq->flags |= IW_POWER_ALL_R; in airo_get_power()
7167 struct iw_param *vwrq = &wrqu->sens; in airo_set_sens() local
7172 cpu_to_le16(vwrq->disabled ? RSSI_DEFAULT : vwrq->value); in airo_set_sens()
7187 struct iw_param *vwrq = &wrqu->sens; in airo_get_sens() local
7191 vwrq->value = le16_to_cpu(local->config.rssiThreshold); in airo_get_sens()
7192 vwrq->disabled = (vwrq->value == 0); in airo_get_sens()
7193 vwrq->fixed = 1; in airo_get_sens()