Lines Matching defs:chandef
2084 struct cfg80211_chan_def *chandef)
2094 chandef->chan = chan;
2114 chandef->center_freq1 = control_freq;
2115 chandef->width = NL80211_CHAN_WIDTH_20;
2122 chandef->center_freq1 = control_freq + 10;
2123 chandef->width = NL80211_CHAN_WIDTH_40;
2130 chandef->center_freq1 = control_freq - 10;
2131 chandef->width = NL80211_CHAN_WIDTH_40;
2134 chandef->center_freq1 = control_freq + 10 - (offset & 1) * 20;
2135 chandef->width = NL80211_CHAN_WIDTH_40;
2139 chandef->center_freq1 = control_freq + 30 - (offset & 3) * 20;
2140 chandef->width = NL80211_CHAN_WIDTH_80;
2144 chandef->center_freq1 = control_freq + 70 - (offset & 7) * 20;
2145 chandef->width = NL80211_CHAN_WIDTH_160;
2158 bool ieee80211_chandef_to_operating_class(struct cfg80211_chan_def *chandef,
2162 u32 freq = chandef->center_freq1;
2165 if (chandef->width > NL80211_CHAN_WIDTH_40)
2169 if (chandef->width == NL80211_CHAN_WIDTH_40) {
2170 if (freq > chandef->chan->center_freq)
2183 if (chandef->width != NL80211_CHAN_WIDTH_20_NOHT)
2190 switch (chandef->width) {
2212 } else if (chandef->width == NL80211_CHAN_WIDTH_40) {
2213 if (freq > chandef->chan->center_freq)
2228 } else if (chandef->width == NL80211_CHAN_WIDTH_40) {
2229 if (freq > chandef->chan->center_freq)
2244 } else if (chandef->width == NL80211_CHAN_WIDTH_40) {
2245 if (freq > chandef->chan->center_freq)
2260 } else if (chandef->width == NL80211_CHAN_WIDTH_40) {
2261 if (freq > chandef->chan->center_freq)
2276 if (chandef->width >= NL80211_CHAN_WIDTH_40)