Lines Matching refs:chandef
149 struct cfg80211_chan_def *chandef, bool tracking) in ieee80211_determine_chantype() argument
159 chandef->chan = channel; in ieee80211_determine_chantype()
160 chandef->width = NL80211_CHAN_WIDTH_20_NOHT; in ieee80211_determine_chantype()
161 chandef->center_freq1 = channel->center_freq; in ieee80211_determine_chantype()
162 chandef->center_freq2 = 0; in ieee80211_determine_chantype()
169 chandef->width = NL80211_CHAN_WIDTH_20; in ieee80211_determine_chantype()
174 vht_chandef = *chandef; in ieee80211_determine_chantype()
201 chandef->width = NL80211_CHAN_WIDTH_40; in ieee80211_determine_chantype()
202 chandef->center_freq1 += 10; in ieee80211_determine_chantype()
205 chandef->width = NL80211_CHAN_WIDTH_40; in ieee80211_determine_chantype()
206 chandef->center_freq1 -= 10; in ieee80211_determine_chantype()
230 vht_chandef.width = chandef->width; in ieee80211_determine_chantype()
231 vht_chandef.center_freq1 = chandef->center_freq1; in ieee80211_determine_chantype()
263 if (cfg80211_chandef_identical(chandef, &vht_chandef)) { in ieee80211_determine_chantype()
268 if (!cfg80211_chandef_compatible(chandef, &vht_chandef)) { in ieee80211_determine_chantype()
276 *chandef = vht_chandef; in ieee80211_determine_chantype()
300 cfg80211_chandef_identical(chandef, &sdata->vif.bss_conf.chandef)) in ieee80211_determine_chantype()
305 vht_chandef = *chandef; in ieee80211_determine_chantype()
315 while (!cfg80211_chandef_usable(sdata->local->hw.wiphy, chandef, in ieee80211_determine_chantype()
318 if (WARN_ON(chandef->width == NL80211_CHAN_WIDTH_20_NOHT)) { in ieee80211_determine_chantype()
324 ret |= ieee80211_chandef_downgrade(chandef); in ieee80211_determine_chantype()
327 if (chandef->width != vht_chandef.width && !tracking) in ieee80211_determine_chantype()
331 WARN_ON_ONCE(!cfg80211_chandef_valid(chandef)); in ieee80211_determine_chantype()
346 struct cfg80211_chan_def chandef; in ieee80211_config_bw() local
373 chan = sdata->vif.bss_conf.chandef.chan; in ieee80211_config_bw()
379 &chandef, true); in ieee80211_config_bw()
389 chandef.width == NL80211_CHAN_WIDTH_80P80) in ieee80211_config_bw()
390 flags |= ieee80211_chandef_downgrade(&chandef); in ieee80211_config_bw()
392 chandef.width == NL80211_CHAN_WIDTH_160) in ieee80211_config_bw()
393 flags |= ieee80211_chandef_downgrade(&chandef); in ieee80211_config_bw()
395 chandef.width > NL80211_CHAN_WIDTH_20) in ieee80211_config_bw()
396 flags |= ieee80211_chandef_downgrade(&chandef); in ieee80211_config_bw()
398 if (cfg80211_chandef_identical(&chandef, &sdata->vif.bss_conf.chandef)) in ieee80211_config_bw()
403 ifmgd->bssid, chandef.chan->center_freq, chandef.width, in ieee80211_config_bw()
404 chandef.center_freq1, chandef.center_freq2); in ieee80211_config_bw()
411 !cfg80211_chandef_valid(&chandef)) { in ieee80211_config_bw()
418 switch (chandef.width) { in ieee80211_config_bw()
446 ret = ieee80211_vif_change_bandwidth(sdata, &chandef, changed); in ieee80211_config_bw()
1045 if (!cfg80211_chandef_identical(&sdata->vif.bss_conf.chandef, in ieee80211_chswitch_work()
1163 if (!cfg80211_chandef_usable(local->hw.wiphy, &csa_ie.chandef, in ieee80211_sta_process_chanswitch()
1168 csa_ie.chandef.chan->center_freq, in ieee80211_sta_process_chanswitch()
1169 csa_ie.chandef.width, csa_ie.chandef.center_freq1, in ieee80211_sta_process_chanswitch()
1170 csa_ie.chandef.center_freq2); in ieee80211_sta_process_chanswitch()
1176 if (cfg80211_chandef_identical(&csa_ie.chandef, in ieee80211_sta_process_chanswitch()
1177 &sdata->vif.bss_conf.chandef)) { in ieee80211_sta_process_chanswitch()
1217 ch_switch.chandef = csa_ie.chandef; in ieee80211_sta_process_chanswitch()
1226 res = ieee80211_vif_reserve_chanctx(sdata, &csa_ie.chandef, in ieee80211_sta_process_chanswitch()
1237 sdata->csa_chandef = csa_ie.chandef; in ieee80211_sta_process_chanswitch()
1246 cfg80211_ch_switch_started_notify(sdata->dev, &csa_ie.chandef, in ieee80211_sta_process_chanswitch()
1646 struct cfg80211_chan_def chandef = sdata->vif.bss_conf.chandef; in ieee80211_dfs_cac_timer_work() local
1651 cfg80211_cac_event(sdata->dev, &chandef, in ieee80211_dfs_cac_timer_work()
4204 struct cfg80211_chan_def chandef; in ieee80211_prep_channel() local
4275 &chandef, false); in ieee80211_prep_channel()
4291 ret = ieee80211_vif_use_channel(sdata, &chandef, in ieee80211_prep_channel()
4295 if (chandef.width == NL80211_CHAN_WIDTH_5 || in ieee80211_prep_channel()
4296 chandef.width == NL80211_CHAN_WIDTH_10) in ieee80211_prep_channel()
4299 while (ret && chandef.width != NL80211_CHAN_WIDTH_20_NOHT) { in ieee80211_prep_channel()
4300 ifmgd->flags |= ieee80211_chandef_downgrade(&chandef); in ieee80211_prep_channel()
4301 ret = ieee80211_vif_use_channel(sdata, &chandef, in ieee80211_prep_channel()