Lines Matching refs:freq
197 range->freq[c].i = in cfg80211_wext_giwrange()
200 range->freq[c].m = chan->center_freq; in cfg80211_wext_giwrange()
201 range->freq[c].e = 6; in cfg80211_wext_giwrange()
228 int cfg80211_wext_freq(struct iw_freq *freq) in cfg80211_wext_freq() argument
234 if (freq->e == 0) { in cfg80211_wext_freq()
236 if (freq->m < 0) in cfg80211_wext_freq()
238 if (freq->m > 14) in cfg80211_wext_freq()
240 return ieee80211_channel_to_frequency(freq->m, band); in cfg80211_wext_freq()
243 for (i = 0; i < freq->e; i++) in cfg80211_wext_freq()
247 return freq->m / div; in cfg80211_wext_freq()
761 int freq; in cfg80211_wext_siwfreq() local
769 freq = cfg80211_wext_freq(wextfreq); in cfg80211_wext_siwfreq()
770 if (freq < 0) in cfg80211_wext_siwfreq()
771 return freq; in cfg80211_wext_siwfreq()
772 if (freq == 0) in cfg80211_wext_siwfreq()
774 chandef.center_freq1 = freq; in cfg80211_wext_siwfreq()
775 chandef.chan = ieee80211_get_channel(&rdev->wiphy, freq); in cfg80211_wext_siwfreq()
780 freq = cfg80211_wext_freq(wextfreq); in cfg80211_wext_siwfreq()
781 if (freq < 0) in cfg80211_wext_siwfreq()
782 return freq; in cfg80211_wext_siwfreq()
783 if (freq == 0) in cfg80211_wext_siwfreq()
785 chandef.center_freq1 = freq; in cfg80211_wext_siwfreq()
786 chandef.chan = ieee80211_get_channel(&rdev->wiphy, freq); in cfg80211_wext_siwfreq()
797 struct iw_freq *freq, char *extra) in cfg80211_wext_giwfreq() argument
806 return cfg80211_mgd_wext_giwfreq(dev, info, freq, extra); in cfg80211_wext_giwfreq()
808 return cfg80211_ibss_wext_giwfreq(dev, info, freq, extra); in cfg80211_wext_giwfreq()
816 freq->m = chandef.chan->center_freq; in cfg80211_wext_giwfreq()
817 freq->e = 6; in cfg80211_wext_giwfreq()