Home
last modified time | relevance | path

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

/linux-6.1.9/drivers/staging/rtl8192u/ieee80211/
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()
65 if (!(GET_DOT11D_INFO(ieee)->channel_map)[fwrq->m]) { in ieee80211_wx_set_freq()
69 ieee->current_network.channel = fwrq->m; in ieee80211_wx_set_freq()
[all …]
/linux-6.1.9/drivers/staging/rtl8192e/
Drtllib_softmac_wx.c33 struct iw_freq *fwrq = &wrqu->freq; in rtllib_wx_set_freq() local
43 if (fwrq->e == 1) { in rtllib_wx_set_freq()
44 if ((fwrq->m >= (int)2.412e8 && in rtllib_wx_set_freq()
45 fwrq->m <= (int)2.487e8)) { in rtllib_wx_set_freq()
46 int f = fwrq->m / 100000; in rtllib_wx_set_freq()
53 fwrq->e = 0; in rtllib_wx_set_freq()
54 fwrq->m = c + 1; in rtllib_wx_set_freq()
58 if (fwrq->e > 0 || fwrq->m > 14 || fwrq->m < 1) { in rtllib_wx_set_freq()
64 if (ieee->active_channel_map[fwrq->m] != 1) { in rtllib_wx_set_freq()
68 ieee->current_network.channel = fwrq->m; in rtllib_wx_set_freq()
[all …]
/linux-6.1.9/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 >= 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 …]
/linux-6.1.9/drivers/staging/rtl8712/
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()
/linux-6.1.9/drivers/net/wireless/atmel/
Datmel.c2243 struct iw_freq *fwrq, in atmel_set_freq() argument
2250 if (fwrq->e == 1) { in atmel_set_freq()
2251 int f = fwrq->m / 100000; in atmel_set_freq()
2254 fwrq->e = 0; in atmel_set_freq()
2255 fwrq->m = ieee80211_frequency_to_channel(f); in atmel_set_freq()
2258 if (fwrq->m < 0 || fwrq->m > 1000 || fwrq->e > 0) in atmel_set_freq()
2261 int channel = fwrq->m; in atmel_set_freq()
2273 struct iw_freq *fwrq, in atmel_get_freq() argument
2278 fwrq->m = priv->channel; in atmel_get_freq()
2279 fwrq->e = 0; in atmel_get_freq()
/linux-6.1.9/drivers/net/wireless/cisco/
Dairo.c5830 struct iw_freq *fwrq, in airo_set_freq() argument
5837 if (fwrq->e == 1) { in airo_set_freq()
5838 int f = fwrq->m / 100000; in airo_set_freq()
5841 fwrq->e = 0; in airo_set_freq()
5842 fwrq->m = ieee80211_frequency_to_channel(f); in airo_set_freq()
5845 if (fwrq->m < 0 || fwrq->m > 1000 || fwrq->e > 0) in airo_set_freq()
5848 int channel = fwrq->m; in airo_set_freq()
5853 fwrq->m); in airo_set_freq()
5871 struct iw_freq *fwrq, in airo_get_freq() argument
5886 fwrq->m = 100000 * in airo_get_freq()
[all …]
/linux-6.1.9/drivers/net/wireless/intel/ipw2x00/
Dipw2100.c6604 struct iw_freq *fwrq = &wrqu->freq; in ipw2100_wx_set_freq() local
6617 if (fwrq->e == 1) { in ipw2100_wx_set_freq()
6618 if ((fwrq->m >= (int)2.412e8 && fwrq->m <= (int)2.487e8)) { in ipw2100_wx_set_freq()
6619 int f = fwrq->m / 100000; in ipw2100_wx_set_freq()
6627 fwrq->e = 0; in ipw2100_wx_set_freq()
6628 fwrq->m = c + 1; in ipw2100_wx_set_freq()
6632 if (fwrq->e > 0 || fwrq->m > 1000) { in ipw2100_wx_set_freq()
6636 IPW_DEBUG_WX("SET Freq/Channel -> %d\n", fwrq->m); in ipw2100_wx_set_freq()
6637 err = ipw2100_set_channel(priv, fwrq->m, 0); in ipw2100_wx_set_freq()
Dipw2200.c8642 struct iw_freq *fwrq = &wrqu->freq; in ipw_wx_set_freq() local
8647 if (fwrq->m == 0) { in ipw_wx_set_freq()
8655 if (fwrq->e == 1) { in ipw_wx_set_freq()
8656 channel = libipw_freq_to_channel(priv->ieee, fwrq->m); in ipw_wx_set_freq()
8660 channel = fwrq->m; in ipw_wx_set_freq()
8678 IPW_DEBUG_WX("SET Freq/Channel -> %d\n", fwrq->m); in ipw_wx_set_freq()