Lines Matching defs:chandef
2109 struct cfg80211_chan_def *chandef)
2119 chandef->chan = chan;
2139 chandef->center_freq1 = control_freq;
2140 chandef->width = NL80211_CHAN_WIDTH_20;
2147 chandef->center_freq1 = control_freq + 10;
2148 chandef->width = NL80211_CHAN_WIDTH_40;
2155 chandef->center_freq1 = control_freq - 10;
2156 chandef->width = NL80211_CHAN_WIDTH_40;
2159 chandef->center_freq1 = control_freq + 10 - (offset & 1) * 20;
2160 chandef->width = NL80211_CHAN_WIDTH_40;
2164 chandef->center_freq1 = control_freq + 30 - (offset & 3) * 20;
2165 chandef->width = NL80211_CHAN_WIDTH_80;
2169 chandef->center_freq1 = control_freq + 70 - (offset & 7) * 20;
2170 chandef->width = NL80211_CHAN_WIDTH_160;
2183 bool ieee80211_chandef_to_operating_class(struct cfg80211_chan_def *chandef,
2187 u32 freq = chandef->center_freq1;
2190 if (chandef->width > NL80211_CHAN_WIDTH_40)
2194 if (chandef->width == NL80211_CHAN_WIDTH_40) {
2195 if (freq > chandef->chan->center_freq)
2208 if (chandef->width != NL80211_CHAN_WIDTH_20_NOHT)
2215 switch (chandef->width) {
2237 } else if (chandef->width == NL80211_CHAN_WIDTH_40) {
2238 if (freq > chandef->chan->center_freq)
2253 } else if (chandef->width == NL80211_CHAN_WIDTH_40) {
2254 if (freq > chandef->chan->center_freq)
2269 } else if (chandef->width == NL80211_CHAN_WIDTH_40) {
2270 if (freq > chandef->chan->center_freq)
2285 } else if (chandef->width == NL80211_CHAN_WIDTH_40) {
2286 if (freq > chandef->chan->center_freq)
2301 if (chandef->width >= NL80211_CHAN_WIDTH_40)
2963 const struct cfg80211_chan_def *chandef)
2967 freq = ieee80211_chandef_to_khz(chandef);
2968 width = MHZ_TO_KHZ(cfg80211_chandef_get_width(chandef));
2972 freq = MHZ_TO_KHZ(chandef->center_freq2);
2985 struct cfg80211_chan_def chandef;
2993 cfg80211_chandef_create(&chandef, chan, NL80211_CHAN_HT20);
2999 if (!cfg80211_radio_chandef_valid(radio, &chandef))