/linux-2.6.39/drivers/staging/rtl8187se/ieee80211/ |
D | ieee80211_softmac_wx.c | 33 struct iw_freq *fwrq = & wrqu->freq; in ieee80211_wx_set_freq() local 43 if (fwrq->e == 1) { in ieee80211_wx_set_freq() 44 if ((fwrq->m >= (int) 2.412e8 && in ieee80211_wx_set_freq() 45 fwrq->m <= (int) 2.487e8)) { in ieee80211_wx_set_freq() 46 int f = fwrq->m / 100000; in ieee80211_wx_set_freq() 53 fwrq->e = 0; in ieee80211_wx_set_freq() 54 fwrq->m = c + 1; in ieee80211_wx_set_freq() 58 if (fwrq->e > 0 || fwrq->m > 14 || fwrq->m < 1 ){ in ieee80211_wx_set_freq() 65 ieee->current_network.channel = fwrq->m; in ieee80211_wx_set_freq() 87 struct iw_freq *fwrq = & wrqu->freq; in ieee80211_wx_get_freq() local [all …]
|
/linux-2.6.39/drivers/staging/rtl8192e/ieee80211/ |
D | ieee80211_softmac_wx.c | 35 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() 67 if (!(GET_DOT11D_INFO(ieee)->channel_map)[fwrq->m]) { in ieee80211_wx_set_freq() 72 ieee->current_network.channel = fwrq->m; in ieee80211_wx_set_freq() [all …]
|
/linux-2.6.39/drivers/staging/rtl8192u/ieee80211/ |
D | ieee80211_softmac_wx.c | 33 struct iw_freq *fwrq = & wrqu->freq; in ieee80211_wx_set_freq() local 43 if (fwrq->e == 1) { in ieee80211_wx_set_freq() 44 if ((fwrq->m >= (int) 2.412e8 && in ieee80211_wx_set_freq() 45 fwrq->m <= (int) 2.487e8)) { in ieee80211_wx_set_freq() 46 int f = fwrq->m / 100000; in ieee80211_wx_set_freq() 53 fwrq->e = 0; in ieee80211_wx_set_freq() 54 fwrq->m = c + 1; in ieee80211_wx_set_freq() 58 if (fwrq->e > 0 || fwrq->m > 14 || fwrq->m < 1 ){ in ieee80211_wx_set_freq() 64 if (!(GET_DOT11D_INFO(ieee)->channel_map)[fwrq->m]) { in ieee80211_wx_set_freq() 68 ieee->current_network.channel = fwrq->m; in ieee80211_wx_set_freq() [all …]
|
/linux-2.6.39/drivers/staging/brcm80211/brcmfmac/ |
D | wl_iw.c | 354 struct iw_request_info *info, struct iw_freq *fwrq, char *extra) in wl_iw_set_freq() argument 361 if (fwrq->e == 0 && fwrq->m < MAXCHANNEL) { in wl_iw_set_freq() 362 chan = fwrq->m; in wl_iw_set_freq() 364 if (fwrq->e >= 6) { in wl_iw_set_freq() 365 fwrq->e -= 6; in wl_iw_set_freq() 366 while (fwrq->e--) in wl_iw_set_freq() 367 fwrq->m *= 10; in wl_iw_set_freq() 368 } else if (fwrq->e < 6) { in wl_iw_set_freq() 369 while (fwrq->e++ < 6) in wl_iw_set_freq() 370 fwrq->m /= 10; in wl_iw_set_freq() [all …]
|
/linux-2.6.39/drivers/staging/rtl8712/ |
D | rtl871x_ioctl_linux.c | 695 struct iw_freq *fwrq = &wrqu->freq; in r8711_wx_set_freq() local 699 if ((fwrq->e == 1) && in r8711_wx_set_freq() 700 (fwrq->m >= (int) 2.412e8) && in r8711_wx_set_freq() 701 (fwrq->m <= (int) 2.487e8)) { in r8711_wx_set_freq() 702 int f = fwrq->m / 100000; in r8711_wx_set_freq() 706 fwrq->e = 0; in r8711_wx_set_freq() 707 fwrq->m = c + 1; in r8711_wx_set_freq() 710 if ((fwrq->m > 14) || (fwrq->e > 0)) in r8711_wx_set_freq() 713 int channel = fwrq->m; in r8711_wx_set_freq()
|
/linux-2.6.39/drivers/net/wireless/prism54/ |
D | isl_ioctl.c | 290 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-2.6.39/drivers/net/wireless/ |
D | atmel.c | 2273 struct iw_freq *fwrq, in atmel_set_freq() argument 2280 if (fwrq->e == 1) { in atmel_set_freq() 2281 int f = fwrq->m / 100000; in atmel_set_freq() 2284 fwrq->e = 0; in atmel_set_freq() 2285 fwrq->m = ieee80211_freq_to_dsss_chan(f); in atmel_set_freq() 2288 if ((fwrq->m > 1000) || (fwrq->e > 0)) in atmel_set_freq() 2291 int channel = fwrq->m; in atmel_set_freq() 2303 struct iw_freq *fwrq, in atmel_get_freq() argument 2308 fwrq->m = priv->channel; in atmel_get_freq() 2309 fwrq->e = 0; in atmel_get_freq()
|
D | airo.c | 5837 struct iw_freq *fwrq, in airo_set_freq() argument 5844 if(fwrq->e == 1) { in airo_set_freq() 5845 int f = fwrq->m / 100000; in airo_set_freq() 5848 fwrq->e = 0; in airo_set_freq() 5849 fwrq->m = ieee80211_freq_to_dsss_chan(f); in airo_set_freq() 5852 if((fwrq->m > 1000) || (fwrq->e > 0)) in airo_set_freq() 5855 int channel = fwrq->m; in airo_set_freq() 5860 fwrq->m); in airo_set_freq() 5878 struct iw_freq *fwrq, in airo_get_freq() argument 5893 fwrq->m = ieee80211_dsss_chan_to_freq(ch) * 100000; in airo_get_freq() [all …]
|
/linux-2.6.39/drivers/net/wireless/ipw2x00/ |
D | ipw2100.c | 6707 struct iw_freq *fwrq = &wrqu->freq; in ipw2100_wx_set_freq() local 6720 if (fwrq->e == 1) { in ipw2100_wx_set_freq() 6721 if ((fwrq->m >= (int)2.412e8 && fwrq->m <= (int)2.487e8)) { in ipw2100_wx_set_freq() 6722 int f = fwrq->m / 100000; in ipw2100_wx_set_freq() 6730 fwrq->e = 0; in ipw2100_wx_set_freq() 6731 fwrq->m = c + 1; in ipw2100_wx_set_freq() 6735 if (fwrq->e > 0 || fwrq->m > 1000) { in ipw2100_wx_set_freq() 6739 IPW_DEBUG_WX("SET Freq/Channel -> %d\n", fwrq->m); in ipw2100_wx_set_freq() 6740 err = ipw2100_set_channel(priv, fwrq->m, 0); in ipw2100_wx_set_freq()
|
D | ipw2200.c | 8748 struct iw_freq *fwrq = &wrqu->freq; in ipw_wx_set_freq() local 8753 if (fwrq->m == 0) { in ipw_wx_set_freq() 8761 if (fwrq->e == 1) { in ipw_wx_set_freq() 8762 channel = libipw_freq_to_channel(priv->ieee, fwrq->m); in ipw_wx_set_freq() 8766 channel = fwrq->m; in ipw_wx_set_freq() 8784 IPW_DEBUG_WX("SET Freq/Channel -> %d\n", fwrq->m); in ipw_wx_set_freq()
|