Lines Matching refs:chandef

123 			compat = &link_conf->chandef;  in ieee80211_chanctx_non_reserved_chandef()
126 &link_conf->chandef, compat); in ieee80211_chanctx_non_reserved_chandef()
171 const struct cfg80211_chan_def *chandef, in ieee80211_find_reservation_chanctx() argument
189 chandef)) in ieee80211_find_reservation_chanctx()
290 width = max(link_conf->chandef.width, in ieee80211_get_chanctx_vif_max_required_bw()
299 width = link_conf->chandef.width; in ieee80211_get_chanctx_vif_max_required_bw()
470 const struct cfg80211_chan_def *chandef) in ieee80211_change_chanctx() argument
475 switch (chandef->width) { in ieee80211_change_chanctx()
494 if (cfg80211_chandef_identical(&ctx->conf.def, chandef)) { in ieee80211_change_chanctx()
499 WARN_ON(!cfg80211_chandef_compatible(&ctx->conf.def, chandef)); in ieee80211_change_chanctx()
501 ctx->conf.def = *chandef; in ieee80211_change_chanctx()
509 local->_oper_chandef = *chandef; in ieee80211_change_chanctx()
519 const struct cfg80211_chan_def *chandef, in ieee80211_find_chanctx() argument
538 compat = cfg80211_chandef_compatible(&ctx->conf.def, chandef); in ieee80211_find_chanctx()
623 const struct cfg80211_chan_def *chandef, in ieee80211_alloc_chanctx() argument
636 ctx->conf.def = *chandef; in ieee80211_alloc_chanctx()
679 const struct cfg80211_chan_def *chandef, in ieee80211_new_chanctx() argument
688 ctx = ieee80211_alloc_chanctx(local, chandef, mode); in ieee80211_new_chanctx()
708 struct cfg80211_chan_def *chandef = &local->_oper_chandef; in ieee80211_del_chanctx() local
712 if (chandef->chan->band == NL80211_BAND_S1GHZ) in ieee80211_del_chanctx()
713 chandef->width = in ieee80211_del_chanctx()
714 ieee80211_s1g_channel_width(chandef->chan); in ieee80211_del_chanctx()
716 chandef->width = NL80211_CHAN_WIDTH_20_NOHT; in ieee80211_del_chanctx()
717 chandef->center_freq1 = chandef->chan->center_freq; in ieee80211_del_chanctx()
718 chandef->freq1_offset = chandef->chan->freq_offset; in ieee80211_del_chanctx()
719 chandef->center_freq2 = 0; in ieee80211_del_chanctx()
780 compat = &link_conf->chandef; in ieee80211_recalc_chanctx_chantype()
782 compat = cfg80211_chandef_compatible(&link_conf->chandef, in ieee80211_recalc_chanctx_chantype()
1079 const struct cfg80211_chan_def *chandef, in ieee80211_link_reserve_chanctx() argument
1093 new_ctx = ieee80211_find_reservation_chanctx(local, chandef, mode); in ieee80211_link_reserve_chanctx()
1096 new_ctx = ieee80211_new_chanctx(local, chandef, mode); in ieee80211_link_reserve_chanctx()
1150 new_ctx = ieee80211_alloc_chanctx(local, chandef, mode); in ieee80211_link_reserve_chanctx()
1168 link->reserved_chandef = *chandef; in ieee80211_link_reserve_chanctx()
1208 const struct cfg80211_chan_def *chandef) in ieee80211_link_update_chandef() argument
1214 link->conf->chandef = *chandef; in ieee80211_link_update_chandef()
1227 vlan_conf->chandef = *chandef; in ieee80211_link_update_chandef()
1240 const struct cfg80211_chan_def *chandef; in ieee80211_link_use_reserved_reassign() local
1263 chandef = ieee80211_chanctx_non_reserved_chandef(local, new_ctx, in ieee80211_link_use_reserved_reassign()
1265 if (WARN_ON(!chandef)) in ieee80211_link_use_reserved_reassign()
1268 if (link_conf->chandef.width != link->reserved_chandef.width) in ieee80211_link_use_reserved_reassign()
1273 ieee80211_change_chanctx(local, new_ctx, old_ctx, chandef); in ieee80211_link_use_reserved_reassign()
1321 const struct cfg80211_chan_def *chandef; in ieee80211_link_use_reserved_assign() local
1340 chandef = ieee80211_chanctx_non_reserved_chandef(local, new_ctx, in ieee80211_link_use_reserved_assign()
1342 if (WARN_ON(!chandef)) in ieee80211_link_use_reserved_assign()
1345 ieee80211_change_chanctx(local, new_ctx, new_ctx, chandef); in ieee80211_link_use_reserved_assign()
1392 const struct cfg80211_chan_def *chandef; in ieee80211_chsw_switch_hwconf() local
1397 chandef = ieee80211_chanctx_reserved_chandef(local, new_ctx, NULL); in ieee80211_chsw_switch_hwconf()
1398 if (WARN_ON(!chandef)) in ieee80211_chsw_switch_hwconf()
1402 local->_oper_chandef = *chandef; in ieee80211_chsw_switch_hwconf()
1653 if (link_conf->chandef.width != link->reserved_chandef.width) in ieee80211_vif_use_reserved_switch()
1791 const struct cfg80211_chan_def *chandef, in ieee80211_link_use_channel() argument
1804 ieee80211_link_update_chandef(link, chandef); in ieee80211_link_use_channel()
1811 chandef, in ieee80211_link_use_channel()
1816 radar_detect_width = BIT(chandef->width); in ieee80211_link_use_channel()
1820 ret = ieee80211_check_combinations(sdata, chandef, mode, in ieee80211_link_use_channel()
1827 ctx = ieee80211_find_chanctx(local, chandef, mode); in ieee80211_link_use_channel()
1829 ctx = ieee80211_new_chanctx(local, chandef, mode); in ieee80211_link_use_channel()
1835 ieee80211_link_update_chandef(link, chandef); in ieee80211_link_use_channel()
1918 const struct cfg80211_chan_def *chandef, in ieee80211_link_change_bandwidth() argument
1929 if (!cfg80211_chandef_usable(sdata->local->hw.wiphy, chandef, in ieee80211_link_change_bandwidth()
1934 if (cfg80211_chandef_identical(chandef, &link_conf->chandef)) { in ieee80211_link_change_bandwidth()
1939 if (chandef->width == NL80211_CHAN_WIDTH_20_NOHT || in ieee80211_link_change_bandwidth()
1940 link_conf->chandef.width == NL80211_CHAN_WIDTH_20_NOHT) { in ieee80211_link_change_bandwidth()
1954 compat = cfg80211_chandef_compatible(&conf->def, chandef); in ieee80211_link_change_bandwidth()
1980 ieee80211_link_update_chandef(link, chandef); in ieee80211_link_change_bandwidth()