Lines Matching refs:vwrq
1689 struct iw_param *vwrq, in atmel_set_rate() argument
1694 if (vwrq->fixed == 0) { in atmel_set_rate()
1701 if((vwrq->value < 4) && (vwrq->value >= 0)) { in atmel_set_rate()
1703 priv->tx_rate = vwrq->value; in atmel_set_rate()
1706 switch (vwrq->value) { in atmel_set_rate()
1746 struct iw_param *vwrq, in atmel_get_rate() argument
1752 vwrq->fixed = 0; in atmel_get_rate()
1753 vwrq->value = 11e6; in atmel_get_rate()
1755 vwrq->fixed = 1; in atmel_get_rate()
1757 case 0: vwrq->value = 1e6; break; in atmel_get_rate()
1758 case 1: vwrq->value = 2e6; break; in atmel_get_rate()
1759 case 2: vwrq->value = 5.5e6; break; in atmel_get_rate()
1760 case 3: vwrq->value = 11e6; break; in atmel_get_rate()
1768 struct iw_param *vwrq, in atmel_set_power() argument
1772 priv->power_mode = vwrq->disabled ? 0 : 1; in atmel_set_power()
1778 struct iw_param *vwrq, in atmel_get_power() argument
1782 vwrq->disabled = priv->power_mode ? 0 : 1; in atmel_get_power()
1783 vwrq->flags = IW_POWER_ON; in atmel_get_power()
1789 struct iw_param *vwrq, in atmel_set_retry() argument
1794 if(!vwrq->disabled && (vwrq->flags & IW_RETRY_LIMIT)) { in atmel_set_retry()
1795 if(vwrq->flags & IW_RETRY_MAX) in atmel_set_retry()
1796 priv->long_retry = vwrq->value; in atmel_set_retry()
1797 else if (vwrq->flags & IW_RETRY_MIN) in atmel_set_retry()
1798 priv->short_retry = vwrq->value; in atmel_set_retry()
1801 priv->long_retry = vwrq->value; in atmel_set_retry()
1802 priv->short_retry = vwrq->value; in atmel_set_retry()
1812 struct iw_param *vwrq, in atmel_get_retry() argument
1817 vwrq->disabled = 0; /* Can't be disabled */ in atmel_get_retry()
1820 if((vwrq->flags & IW_RETRY_MAX)) { in atmel_get_retry()
1821 vwrq->flags = IW_RETRY_LIMIT | IW_RETRY_MAX; in atmel_get_retry()
1822 vwrq->value = priv->long_retry; in atmel_get_retry()
1824 vwrq->flags = IW_RETRY_LIMIT; in atmel_get_retry()
1825 vwrq->value = priv->short_retry; in atmel_get_retry()
1827 vwrq->flags |= IW_RETRY_MIN; in atmel_get_retry()
1835 struct iw_param *vwrq, in atmel_set_rts() argument
1839 int rthr = vwrq->value; in atmel_set_rts()
1841 if(vwrq->disabled) in atmel_set_rts()
1853 struct iw_param *vwrq, in atmel_get_rts() argument
1858 vwrq->value = priv->rts_threshold; in atmel_get_rts()
1859 vwrq->disabled = (vwrq->value >= 2347); in atmel_get_rts()
1860 vwrq->fixed = 1; in atmel_get_rts()
1867 struct iw_param *vwrq, in atmel_set_frag() argument
1871 int fthr = vwrq->value; in atmel_set_frag()
1873 if(vwrq->disabled) in atmel_set_frag()
1886 struct iw_param *vwrq, in atmel_get_frag() argument
1891 vwrq->value = priv->frag_threshold; in atmel_get_frag()
1892 vwrq->disabled = (vwrq->value >= 2346); in atmel_get_frag()
1893 vwrq->fixed = 1; in atmel_get_frag()
1949 struct iw_param *vwrq, in atmel_set_scan() argument