Home
last modified time | relevance | path

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

/openbmc/linux/drivers/staging/rtl8192u/ieee80211/
H A Dieee80211_softmac_wx.c34 struct iw_freq *fwrq = &wrqu->freq; in ieee80211_wx_set_freq() local
44 if (fwrq->e == 1) { in ieee80211_wx_set_freq()
45 if ((fwrq->m >= (int)2.412e8 && in ieee80211_wx_set_freq()
46 fwrq->m <= (int)2.487e8)) { in ieee80211_wx_set_freq()
47 int f = fwrq->m / 100000; in ieee80211_wx_set_freq()
54 fwrq->e = 0; in ieee80211_wx_set_freq()
55 fwrq->m = c + 1; in ieee80211_wx_set_freq()
59 if (fwrq->e > 0 || fwrq->m > 14 || fwrq->m < 1) { in ieee80211_wx_set_freq()
69 ieee->current_network.channel = fwrq->m; in ieee80211_wx_set_freq()
90 struct iw_freq *fwrq = &wrqu->freq; in ieee80211_wx_get_freq() local
[all …]
/openbmc/linux/drivers/staging/rtl8192e/
H A Drtllib_softmac_wx.c23 struct iw_freq *fwrq = &wrqu->freq; in rtllib_wx_set_freq() local
33 if (fwrq->e == 1) { in rtllib_wx_set_freq()
34 if ((fwrq->m >= (int)2.412e8 && in rtllib_wx_set_freq()
35 fwrq->m <= (int)2.487e8)) { in rtllib_wx_set_freq()
36 fwrq->m = ieee80211_freq_khz_to_channel(fwrq->m / 100); in rtllib_wx_set_freq()
37 fwrq->e = 0; in rtllib_wx_set_freq()
41 if (fwrq->e > 0 || fwrq->m > 14 || fwrq->m < 1) { in rtllib_wx_set_freq()
47 if (ieee->active_channel_map[fwrq->m] != 1) { in rtllib_wx_set_freq()
51 ieee->current_network.channel = fwrq->m; in rtllib_wx_set_freq()
72 struct iw_freq *fwrq = &wrqu->freq; in rtllib_wx_get_freq() local
[all …]
/openbmc/linux/drivers/staging/ks7010/
H A 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 >= 241200000) && (fwrq->freq.m <= 248700000)) { 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 …]
/openbmc/linux/drivers/staging/rtl8712/
H A Drtl871x_ioctl_linux.c657 struct iw_freq *fwrq = &wrqu->freq; in r8711_wx_set_freq() local
661 if ((fwrq->e == 1) && in r8711_wx_set_freq()
662 (fwrq->m >= 241200000) && in r8711_wx_set_freq()
663 (fwrq->m <= 248700000)) { in r8711_wx_set_freq()
664 int f = fwrq->m / 100000; in r8711_wx_set_freq()
669 fwrq->e = 0; in r8711_wx_set_freq()
670 fwrq->m = c + 1; in r8711_wx_set_freq()
673 if ((fwrq->m > 14) || (fwrq->e > 0)) { in r8711_wx_set_freq()
676 int channel = fwrq->m; in r8711_wx_set_freq()
/openbmc/linux/drivers/net/wireless/atmel/
H A Datmel.c2263 struct iw_freq *fwrq = &wrqu->freq; in atmel_set_freq() local
2268 if (fwrq->e == 1) { in atmel_set_freq()
2269 int f = fwrq->m / 100000; in atmel_set_freq()
2272 fwrq->e = 0; in atmel_set_freq()
2273 fwrq->m = ieee80211_frequency_to_channel(f); in atmel_set_freq()
2276 if (fwrq->m < 0 || fwrq->m > 1000 || fwrq->e > 0) in atmel_set_freq()
2279 int channel = fwrq->m; in atmel_set_freq()
2294 struct iw_freq *fwrq = &wrqu->freq; in atmel_get_freq() local
2297 fwrq->m = priv->channel; in atmel_get_freq()
2298 fwrq->e = 0; in atmel_get_freq()
/openbmc/linux/drivers/net/wireless/cisco/
H A Dairo.c5834 struct iw_freq *fwrq = &wrqu->freq; in airo_set_freq() local
5839 if (fwrq->e == 1) { in airo_set_freq()
5840 int f = fwrq->m / 100000; in airo_set_freq()
5843 fwrq->e = 0; in airo_set_freq()
5847 if (fwrq->m < 0 || fwrq->m > 1000 || fwrq->e > 0) in airo_set_freq()
5850 int channel = fwrq->m; in airo_set_freq()
5855 fwrq->m); in airo_set_freq()
5889 fwrq->m = 100000 * in airo_get_freq()
5891 fwrq->e = 1; in airo_get_freq()
5893 fwrq->m = ch; in airo_get_freq()
[all …]
/openbmc/linux/drivers/net/wireless/intel/ipw2x00/
H A Dipw2100.c6593 struct iw_freq *fwrq = &wrqu->freq; in ipw2100_wx_set_freq() local
6606 if (fwrq->e == 1) { in ipw2100_wx_set_freq()
6607 if ((fwrq->m >= (int)2.412e8 && fwrq->m <= (int)2.487e8)) { in ipw2100_wx_set_freq()
6608 int f = fwrq->m / 100000; in ipw2100_wx_set_freq()
6616 fwrq->e = 0; in ipw2100_wx_set_freq()
6617 fwrq->m = c + 1; in ipw2100_wx_set_freq()
6621 if (fwrq->e > 0 || fwrq->m > 1000) { in ipw2100_wx_set_freq()
6625 IPW_DEBUG_WX("SET Freq/Channel -> %d\n", fwrq->m); in ipw2100_wx_set_freq()
6626 err = ipw2100_set_channel(priv, fwrq->m, 0); in ipw2100_wx_set_freq()
H A Dipw2200.c8599 struct iw_freq *fwrq = &wrqu->freq; in ipw_wx_set_freq() local
8604 if (fwrq->m == 0) { in ipw_wx_set_freq()
8612 if (fwrq->e == 1) { in ipw_wx_set_freq()
8613 channel = libipw_freq_to_channel(priv->ieee, fwrq->m); in ipw_wx_set_freq()
8617 channel = fwrq->m; in ipw_wx_set_freq()
8635 IPW_DEBUG_WX("SET Freq/Channel -> %d\n", fwrq->m); in ipw_wx_set_freq()