Lines Matching refs:chandef
119 compat = &sdata->vif.bss_conf.chandef; in ieee80211_chanctx_non_reserved_chandef()
122 &sdata->vif.bss_conf.chandef, compat); in ieee80211_chanctx_non_reserved_chandef()
167 const struct cfg80211_chan_def *chandef, in ieee80211_find_reservation_chanctx() argument
185 chandef)) in ieee80211_find_reservation_chanctx()
271 width = max(vif->bss_conf.chandef.width, in ieee80211_get_chanctx_max_required_bw()
281 width = vif->bss_conf.chandef.width; in ieee80211_get_chanctx_max_required_bw()
348 const struct cfg80211_chan_def *chandef) in ieee80211_change_chanctx() argument
350 if (cfg80211_chandef_identical(&ctx->conf.def, chandef)) { in ieee80211_change_chanctx()
355 WARN_ON(!cfg80211_chandef_compatible(&ctx->conf.def, chandef)); in ieee80211_change_chanctx()
357 ctx->conf.def = *chandef; in ieee80211_change_chanctx()
362 local->_oper_chandef = *chandef; in ieee80211_change_chanctx()
369 const struct cfg80211_chan_def *chandef, in ieee80211_find_chanctx() argument
388 compat = cfg80211_chandef_compatible(&ctx->conf.def, chandef); in ieee80211_find_chanctx()
453 const struct cfg80211_chan_def *chandef, in ieee80211_alloc_chanctx() argument
466 ctx->conf.def = *chandef; in ieee80211_alloc_chanctx()
509 const struct cfg80211_chan_def *chandef, in ieee80211_new_chanctx() argument
518 ctx = ieee80211_alloc_chanctx(local, chandef, mode); in ieee80211_new_chanctx()
538 struct cfg80211_chan_def *chandef = &local->_oper_chandef; in ieee80211_del_chanctx() local
542 if (chandef->chan->band == NL80211_BAND_S1GHZ) in ieee80211_del_chanctx()
543 chandef->width = in ieee80211_del_chanctx()
544 ieee80211_s1g_channel_width(chandef->chan); in ieee80211_del_chanctx()
546 chandef->width = NL80211_CHAN_WIDTH_20_NOHT; in ieee80211_del_chanctx()
547 chandef->center_freq1 = chandef->chan->center_freq; in ieee80211_del_chanctx()
548 chandef->freq1_offset = chandef->chan->freq_offset; in ieee80211_del_chanctx()
549 chandef->center_freq2 = 0; in ieee80211_del_chanctx()
600 compat = &sdata->vif.bss_conf.chandef; in ieee80211_recalc_chanctx_chantype()
603 &sdata->vif.bss_conf.chandef, compat); in ieee80211_recalc_chanctx_chantype()
882 const struct cfg80211_chan_def *chandef, in ieee80211_vif_reserve_chanctx() argument
895 new_ctx = ieee80211_find_reservation_chanctx(local, chandef, mode); in ieee80211_vif_reserve_chanctx()
898 new_ctx = ieee80211_new_chanctx(local, chandef, mode); in ieee80211_vif_reserve_chanctx()
952 new_ctx = ieee80211_alloc_chanctx(local, chandef, mode); in ieee80211_vif_reserve_chanctx()
970 sdata->reserved_chandef = *chandef; in ieee80211_vif_reserve_chanctx()
1008 const struct cfg80211_chan_def *chandef) in ieee80211_vif_update_chandef() argument
1012 sdata->vif.bss_conf.chandef = *chandef; in ieee80211_vif_update_chandef()
1018 vlan->vif.bss_conf.chandef = *chandef; in ieee80211_vif_update_chandef()
1027 const struct cfg80211_chan_def *chandef; in ieee80211_vif_use_reserved_reassign() local
1050 chandef = ieee80211_chanctx_non_reserved_chandef(local, new_ctx, in ieee80211_vif_use_reserved_reassign()
1052 if (WARN_ON(!chandef)) in ieee80211_vif_use_reserved_reassign()
1055 ieee80211_change_chanctx(local, new_ctx, chandef); in ieee80211_vif_use_reserved_reassign()
1084 if (sdata->vif.bss_conf.chandef.width != sdata->reserved_chandef.width) in ieee80211_vif_use_reserved_reassign()
1106 const struct cfg80211_chan_def *chandef; in ieee80211_vif_use_reserved_assign() local
1125 chandef = ieee80211_chanctx_non_reserved_chandef(local, new_ctx, in ieee80211_vif_use_reserved_assign()
1127 if (WARN_ON(!chandef)) in ieee80211_vif_use_reserved_assign()
1130 ieee80211_change_chanctx(local, new_ctx, chandef); in ieee80211_vif_use_reserved_assign()
1176 const struct cfg80211_chan_def *chandef; in ieee80211_chsw_switch_hwconf() local
1181 chandef = ieee80211_chanctx_reserved_chandef(local, new_ctx, NULL); in ieee80211_chsw_switch_hwconf()
1182 if (WARN_ON(!chandef)) in ieee80211_chsw_switch_hwconf()
1186 local->_oper_chandef = *chandef; in ieee80211_chsw_switch_hwconf()
1431 if (sdata->vif.bss_conf.chandef.width != in ieee80211_vif_use_reserved_switch()
1569 const struct cfg80211_chan_def *chandef, in ieee80211_vif_use_channel() argument
1584 chandef, in ieee80211_vif_use_channel()
1589 radar_detect_width = BIT(chandef->width); in ieee80211_vif_use_channel()
1593 ret = ieee80211_check_combinations(sdata, chandef, mode, in ieee80211_vif_use_channel()
1600 ctx = ieee80211_find_chanctx(local, chandef, mode); in ieee80211_vif_use_channel()
1602 ctx = ieee80211_new_chanctx(local, chandef, mode); in ieee80211_vif_use_channel()
1608 ieee80211_vif_update_chandef(sdata, chandef); in ieee80211_vif_use_channel()
1693 const struct cfg80211_chan_def *chandef, in ieee80211_vif_change_bandwidth() argument
1702 if (!cfg80211_chandef_usable(sdata->local->hw.wiphy, chandef, in ieee80211_vif_change_bandwidth()
1707 if (cfg80211_chandef_identical(chandef, &sdata->vif.bss_conf.chandef)) { in ieee80211_vif_change_bandwidth()
1712 if (chandef->width == NL80211_CHAN_WIDTH_20_NOHT || in ieee80211_vif_change_bandwidth()
1713 sdata->vif.bss_conf.chandef.width == NL80211_CHAN_WIDTH_20_NOHT) { in ieee80211_vif_change_bandwidth()
1727 compat = cfg80211_chandef_compatible(&conf->def, chandef); in ieee80211_vif_change_bandwidth()
1753 ieee80211_vif_update_chandef(sdata, chandef); in ieee80211_vif_change_bandwidth()