• Home
  • Raw
  • Download

Lines Matching refs:chandef

98 				 struct cfg80211_chan_def *chandef, u16 bitmap)  in ieee80211_extract_dis_subch_bmap()  argument
101 struct cfg80211_chan_def ap_chandef = *chandef; in ieee80211_extract_dis_subch_bmap()
118 local_center_freq = chandef->center_freq1; in ieee80211_extract_dis_subch_bmap()
119 local_bw = 20 * BIT(ieee80211_chan_width_to_rx_bw(chandef->width)); in ieee80211_extract_dis_subch_bmap()
136 struct cfg80211_chan_def *chandef = &link->conf->chandef; in ieee80211_handle_puncturing_bitmap() local
143 while (chandef->width > NL80211_CHAN_WIDTH_40) { in ieee80211_handle_puncturing_bitmap()
145 ieee80211_extract_dis_subch_bmap(eht_oper, chandef, in ieee80211_handle_puncturing_bitmap()
149 chandef)) in ieee80211_handle_puncturing_bitmap()
152 ieee80211_chandef_downgrade(chandef); in ieee80211_handle_puncturing_bitmap()
156 if (chandef->width <= NL80211_CHAN_WIDTH_40) in ieee80211_handle_puncturing_bitmap()
231 struct cfg80211_chan_def *chandef, bool tracking) in ieee80211_determine_chantype() argument
238 memset(chandef, 0, sizeof(struct cfg80211_chan_def)); in ieee80211_determine_chantype()
239 chandef->chan = channel; in ieee80211_determine_chantype()
240 chandef->width = NL80211_CHAN_WIDTH_20_NOHT; in ieee80211_determine_chantype()
241 chandef->center_freq1 = channel->center_freq; in ieee80211_determine_chantype()
242 chandef->freq1_offset = channel->freq_offset; in ieee80211_determine_chantype()
246 chandef)) { in ieee80211_determine_chantype()
256 vht_chandef = *chandef; in ieee80211_determine_chantype()
259 if (!ieee80211_chandef_s1g_oper(s1g_oper, chandef)) { in ieee80211_determine_chantype()
262 chandef->width = ieee80211_s1g_channel_width(channel); in ieee80211_determine_chantype()
284 chandef->width = NL80211_CHAN_WIDTH_20; in ieee80211_determine_chantype()
310 ieee80211_chandef_ht_oper(ht_oper, chandef); in ieee80211_determine_chantype()
326 vht_chandef = *chandef; in ieee80211_determine_chantype()
368 if (cfg80211_chandef_identical(chandef, &vht_chandef)) { in ieee80211_determine_chantype()
373 if (!cfg80211_chandef_compatible(chandef, &vht_chandef)) { in ieee80211_determine_chantype()
381 *chandef = vht_chandef; in ieee80211_determine_chantype()
389 struct cfg80211_chan_def eht_chandef = *chandef; in ieee80211_determine_chantype()
404 if (!cfg80211_chandef_compatible(chandef, &eht_chandef)) { in ieee80211_determine_chantype()
412 *chandef = eht_chandef; in ieee80211_determine_chantype()
437 cfg80211_chandef_identical(chandef, &link->conf->chandef)) in ieee80211_determine_chantype()
442 vht_chandef = *chandef; in ieee80211_determine_chantype()
452 while (!cfg80211_chandef_usable(sdata->local->hw.wiphy, chandef, in ieee80211_determine_chantype()
455 if (WARN_ON(chandef->width == NL80211_CHAN_WIDTH_20_NOHT)) { in ieee80211_determine_chantype()
463 ret |= ieee80211_chandef_downgrade(chandef); in ieee80211_determine_chantype()
466 if (!he_oper || !cfg80211_chandef_usable(sdata->wdev.wiphy, chandef, in ieee80211_determine_chantype()
470 if (!eht_oper || !cfg80211_chandef_usable(sdata->wdev.wiphy, chandef, in ieee80211_determine_chantype()
474 if (chandef->width != vht_chandef.width && !tracking) in ieee80211_determine_chantype()
478 WARN_ON_ONCE(!cfg80211_chandef_valid(chandef)); in ieee80211_determine_chantype()
495 struct ieee80211_channel *chan = link->conf->chandef.chan; in ieee80211_config_bw()
498 struct cfg80211_chan_def chandef; in ieee80211_config_bw() local
543 s1g_oper, &chandef, true); in ieee80211_config_bw()
553 chandef.width == NL80211_CHAN_WIDTH_80P80) in ieee80211_config_bw()
554 flags |= ieee80211_chandef_downgrade(&chandef); in ieee80211_config_bw()
556 chandef.width == NL80211_CHAN_WIDTH_160) in ieee80211_config_bw()
557 flags |= ieee80211_chandef_downgrade(&chandef); in ieee80211_config_bw()
559 chandef.width > NL80211_CHAN_WIDTH_20) in ieee80211_config_bw()
560 flags |= ieee80211_chandef_downgrade(&chandef); in ieee80211_config_bw()
562 if (cfg80211_chandef_identical(&chandef, &link->conf->chandef)) in ieee80211_config_bw()
567 link->u.mgd.bssid, chandef.chan->center_freq, in ieee80211_config_bw()
568 chandef.chan->freq_offset, chandef.width, in ieee80211_config_bw()
569 chandef.center_freq1, chandef.freq1_offset, in ieee80211_config_bw()
570 chandef.center_freq2); in ieee80211_config_bw()
581 !cfg80211_chandef_valid(&chandef)) { in ieee80211_config_bw()
588 ret = ieee80211_link_change_bandwidth(link, &chandef, changed); in ieee80211_config_bw()
1089 struct cfg80211_chan_def chandef = { in ieee80211_assoc_link_elems() local
1099 *pos++ = ieee80211_chandef_max_power(&chandef); in ieee80211_assoc_link_elems()
1731 if (!cfg80211_chandef_identical(&link->conf->chandef, in ieee80211_chswitch_work()
1872 ch_switch.chandef = csa_ie.chandef; in ieee80211_sta_process_chanswitch()
1892 if (link->conf->chandef.chan->band != in ieee80211_sta_process_chanswitch()
1893 csa_ie.chandef.chan->band) { in ieee80211_sta_process_chanswitch()
1897 csa_ie.chandef.chan->center_freq, in ieee80211_sta_process_chanswitch()
1898 csa_ie.chandef.width, csa_ie.chandef.center_freq1, in ieee80211_sta_process_chanswitch()
1899 csa_ie.chandef.center_freq2); in ieee80211_sta_process_chanswitch()
1903 if (!cfg80211_chandef_usable(local->hw.wiphy, &csa_ie.chandef, in ieee80211_sta_process_chanswitch()
1910 csa_ie.chandef.chan->center_freq, in ieee80211_sta_process_chanswitch()
1911 csa_ie.chandef.chan->freq_offset, in ieee80211_sta_process_chanswitch()
1912 csa_ie.chandef.width, csa_ie.chandef.center_freq1, in ieee80211_sta_process_chanswitch()
1913 csa_ie.chandef.freq1_offset, in ieee80211_sta_process_chanswitch()
1914 csa_ie.chandef.center_freq2); in ieee80211_sta_process_chanswitch()
1918 if (cfg80211_chandef_identical(&csa_ie.chandef, in ieee80211_sta_process_chanswitch()
1919 &link->conf->chandef) && in ieee80211_sta_process_chanswitch()
1963 res = ieee80211_link_reserve_chanctx(link, &csa_ie.chandef, in ieee80211_sta_process_chanswitch()
1974 link->csa_chandef = csa_ie.chandef; in ieee80211_sta_process_chanswitch()
1984 cfg80211_ch_switch_started_notify(sdata->dev, &csa_ie.chandef, in ieee80211_sta_process_chanswitch()
2410 struct cfg80211_chan_def chandef = link->conf->chandef; in ieee80211_dfs_cac_timer_work() local
2416 cfg80211_cac_event(sdata->dev, &chandef, in ieee80211_dfs_cac_timer_work()
4186 if (WARN_ON(!link->conf->chandef.chan)) { in ieee80211_assoc_config_link()
4190 sband = local->hw.wiphy->bands[link->conf->chandef.chan->band]; in ieee80211_assoc_config_link()
4831 struct cfg80211_chan_def chandef; in ieee80211_prep_channel() local
5023 &chandef, false); in ieee80211_prep_channel()
5052 ret = ieee80211_link_use_channel(link, &chandef, in ieee80211_prep_channel()
5056 if (chandef.width == NL80211_CHAN_WIDTH_5 || in ieee80211_prep_channel()
5057 chandef.width == NL80211_CHAN_WIDTH_10) in ieee80211_prep_channel()
5060 while (ret && chandef.width != NL80211_CHAN_WIDTH_20_NOHT) { in ieee80211_prep_channel()
5062 ieee80211_chandef_downgrade(&chandef); in ieee80211_prep_channel()
5063 ret = ieee80211_link_use_channel(link, &chandef, in ieee80211_prep_channel()
5716 &link->conf->chandef, in ieee80211_config_puncturing()
5725 &link->conf->chandef)) { in ieee80211_config_puncturing()
5730 link->conf->chandef.width); in ieee80211_config_puncturing()
6183 if (WARN_ON(!link->conf->chandef.chan)) in ieee80211_rx_mgmt_beacon()
6186 sband = local->hw.wiphy->bands[link->conf->chandef.chan->band]; in ieee80211_rx_mgmt_beacon()
7398 &link->conf->chandef)) in ieee80211_setup_assoc_link()