Lines Matching refs:chandef
118 compat = &sdata->vif.bss_conf.chandef; in ieee80211_chanctx_non_reserved_chandef()
121 &sdata->vif.bss_conf.chandef, compat); in ieee80211_chanctx_non_reserved_chandef()
166 const struct cfg80211_chan_def *chandef, in ieee80211_find_reservation_chanctx() argument
184 chandef)) in ieee80211_find_reservation_chanctx()
273 width = max(vif->bss_conf.chandef.width, in ieee80211_get_chanctx_max_required_bw()
282 width = vif->bss_conf.chandef.width; in ieee80211_get_chanctx_max_required_bw()
344 const struct cfg80211_chan_def *chandef) in ieee80211_change_chanctx() argument
346 if (cfg80211_chandef_identical(&ctx->conf.def, chandef)) in ieee80211_change_chanctx()
349 WARN_ON(!cfg80211_chandef_compatible(&ctx->conf.def, chandef)); in ieee80211_change_chanctx()
351 ctx->conf.def = *chandef; in ieee80211_change_chanctx()
356 local->_oper_chandef = *chandef; in ieee80211_change_chanctx()
363 const struct cfg80211_chan_def *chandef, in ieee80211_find_chanctx() argument
382 compat = cfg80211_chandef_compatible(&ctx->conf.def, chandef); in ieee80211_find_chanctx()
447 const struct cfg80211_chan_def *chandef, in ieee80211_alloc_chanctx() argument
460 ctx->conf.def = *chandef; in ieee80211_alloc_chanctx()
503 const struct cfg80211_chan_def *chandef, in ieee80211_new_chanctx() argument
512 ctx = ieee80211_alloc_chanctx(local, chandef, mode); in ieee80211_new_chanctx()
532 struct cfg80211_chan_def *chandef = &local->_oper_chandef; in ieee80211_del_chanctx() local
533 chandef->width = NL80211_CHAN_WIDTH_20_NOHT; in ieee80211_del_chanctx()
534 chandef->center_freq1 = chandef->chan->center_freq; in ieee80211_del_chanctx()
535 chandef->center_freq2 = 0; in ieee80211_del_chanctx()
586 compat = &sdata->vif.bss_conf.chandef; in ieee80211_recalc_chanctx_chantype()
589 &sdata->vif.bss_conf.chandef, compat); in ieee80211_recalc_chanctx_chantype()
864 const struct cfg80211_chan_def *chandef, in ieee80211_vif_reserve_chanctx() argument
877 new_ctx = ieee80211_find_reservation_chanctx(local, chandef, mode); in ieee80211_vif_reserve_chanctx()
880 new_ctx = ieee80211_new_chanctx(local, chandef, mode); in ieee80211_vif_reserve_chanctx()
934 new_ctx = ieee80211_alloc_chanctx(local, chandef, mode); in ieee80211_vif_reserve_chanctx()
952 sdata->reserved_chandef = *chandef; in ieee80211_vif_reserve_chanctx()
989 const struct cfg80211_chan_def *chandef) in ieee80211_vif_update_chandef() argument
993 sdata->vif.bss_conf.chandef = *chandef; in ieee80211_vif_update_chandef()
999 vlan->vif.bss_conf.chandef = *chandef; in ieee80211_vif_update_chandef()
1008 const struct cfg80211_chan_def *chandef; in ieee80211_vif_use_reserved_reassign() local
1031 chandef = ieee80211_chanctx_non_reserved_chandef(local, new_ctx, in ieee80211_vif_use_reserved_reassign()
1033 if (WARN_ON(!chandef)) in ieee80211_vif_use_reserved_reassign()
1036 ieee80211_change_chanctx(local, new_ctx, chandef); in ieee80211_vif_use_reserved_reassign()
1065 if (sdata->vif.bss_conf.chandef.width != sdata->reserved_chandef.width) in ieee80211_vif_use_reserved_reassign()
1087 const struct cfg80211_chan_def *chandef; in ieee80211_vif_use_reserved_assign() local
1106 chandef = ieee80211_chanctx_non_reserved_chandef(local, new_ctx, in ieee80211_vif_use_reserved_assign()
1108 if (WARN_ON(!chandef)) in ieee80211_vif_use_reserved_assign()
1111 ieee80211_change_chanctx(local, new_ctx, chandef); in ieee80211_vif_use_reserved_assign()
1157 const struct cfg80211_chan_def *chandef; in ieee80211_chsw_switch_hwconf() local
1162 chandef = ieee80211_chanctx_reserved_chandef(local, new_ctx, NULL); in ieee80211_chsw_switch_hwconf()
1163 if (WARN_ON(!chandef)) in ieee80211_chsw_switch_hwconf()
1167 local->_oper_chandef = *chandef; in ieee80211_chsw_switch_hwconf()
1414 if (sdata->vif.bss_conf.chandef.width != in ieee80211_vif_use_reserved_switch()
1552 const struct cfg80211_chan_def *chandef, in ieee80211_vif_use_channel() argument
1567 chandef, in ieee80211_vif_use_channel()
1572 radar_detect_width = BIT(chandef->width); in ieee80211_vif_use_channel()
1576 ret = ieee80211_check_combinations(sdata, chandef, mode, in ieee80211_vif_use_channel()
1583 ctx = ieee80211_find_chanctx(local, chandef, mode); in ieee80211_vif_use_channel()
1585 ctx = ieee80211_new_chanctx(local, chandef, mode); in ieee80211_vif_use_channel()
1591 ieee80211_vif_update_chandef(sdata, chandef); in ieee80211_vif_use_channel()
1676 const struct cfg80211_chan_def *chandef, in ieee80211_vif_change_bandwidth() argument
1685 if (!cfg80211_chandef_usable(sdata->local->hw.wiphy, chandef, in ieee80211_vif_change_bandwidth()
1690 if (cfg80211_chandef_identical(chandef, &sdata->vif.bss_conf.chandef)) { in ieee80211_vif_change_bandwidth()
1695 if (chandef->width == NL80211_CHAN_WIDTH_20_NOHT || in ieee80211_vif_change_bandwidth()
1696 sdata->vif.bss_conf.chandef.width == NL80211_CHAN_WIDTH_20_NOHT) { in ieee80211_vif_change_bandwidth()
1710 compat = cfg80211_chandef_compatible(&conf->def, chandef); in ieee80211_vif_change_bandwidth()
1736 ieee80211_vif_update_chandef(sdata, chandef); in ieee80211_vif_change_bandwidth()