Lines Matching refs:chanreq
974 struct ieee80211_chan_req *chanreq, in ieee80211_set_chanreq_ap() argument
978 chanreq->ap.chan = NULL; in ieee80211_set_chanreq_ap()
985 chanreq->ap = *ap_chandef; in ieee80211_set_chanreq_ap()
992 struct ieee80211_chan_req *chanreq, in ieee80211_determine_chan_mode() argument
1091 chanreq->oper = *ap_chandef; in ieee80211_determine_chan_mode()
1116 ieee80211_set_chanreq_ap(sdata, chanreq, conn, ap_chandef); in ieee80211_determine_chan_mode()
1118 while (!ieee80211_chandef_usable(sdata, &chanreq->oper, in ieee80211_determine_chan_mode()
1120 if (WARN_ON(chanreq->oper.width == NL80211_CHAN_WIDTH_20_NOHT)) { in ieee80211_determine_chan_mode()
1125 ieee80211_chanreq_downgrade(chanreq, conn); in ieee80211_determine_chan_mode()
1129 !cfg80211_chandef_usable(sdata->wdev.wiphy, &chanreq->oper, in ieee80211_determine_chan_mode()
1138 !cfg80211_chandef_usable(sdata->wdev.wiphy, &chanreq->oper, in ieee80211_determine_chan_mode()
1146 if (chanreq->oper.width != ap_chandef->width || ap_mode != conn->mode) in ieee80211_determine_chan_mode()
1203 if (WARN_ON_ONCE(!cfg80211_chandef_valid(&chanreq->oper))) { in ieee80211_determine_chan_mode()
1219 struct ieee80211_channel *channel = link->conf->chanreq.oper.chan; in ieee80211_config_bw()
1221 struct ieee80211_chan_req chanreq = {}; in ieee80211_config_bw() local
1268 chanreq.oper = ap_chandef; in ieee80211_config_bw()
1269 ieee80211_set_chanreq_ap(sdata, &chanreq, &link->u.mgd.conn, in ieee80211_config_bw()
1292 ieee80211_min_bw_limit_from_chandef(&chanreq.oper)) in ieee80211_config_bw()
1293 ieee80211_chandef_downgrade(&chanreq.oper, NULL); in ieee80211_config_bw()
1300 &chanreq.oper); in ieee80211_config_bw()
1307 if (ieee80211_chanreq_identical(&chanreq, &link->conf->chanreq)) in ieee80211_config_bw()
1312 link->u.mgd.bssid, frame, chanreq.oper.chan->center_freq, in ieee80211_config_bw()
1313 chanreq.oper.chan->freq_offset, chanreq.oper.width, in ieee80211_config_bw()
1314 chanreq.oper.center_freq1, chanreq.oper.freq1_offset, in ieee80211_config_bw()
1315 chanreq.oper.center_freq2); in ieee80211_config_bw()
1317 if (!cfg80211_chandef_valid(&chanreq.oper)) { in ieee80211_config_bw()
1325 link->conf->chanreq = chanreq; in ieee80211_config_bw()
1346 ret = ieee80211_link_change_chanreq(link, &chanreq, changed); in ieee80211_config_bw()
2436 link->conf->chanreq = link->csa.chanreq; in ieee80211_csa_switch_work()
2437 cfg80211_ch_switch_notify(sdata->dev, &link->csa.chanreq.oper, in ieee80211_csa_switch_work()
2452 &link->csa.chanreq.oper); in ieee80211_csa_switch_work()
2483 if (!ieee80211_chanreq_identical(&link->conf->chanreq, in ieee80211_csa_switch_work()
2484 &link->csa.chanreq)) { in ieee80211_csa_switch_work()
2499 &link->conf->chanreq.oper); in ieee80211_csa_switch_work()
2552 cfg80211_ch_switch_notify(sdata->dev, &link->conf->chanreq.oper, in ieee80211_chswitch_post_beacon()
2710 if (data.chan != link->csa.chanreq.oper.chan) in ieee80211_sta_other_link_csa_disappeared()
2764 ch_switch.chandef = csa_ie.chanreq.oper; in ieee80211_sta_process_chanswitch()
2869 if (link->conf->chanreq.oper.chan->band != in ieee80211_sta_process_chanswitch()
2870 csa_ie.chanreq.oper.chan->band) { in ieee80211_sta_process_chanswitch()
2874 csa_ie.chanreq.oper.chan->center_freq, in ieee80211_sta_process_chanswitch()
2875 csa_ie.chanreq.oper.width, in ieee80211_sta_process_chanswitch()
2876 csa_ie.chanreq.oper.center_freq1, in ieee80211_sta_process_chanswitch()
2877 csa_ie.chanreq.oper.center_freq2); in ieee80211_sta_process_chanswitch()
2881 if (!cfg80211_chandef_usable(local->hw.wiphy, &csa_ie.chanreq.oper, in ieee80211_sta_process_chanswitch()
2886 csa_ie.chanreq.oper.chan->center_freq, in ieee80211_sta_process_chanswitch()
2887 csa_ie.chanreq.oper.chan->freq_offset, in ieee80211_sta_process_chanswitch()
2888 csa_ie.chanreq.oper.width, in ieee80211_sta_process_chanswitch()
2889 csa_ie.chanreq.oper.center_freq1, in ieee80211_sta_process_chanswitch()
2890 csa_ie.chanreq.oper.freq1_offset, in ieee80211_sta_process_chanswitch()
2891 csa_ie.chanreq.oper.center_freq2); in ieee80211_sta_process_chanswitch()
2895 if (cfg80211_chandef_identical(&csa_ie.chanreq.oper, in ieee80211_sta_process_chanswitch()
2896 &link->conf->chanreq.oper) && in ieee80211_sta_process_chanswitch()
2939 link->u.mgd.csa.ap_chandef = csa_ie.chanreq.ap; in ieee80211_sta_process_chanswitch()
2941 link->csa.chanreq.oper = csa_ie.chanreq.oper; in ieee80211_sta_process_chanswitch()
2942 ieee80211_set_chanreq_ap(sdata, &link->csa.chanreq, &link->u.mgd.conn, in ieee80211_sta_process_chanswitch()
2943 &csa_ie.chanreq.ap); in ieee80211_sta_process_chanswitch()
2946 res = ieee80211_link_reserve_chanctx(link, &link->csa.chanreq, in ieee80211_sta_process_chanswitch()
2964 cfg80211_ch_switch_started_notify(sdata->dev, &csa_ie.chanreq.oper, in ieee80211_sta_process_chanswitch()
3479 struct cfg80211_chan_def chandef = link->conf->chanreq.oper; in ieee80211_dfs_cac_timer_work()
5387 if (WARN_ON(!link->conf->chanreq.oper.chan)) { in ieee80211_assoc_config_link()
5391 sband = local->hw.wiphy->bands[link->conf->chanreq.oper.chan->band]; in ieee80211_assoc_config_link()
6034 struct ieee80211_chan_req chanreq = {}; in ieee80211_prep_channel() local
6043 &chanreq, &ap_chandef, in ieee80211_prep_channel()
6075 &chanreq.oper); in ieee80211_prep_channel()
6095 ret = ieee80211_link_use_channel(link, &chanreq, in ieee80211_prep_channel()
6099 if (chanreq.oper.width == NL80211_CHAN_WIDTH_5 || in ieee80211_prep_channel()
6100 chanreq.oper.width == NL80211_CHAN_WIDTH_10) in ieee80211_prep_channel()
6103 while (ret && chanreq.oper.width != NL80211_CHAN_WIDTH_20_NOHT) { in ieee80211_prep_channel()
6104 ieee80211_chanreq_downgrade(&chanreq, conn); in ieee80211_prep_channel()
6106 ret = ieee80211_link_use_channel(link, &chanreq, in ieee80211_prep_channel()
7570 if (WARN_ON(!bss_conf->chanreq.oper.chan)) in ieee80211_rx_mgmt_beacon()
7573 sband = local->hw.wiphy->bands[bss_conf->chanreq.oper.chan->band]; in ieee80211_rx_mgmt_beacon()