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()
274 width = vif->bss_conf.chandef.width; in ieee80211_get_chanctx_max_required_bw()
336 const struct cfg80211_chan_def *chandef) in ieee80211_change_chanctx() argument
338 if (cfg80211_chandef_identical(&ctx->conf.def, chandef)) in ieee80211_change_chanctx()
341 WARN_ON(!cfg80211_chandef_compatible(&ctx->conf.def, chandef)); in ieee80211_change_chanctx()
343 ctx->conf.def = *chandef; in ieee80211_change_chanctx()
348 local->_oper_chandef = *chandef; in ieee80211_change_chanctx()
355 const struct cfg80211_chan_def *chandef, in ieee80211_find_chanctx() argument
374 compat = cfg80211_chandef_compatible(&ctx->conf.def, chandef); in ieee80211_find_chanctx()
439 const struct cfg80211_chan_def *chandef, in ieee80211_alloc_chanctx() argument
452 ctx->conf.def = *chandef; in ieee80211_alloc_chanctx()
495 const struct cfg80211_chan_def *chandef, in ieee80211_new_chanctx() argument
504 ctx = ieee80211_alloc_chanctx(local, chandef, mode); in ieee80211_new_chanctx()
524 struct cfg80211_chan_def *chandef = &local->_oper_chandef; in ieee80211_del_chanctx() local
525 chandef->width = NL80211_CHAN_WIDTH_20_NOHT; in ieee80211_del_chanctx()
526 chandef->center_freq1 = chandef->chan->center_freq; in ieee80211_del_chanctx()
527 chandef->center_freq2 = 0; in ieee80211_del_chanctx()
577 compat = &sdata->vif.bss_conf.chandef; in ieee80211_recalc_chanctx_chantype()
580 &sdata->vif.bss_conf.chandef, compat); in ieee80211_recalc_chanctx_chantype()
839 const struct cfg80211_chan_def *chandef, in ieee80211_vif_reserve_chanctx() argument
852 new_ctx = ieee80211_find_reservation_chanctx(local, chandef, mode); in ieee80211_vif_reserve_chanctx()
855 new_ctx = ieee80211_new_chanctx(local, chandef, mode); in ieee80211_vif_reserve_chanctx()
909 new_ctx = ieee80211_alloc_chanctx(local, chandef, mode); in ieee80211_vif_reserve_chanctx()
927 sdata->reserved_chandef = *chandef; in ieee80211_vif_reserve_chanctx()
964 const struct cfg80211_chan_def *chandef) in ieee80211_vif_update_chandef() argument
968 sdata->vif.bss_conf.chandef = *chandef; in ieee80211_vif_update_chandef()
974 vlan->vif.bss_conf.chandef = *chandef; in ieee80211_vif_update_chandef()
983 const struct cfg80211_chan_def *chandef; in ieee80211_vif_use_reserved_reassign() local
1006 chandef = ieee80211_chanctx_non_reserved_chandef(local, new_ctx, in ieee80211_vif_use_reserved_reassign()
1008 if (WARN_ON(!chandef)) in ieee80211_vif_use_reserved_reassign()
1036 if (sdata->vif.bss_conf.chandef.width != sdata->reserved_chandef.width) in ieee80211_vif_use_reserved_reassign()
1058 const struct cfg80211_chan_def *chandef; in ieee80211_vif_use_reserved_assign() local
1077 chandef = ieee80211_chanctx_non_reserved_chandef(local, new_ctx, in ieee80211_vif_use_reserved_assign()
1079 if (WARN_ON(!chandef)) in ieee80211_vif_use_reserved_assign()
1126 const struct cfg80211_chan_def *chandef; in ieee80211_chsw_switch_hwconf() local
1131 chandef = ieee80211_chanctx_reserved_chandef(local, new_ctx, NULL); in ieee80211_chsw_switch_hwconf()
1132 if (WARN_ON(!chandef)) in ieee80211_chsw_switch_hwconf()
1136 local->_oper_chandef = *chandef; in ieee80211_chsw_switch_hwconf()
1381 if (sdata->vif.bss_conf.chandef.width != in ieee80211_vif_use_reserved_switch()
1519 const struct cfg80211_chan_def *chandef, in ieee80211_vif_use_channel() argument
1534 chandef, in ieee80211_vif_use_channel()
1539 radar_detect_width = BIT(chandef->width); in ieee80211_vif_use_channel()
1543 ret = ieee80211_check_combinations(sdata, chandef, mode, in ieee80211_vif_use_channel()
1550 ctx = ieee80211_find_chanctx(local, chandef, mode); in ieee80211_vif_use_channel()
1552 ctx = ieee80211_new_chanctx(local, chandef, mode); in ieee80211_vif_use_channel()
1558 ieee80211_vif_update_chandef(sdata, chandef); in ieee80211_vif_use_channel()
1643 const struct cfg80211_chan_def *chandef, in ieee80211_vif_change_bandwidth() argument
1652 if (!cfg80211_chandef_usable(sdata->local->hw.wiphy, chandef, in ieee80211_vif_change_bandwidth()
1657 if (cfg80211_chandef_identical(chandef, &sdata->vif.bss_conf.chandef)) { in ieee80211_vif_change_bandwidth()
1662 if (chandef->width == NL80211_CHAN_WIDTH_20_NOHT || in ieee80211_vif_change_bandwidth()
1663 sdata->vif.bss_conf.chandef.width == NL80211_CHAN_WIDTH_20_NOHT) { in ieee80211_vif_change_bandwidth()
1677 compat = cfg80211_chandef_compatible(&conf->def, chandef); in ieee80211_vif_change_bandwidth()
1703 ieee80211_vif_update_chandef(sdata, chandef); in ieee80211_vif_change_bandwidth()