Lines Matching refs:freq

196 				range->freq[c].i =  in cfg80211_wext_giwrange()
199 range->freq[c].m = chan->center_freq; in cfg80211_wext_giwrange()
200 range->freq[c].e = 6; in cfg80211_wext_giwrange()
225 int cfg80211_wext_freq(struct iw_freq *freq) in cfg80211_wext_freq() argument
231 if (freq->e == 0) { in cfg80211_wext_freq()
233 if (freq->m < 0) in cfg80211_wext_freq()
235 if (freq->m > 14) in cfg80211_wext_freq()
237 return ieee80211_channel_to_frequency(freq->m, band); in cfg80211_wext_freq()
240 for (i = 0; i < freq->e; i++) in cfg80211_wext_freq()
244 return freq->m / div; in cfg80211_wext_freq()
767 struct iw_freq *wextfreq = &wrqu->freq; in cfg80211_wext_siwfreq()
773 int freq; in cfg80211_wext_siwfreq() local
783 freq = cfg80211_wext_freq(wextfreq); in cfg80211_wext_siwfreq()
784 if (freq < 0) in cfg80211_wext_siwfreq()
785 return freq; in cfg80211_wext_siwfreq()
786 if (freq == 0) in cfg80211_wext_siwfreq()
789 chandef.center_freq1 = freq; in cfg80211_wext_siwfreq()
790 chandef.chan = ieee80211_get_channel(&rdev->wiphy, freq); in cfg80211_wext_siwfreq()
795 freq = cfg80211_wext_freq(wextfreq); in cfg80211_wext_siwfreq()
796 if (freq < 0) in cfg80211_wext_siwfreq()
797 return freq; in cfg80211_wext_siwfreq()
798 if (freq == 0) in cfg80211_wext_siwfreq()
800 chandef.center_freq1 = freq; in cfg80211_wext_siwfreq()
801 chandef.chan = ieee80211_get_channel(&rdev->wiphy, freq); in cfg80211_wext_siwfreq()
814 struct iw_freq *freq = &wrqu->freq; in cfg80211_wext_giwfreq() local
824 return cfg80211_mgd_wext_giwfreq(dev, info, freq, extra); in cfg80211_wext_giwfreq()
826 return cfg80211_ibss_wext_giwfreq(dev, info, freq, extra); in cfg80211_wext_giwfreq()
834 freq->m = chandef.chan->center_freq; in cfg80211_wext_giwfreq()
835 freq->e = 6; in cfg80211_wext_giwfreq()