Lines Matching defs:chandef

1197 				       struct cfg80211_chan_def *chandef,
1213 rate_flags = ieee80211_chandef_rate_flags(chandef);
1246 if (chandef->chan && sband->band == NL80211_BAND_2GHZ) {
1252 ieee80211_frequency_to_channel(chandef->chan->center_freq));
1385 struct cfg80211_chan_def *chandef,
1400 chandef, flags);
1428 struct cfg80211_chan_def *chandef,
1442 bands_used, rate_masks, chandef,
1478 struct cfg80211_chan_def chandef;
1489 chandef.width = sdata->vif.bss_conf.chanreq.oper.width;
1491 chandef.chan = NULL;
1493 chandef.chan = chan;
1503 rate_masks, &chandef, flags);
2602 const struct cfg80211_chan_def *chandef,
2611 chandef->chan->center_freq);
2612 switch (chandef->width) {
2617 if (chandef->center_freq1 > chandef->chan->center_freq)
2631 chandef->width != NL80211_CHAN_WIDTH_20_NOHT &&
2632 chandef->width != NL80211_CHAN_WIDTH_20)
2650 const struct cfg80211_chan_def *chandef)
2655 switch (chandef->width) {
2674 *pos++ = ieee80211_frequency_to_channel(chandef->center_freq1);
2676 if (chandef->center_freq2)
2677 *pos++ = ieee80211_frequency_to_channel(chandef->center_freq2);
2683 const struct cfg80211_chan_def *chandef)
2691 chandef->center_freq1);
2692 if (chandef->center_freq2)
2694 ieee80211_frequency_to_channel(chandef->center_freq2);
2698 switch (chandef->width) {
2706 if (chandef->chan->center_freq < chandef->center_freq1)
2736 u8 *ieee80211_ie_build_he_oper(u8 *pos, struct cfg80211_chan_def *chandef)
2743 if (chandef->chan->band == NL80211_BAND_6GHZ)
2757 if (chandef->chan->band == NL80211_BAND_6GHZ)
2768 if (chandef->chan->band != NL80211_BAND_6GHZ)
2775 ieee80211_frequency_to_channel(chandef->chan->center_freq);
2777 ieee80211_frequency_to_channel(chandef->center_freq1);
2778 if (chandef->center_freq2)
2780 ieee80211_frequency_to_channel(chandef->center_freq2);
2784 switch (chandef->width) {
2799 if (chandef->chan->center_freq < chandef->center_freq1)
2828 u8 *ieee80211_ie_build_eht_oper(u8 *pos, struct cfg80211_chan_def *chandef,
2855 ieee80211_frequency_to_channel(chandef->center_freq1);
2856 if (chandef->center_freq2)
2858 ieee80211_frequency_to_channel(chandef->center_freq2);
2862 switch (chandef->width) {
2866 if (chandef->chan->center_freq < chandef->center_freq1)
2873 if (chandef->chan->center_freq < chandef->center_freq1)
2900 struct cfg80211_chan_def *chandef)
2921 cfg80211_chandef_create(chandef, chandef->chan, channel_type);
2928 struct cfg80211_chan_def *chandef)
2930 struct cfg80211_chan_def new = *chandef;
2945 vht_cap = hw->wiphy->bands[chandef->chan->band]->vht_cap.cap;
3003 cf0 = ieee80211_channel_to_frequency(ccf0, chandef->chan->band);
3004 cf1 = ieee80211_channel_to_frequency(ccf1, chandef->chan->band);
3045 *chandef = new;
3050 struct cfg80211_chan_def *chandef)
3052 chandef->center_freq1 =
3054 chandef->chan->band);
3059 chandef->width = NL80211_CHAN_WIDTH_20;
3062 chandef->width = NL80211_CHAN_WIDTH_40;
3065 chandef->width = NL80211_CHAN_WIDTH_80;
3068 chandef->width = NL80211_CHAN_WIDTH_160;
3069 chandef->center_freq1 =
3071 chandef->chan->band);
3074 chandef->width = NL80211_CHAN_WIDTH_320;
3075 chandef->center_freq1 =
3077 chandef->chan->band);
3085 struct cfg80211_chan_def *chandef)
3087 struct cfg80211_chan_def he_chandef = *chandef;
3091 if (chandef->chan->band != NL80211_BAND_6GHZ)
3159 *chandef = he_chandef;
3165 struct cfg80211_chan_def *chandef)
3174 chandef->width = NL80211_CHAN_WIDTH_1;
3177 chandef->width = NL80211_CHAN_WIDTH_2;
3180 chandef->width = NL80211_CHAN_WIDTH_4;
3183 chandef->width = NL80211_CHAN_WIDTH_8;
3186 chandef->width = NL80211_CHAN_WIDTH_16;
3194 chandef->center_freq1 = KHZ_TO_MHZ(oper_freq);
3195 chandef->freq1_offset = oper_freq % 1000;
3454 struct cfg80211_chan_def chandef;
3467 chandef = sdata->vif.bss_conf.chanreq.oper;
3470 &chandef,
3482 struct cfg80211_chan_def chandef = local->hw.conf.chandef;
3493 chandef = ctx->conf.def;
3502 cfg80211_radar_event(local->hw.wiphy, &chandef, GFP_KERNEL);
3670 freq = csa_settings->chandef.chan->center_freq;
3674 if (csa_settings->chandef.width == NL80211_CHAN_WIDTH_40) {
3680 ch_type = cfg80211_get_chandef_type(&csa_settings->chandef);
3704 if (csa_settings->chandef.width == NL80211_CHAN_WIDTH_80 ||
3705 csa_settings->chandef.width == NL80211_CHAN_WIDTH_80P80 ||
3706 csa_settings->chandef.width == NL80211_CHAN_WIDTH_160) {
3708 ieee80211_ie_build_wide_bw_cs(pos, &csa_settings->chandef);
3937 const struct cfg80211_chan_def *chandef,
3955 if (WARN_ON(chandef && chanmode == IEEE80211_CHANCTX_SHARED &&
3956 !chandef->chan))
3979 if (chandef)
3994 if (chandef && chanmode == IEEE80211_CHANCTX_SHARED &&
3995 cfg80211_chandef_compatible(chandef,
4321 ieee80211_min_bw_limit_from_chandef(struct cfg80211_chan_def *chandef)
4323 switch (chandef->width) {
4337 WARN(1, "unhandled chandef width %d\n", chandef->width);