Home
last modified time | relevance | path

Searched refs:fwrq (Results 1 – 9 of 9) sorted by relevance

/Linux-v4.19/drivers/staging/rtl8192u/ieee80211/
Dieee80211_softmac_wx.c35 struct iw_freq *fwrq = &wrqu->freq; in ieee80211_wx_set_freq() local
45 if (fwrq->e == 1) { in ieee80211_wx_set_freq()
46 if ((fwrq->m >= (int) 2.412e8 && in ieee80211_wx_set_freq()
47 fwrq->m <= (int) 2.487e8)) { in ieee80211_wx_set_freq()
48 int f = fwrq->m / 100000; in ieee80211_wx_set_freq()
55 fwrq->e = 0; in ieee80211_wx_set_freq()
56 fwrq->m = c + 1; in ieee80211_wx_set_freq()
60 if (fwrq->e > 0 || fwrq->m > 14 || fwrq->m < 1) { in ieee80211_wx_set_freq()
66 if (!(GET_DOT11D_INFO(ieee)->channel_map)[fwrq->m]) { in ieee80211_wx_set_freq()
70 ieee->current_network.channel = fwrq->m; in ieee80211_wx_set_freq()
[all …]
/Linux-v4.19/drivers/staging/rtl8192e/
Drtllib_softmac_wx.c36 struct iw_freq *fwrq = &wrqu->freq; in rtllib_wx_set_freq() local
46 if (fwrq->e == 1) { in rtllib_wx_set_freq()
47 if ((fwrq->m >= (int) 2.412e8 && in rtllib_wx_set_freq()
48 fwrq->m <= (int) 2.487e8)) { in rtllib_wx_set_freq()
49 int f = fwrq->m / 100000; in rtllib_wx_set_freq()
56 fwrq->e = 0; in rtllib_wx_set_freq()
57 fwrq->m = c + 1; in rtllib_wx_set_freq()
61 if (fwrq->e > 0 || fwrq->m > 14 || fwrq->m < 1) { in rtllib_wx_set_freq()
67 if (ieee->active_channel_map[fwrq->m] != 1) { in rtllib_wx_set_freq()
71 ieee->current_network.channel = fwrq->m; in rtllib_wx_set_freq()
[all …]
/Linux-v4.19/drivers/staging/ks7010/
Dks_wlan_net.c174 union iwreq_data *fwrq, char *extra) in ks_wlan_set_freq() argument
184 if ((fwrq->freq.e == 1) && in ks_wlan_set_freq()
185 (fwrq->freq.m >= (int)2.412e8) && (fwrq->freq.m <= (int)2.487e8)) { in ks_wlan_set_freq()
186 int f = fwrq->freq.m / 100000; in ks_wlan_set_freq()
192 fwrq->freq.e = 0; in ks_wlan_set_freq()
193 fwrq->freq.m = c + 1; in ks_wlan_set_freq()
196 if ((fwrq->freq.m > 1000) || (fwrq->freq.e > 0)) in ks_wlan_set_freq()
199 channel = fwrq->freq.m; in ks_wlan_set_freq()
205 dev->name, fwrq->freq.m); in ks_wlan_set_freq()
218 union iwreq_data *fwrq, char *extra) in ks_wlan_get_freq() argument
[all …]
/Linux-v4.19/drivers/staging/rtl8712/
Drtl871x_ioctl_linux.c662 struct iw_freq *fwrq = &wrqu->freq; in r8711_wx_set_freq() local
666 if ((fwrq->e == 1) && in r8711_wx_set_freq()
667 (fwrq->m >= (int) 2.412e8) && in r8711_wx_set_freq()
668 (fwrq->m <= (int) 2.487e8)) { in r8711_wx_set_freq()
669 int f = fwrq->m / 100000; in r8711_wx_set_freq()
674 fwrq->e = 0; in r8711_wx_set_freq()
675 fwrq->m = c + 1; in r8711_wx_set_freq()
678 if ((fwrq->m > 14) || (fwrq->e > 0)) { in r8711_wx_set_freq()
681 int channel = fwrq->m; in r8711_wx_set_freq()
/Linux-v4.19/drivers/net/wireless/intersil/prism54/
Disl_ioctl.c290 struct iw_freq *fwrq, char *extra) in prism54_set_freq() argument
296 if (fwrq->m < 1000) in prism54_set_freq()
298 c = fwrq->m; in prism54_set_freq()
300 c = (fwrq->e == 1) ? channel_of_freq(fwrq->m / 100000) : 0; in prism54_set_freq()
310 struct iw_freq *fwrq, char *extra) in prism54_get_freq() argument
317 fwrq->i = r.u; in prism54_get_freq()
319 fwrq->m = r.u; in prism54_get_freq()
320 fwrq->e = 3; in prism54_get_freq()
/Linux-v4.19/drivers/net/wireless/atmel/
Datmel.c2245 struct iw_freq *fwrq, in atmel_set_freq() argument
2252 if (fwrq->e == 1) { in atmel_set_freq()
2253 int f = fwrq->m / 100000; in atmel_set_freq()
2256 fwrq->e = 0; in atmel_set_freq()
2257 fwrq->m = ieee80211_frequency_to_channel(f); in atmel_set_freq()
2260 if (fwrq->m < 0 || fwrq->m > 1000 || fwrq->e > 0) in atmel_set_freq()
2263 int channel = fwrq->m; in atmel_set_freq()
2275 struct iw_freq *fwrq, in atmel_get_freq() argument
2280 fwrq->m = priv->channel; in atmel_get_freq()
2281 fwrq->e = 0; in atmel_get_freq()
/Linux-v4.19/drivers/net/wireless/cisco/
Dairo.c5772 struct iw_freq *fwrq, in airo_set_freq() argument
5779 if(fwrq->e == 1) { in airo_set_freq()
5780 int f = fwrq->m / 100000; in airo_set_freq()
5783 fwrq->e = 0; in airo_set_freq()
5784 fwrq->m = ieee80211_frequency_to_channel(f); in airo_set_freq()
5787 if (fwrq->m < 0 || fwrq->m > 1000 || fwrq->e > 0) in airo_set_freq()
5790 int channel = fwrq->m; in airo_set_freq()
5795 fwrq->m); in airo_set_freq()
5813 struct iw_freq *fwrq, in airo_get_freq() argument
5828 fwrq->m = 100000 * in airo_get_freq()
[all …]
/Linux-v4.19/drivers/net/wireless/intel/ipw2x00/
Dipw2100.c6644 struct iw_freq *fwrq = &wrqu->freq; in ipw2100_wx_set_freq() local
6657 if (fwrq->e == 1) { in ipw2100_wx_set_freq()
6658 if ((fwrq->m >= (int)2.412e8 && fwrq->m <= (int)2.487e8)) { in ipw2100_wx_set_freq()
6659 int f = fwrq->m / 100000; in ipw2100_wx_set_freq()
6667 fwrq->e = 0; in ipw2100_wx_set_freq()
6668 fwrq->m = c + 1; in ipw2100_wx_set_freq()
6672 if (fwrq->e > 0 || fwrq->m > 1000) { in ipw2100_wx_set_freq()
6676 IPW_DEBUG_WX("SET Freq/Channel -> %d\n", fwrq->m); in ipw2100_wx_set_freq()
6677 err = ipw2100_set_channel(priv, fwrq->m, 0); in ipw2100_wx_set_freq()
Dipw2200.c8664 struct iw_freq *fwrq = &wrqu->freq; in ipw_wx_set_freq() local
8669 if (fwrq->m == 0) { in ipw_wx_set_freq()
8677 if (fwrq->e == 1) { in ipw_wx_set_freq()
8678 channel = libipw_freq_to_channel(priv->ieee, fwrq->m); in ipw_wx_set_freq()
8682 channel = fwrq->m; in ipw_wx_set_freq()
8700 IPW_DEBUG_WX("SET Freq/Channel -> %d\n", fwrq->m); in ipw_wx_set_freq()