Lines Matching refs:chandef
156 struct cfg80211_chan_def *chandef, bool tracking) in ieee80211_determine_chantype() argument
166 chandef->chan = channel; in ieee80211_determine_chantype()
167 chandef->width = NL80211_CHAN_WIDTH_20_NOHT; in ieee80211_determine_chantype()
168 chandef->center_freq1 = channel->center_freq; in ieee80211_determine_chantype()
169 chandef->center_freq2 = 0; in ieee80211_determine_chantype()
176 chandef->width = NL80211_CHAN_WIDTH_20; in ieee80211_determine_chantype()
181 vht_chandef = *chandef; in ieee80211_determine_chantype()
208 chandef->width = NL80211_CHAN_WIDTH_40; in ieee80211_determine_chantype()
209 chandef->center_freq1 += 10; in ieee80211_determine_chantype()
212 chandef->width = NL80211_CHAN_WIDTH_40; in ieee80211_determine_chantype()
213 chandef->center_freq1 -= 10; in ieee80211_determine_chantype()
237 vht_chandef.width = chandef->width; in ieee80211_determine_chantype()
238 vht_chandef.center_freq1 = chandef->center_freq1; in ieee80211_determine_chantype()
270 if (cfg80211_chandef_identical(chandef, &vht_chandef)) { in ieee80211_determine_chantype()
275 if (!cfg80211_chandef_compatible(chandef, &vht_chandef)) { in ieee80211_determine_chantype()
283 *chandef = vht_chandef; in ieee80211_determine_chantype()
307 cfg80211_chandef_identical(chandef, &sdata->vif.bss_conf.chandef)) in ieee80211_determine_chantype()
312 vht_chandef = *chandef; in ieee80211_determine_chantype()
322 while (!cfg80211_chandef_usable(sdata->local->hw.wiphy, chandef, in ieee80211_determine_chantype()
325 if (WARN_ON(chandef->width == NL80211_CHAN_WIDTH_20_NOHT)) { in ieee80211_determine_chantype()
331 ret |= ieee80211_chandef_downgrade(chandef); in ieee80211_determine_chantype()
334 if (chandef->width != vht_chandef.width && !tracking) in ieee80211_determine_chantype()
338 WARN_ON_ONCE(!cfg80211_chandef_valid(chandef)); in ieee80211_determine_chantype()
353 struct cfg80211_chan_def chandef; in ieee80211_config_bw() local
380 chan = sdata->vif.bss_conf.chandef.chan; in ieee80211_config_bw()
386 &chandef, true); in ieee80211_config_bw()
396 chandef.width == NL80211_CHAN_WIDTH_80P80) in ieee80211_config_bw()
397 flags |= ieee80211_chandef_downgrade(&chandef); in ieee80211_config_bw()
399 chandef.width == NL80211_CHAN_WIDTH_160) in ieee80211_config_bw()
400 flags |= ieee80211_chandef_downgrade(&chandef); in ieee80211_config_bw()
402 chandef.width > NL80211_CHAN_WIDTH_20) in ieee80211_config_bw()
403 flags |= ieee80211_chandef_downgrade(&chandef); in ieee80211_config_bw()
405 if (cfg80211_chandef_identical(&chandef, &sdata->vif.bss_conf.chandef)) in ieee80211_config_bw()
410 ifmgd->bssid, chandef.chan->center_freq, chandef.width, in ieee80211_config_bw()
411 chandef.center_freq1, chandef.center_freq2); in ieee80211_config_bw()
418 !cfg80211_chandef_valid(&chandef)) { in ieee80211_config_bw()
425 switch (chandef.width) { in ieee80211_config_bw()
453 ret = ieee80211_vif_change_bandwidth(sdata, &chandef, changed); in ieee80211_config_bw()
1022 if (!cfg80211_chandef_identical(&sdata->vif.bss_conf.chandef, in ieee80211_chswitch_work()
1140 if (!cfg80211_chandef_usable(local->hw.wiphy, &csa_ie.chandef, in ieee80211_sta_process_chanswitch()
1145 csa_ie.chandef.chan->center_freq, in ieee80211_sta_process_chanswitch()
1146 csa_ie.chandef.width, csa_ie.chandef.center_freq1, in ieee80211_sta_process_chanswitch()
1147 csa_ie.chandef.center_freq2); in ieee80211_sta_process_chanswitch()
1153 if (cfg80211_chandef_identical(&csa_ie.chandef, in ieee80211_sta_process_chanswitch()
1154 &sdata->vif.bss_conf.chandef)) { in ieee80211_sta_process_chanswitch()
1186 ch_switch.chandef = csa_ie.chandef; in ieee80211_sta_process_chanswitch()
1195 res = ieee80211_vif_reserve_chanctx(sdata, &csa_ie.chandef, in ieee80211_sta_process_chanswitch()
1206 sdata->csa_chandef = csa_ie.chandef; in ieee80211_sta_process_chanswitch()
1215 cfg80211_ch_switch_started_notify(sdata->dev, &csa_ie.chandef, in ieee80211_sta_process_chanswitch()
1635 struct cfg80211_chan_def chandef = sdata->vif.bss_conf.chandef; in ieee80211_dfs_cac_timer_work() local
1640 cfg80211_cac_event(sdata->dev, &chandef, in ieee80211_dfs_cac_timer_work()
4218 struct cfg80211_chan_def chandef; in ieee80211_prep_channel() local
4273 &chandef, false); in ieee80211_prep_channel()
4289 ret = ieee80211_vif_use_channel(sdata, &chandef, in ieee80211_prep_channel()
4293 if (chandef.width == NL80211_CHAN_WIDTH_5 || in ieee80211_prep_channel()
4294 chandef.width == NL80211_CHAN_WIDTH_10) in ieee80211_prep_channel()
4297 while (ret && chandef.width != NL80211_CHAN_WIDTH_20_NOHT) { in ieee80211_prep_channel()
4298 ifmgd->flags |= ieee80211_chandef_downgrade(&chandef); in ieee80211_prep_channel()
4299 ret = ieee80211_vif_use_channel(sdata, &chandef, in ieee80211_prep_channel()