Lines Matching refs:freq
230 range->freq[c].i = in cfg80211_wext_giwrange()
233 range->freq[c].m = chan->center_freq; in cfg80211_wext_giwrange()
234 range->freq[c].e = 6; in cfg80211_wext_giwrange()
261 int cfg80211_wext_freq(struct iw_freq *freq) in cfg80211_wext_freq() argument
267 if (freq->e == 0) { in cfg80211_wext_freq()
269 if (freq->m < 0) in cfg80211_wext_freq()
271 if (freq->m > 14) in cfg80211_wext_freq()
273 return ieee80211_channel_to_frequency(freq->m, band); in cfg80211_wext_freq()
276 for (i = 0; i < freq->e; i++) in cfg80211_wext_freq()
280 return freq->m / div; in cfg80211_wext_freq()
784 int freq; in cfg80211_wext_siwfreq() local
792 freq = cfg80211_wext_freq(wextfreq); in cfg80211_wext_siwfreq()
793 if (freq < 0) in cfg80211_wext_siwfreq()
794 return freq; in cfg80211_wext_siwfreq()
795 if (freq == 0) in cfg80211_wext_siwfreq()
797 chandef.center_freq1 = freq; in cfg80211_wext_siwfreq()
798 chandef.chan = ieee80211_get_channel(&rdev->wiphy, freq); in cfg80211_wext_siwfreq()
803 freq = cfg80211_wext_freq(wextfreq); in cfg80211_wext_siwfreq()
804 if (freq < 0) in cfg80211_wext_siwfreq()
805 return freq; in cfg80211_wext_siwfreq()
806 if (freq == 0) in cfg80211_wext_siwfreq()
808 chandef.center_freq1 = freq; in cfg80211_wext_siwfreq()
809 chandef.chan = ieee80211_get_channel(&rdev->wiphy, freq); in cfg80211_wext_siwfreq()
820 struct iw_freq *freq, char *extra) in cfg80211_wext_giwfreq() argument
829 return cfg80211_mgd_wext_giwfreq(dev, info, freq, extra); in cfg80211_wext_giwfreq()
831 return cfg80211_ibss_wext_giwfreq(dev, info, freq, extra); in cfg80211_wext_giwfreq()
839 freq->m = chandef.chan->center_freq; in cfg80211_wext_giwfreq()
840 freq->e = 6; in cfg80211_wext_giwfreq()