Searched refs:fwrq (Results 1 – 9 of 9) sorted by relevance
/Linux-v5.10/drivers/staging/rtl8192u/ieee80211/ |
D | ieee80211_softmac_wx.c | 34 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-v5.10/drivers/staging/rtl8192e/ |
D | rtllib_softmac_wx.c | 33 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-v5.10/drivers/staging/ks7010/ |
D | ks_wlan_net.c | 174 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-v5.10/drivers/staging/rtl8712/ |
D | rtl871x_ioctl_linux.c | 659 struct iw_freq *fwrq = &wrqu->freq; in r8711_wx_set_freq() local 663 if ((fwrq->e == 1) && in r8711_wx_set_freq() 664 (fwrq->m >= (int) 2.412e8) && in r8711_wx_set_freq() 665 (fwrq->m <= (int) 2.487e8)) { in r8711_wx_set_freq() 666 int f = fwrq->m / 100000; in r8711_wx_set_freq() 671 fwrq->e = 0; in r8711_wx_set_freq() 672 fwrq->m = c + 1; in r8711_wx_set_freq() 675 if ((fwrq->m > 14) || (fwrq->e > 0)) { in r8711_wx_set_freq() 678 int channel = fwrq->m; in r8711_wx_set_freq()
|
/Linux-v5.10/drivers/net/wireless/intersil/prism54/ |
D | isl_ioctl.c | 289 struct iw_freq *fwrq, char *extra) in prism54_set_freq() argument 295 if (fwrq->m < 1000) in prism54_set_freq() 297 c = fwrq->m; in prism54_set_freq() 299 c = (fwrq->e == 1) ? channel_of_freq(fwrq->m / 100000) : 0; in prism54_set_freq() 309 struct iw_freq *fwrq, char *extra) in prism54_get_freq() argument 316 fwrq->i = r.u; in prism54_get_freq() 318 fwrq->m = r.u; in prism54_get_freq() 319 fwrq->e = 3; in prism54_get_freq()
|
/Linux-v5.10/drivers/net/wireless/atmel/ |
D | atmel.c | 2244 struct iw_freq *fwrq, in atmel_set_freq() argument 2251 if (fwrq->e == 1) { in atmel_set_freq() 2252 int f = fwrq->m / 100000; in atmel_set_freq() 2255 fwrq->e = 0; in atmel_set_freq() 2256 fwrq->m = ieee80211_frequency_to_channel(f); in atmel_set_freq() 2259 if (fwrq->m < 0 || fwrq->m > 1000 || fwrq->e > 0) in atmel_set_freq() 2262 int channel = fwrq->m; in atmel_set_freq() 2274 struct iw_freq *fwrq, in atmel_get_freq() argument 2279 fwrq->m = priv->channel; in atmel_get_freq() 2280 fwrq->e = 0; in atmel_get_freq()
|
/Linux-v5.10/drivers/net/wireless/cisco/ |
D | airo.c | 5811 struct iw_freq *fwrq, in airo_set_freq() argument 5818 if (fwrq->e == 1) { in airo_set_freq() 5819 int f = fwrq->m / 100000; in airo_set_freq() 5822 fwrq->e = 0; in airo_set_freq() 5823 fwrq->m = ieee80211_frequency_to_channel(f); in airo_set_freq() 5826 if (fwrq->m < 0 || fwrq->m > 1000 || fwrq->e > 0) in airo_set_freq() 5829 int channel = fwrq->m; in airo_set_freq() 5834 fwrq->m); in airo_set_freq() 5852 struct iw_freq *fwrq, in airo_get_freq() argument 5867 fwrq->m = 100000 * in airo_get_freq() [all …]
|
/Linux-v5.10/drivers/net/wireless/intel/ipw2x00/ |
D | ipw2100.c | 6604 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()
|
D | ipw2200.c | 8645 struct iw_freq *fwrq = &wrqu->freq; in ipw_wx_set_freq() local 8650 if (fwrq->m == 0) { in ipw_wx_set_freq() 8658 if (fwrq->e == 1) { in ipw_wx_set_freq() 8659 channel = libipw_freq_to_channel(priv->ieee, fwrq->m); in ipw_wx_set_freq() 8663 channel = fwrq->m; in ipw_wx_set_freq() 8681 IPW_DEBUG_WX("SET Freq/Channel -> %d\n", fwrq->m); in ipw_wx_set_freq()
|