Lines Matching refs:conf

70 	struct ieee80211_chanctx_conf *conf;  in ieee80211_vif_get_chanctx()  local
72 conf = rcu_dereference_protected(sdata->vif.chanctx_conf, in ieee80211_vif_get_chanctx()
74 if (!conf) in ieee80211_vif_get_chanctx()
77 return container_of(conf, struct ieee80211_chanctx, conf); in ieee80211_vif_get_chanctx()
246 struct ieee80211_chanctx_conf *conf) in ieee80211_get_chanctx_max_required_bw() argument
259 if (rcu_access_pointer(sdata->vif.chanctx_conf) != conf) in ieee80211_get_chanctx_max_required_bw()
296 if (sdata && rcu_access_pointer(sdata->vif.chanctx_conf) == conf) in ieee80211_get_chanctx_max_required_bw()
297 max_bw = max(max_bw, conf->def.width); in ieee80211_get_chanctx_max_required_bw()
318 if (ctx->conf.def.width == NL80211_CHAN_WIDTH_5 || in ieee80211_recalc_chanctx_min_def()
319 ctx->conf.def.width == NL80211_CHAN_WIDTH_10 || in ieee80211_recalc_chanctx_min_def()
320 ctx->conf.radar_enabled) { in ieee80211_recalc_chanctx_min_def()
321 ctx->conf.min_def = ctx->conf.def; in ieee80211_recalc_chanctx_min_def()
325 max_bw = ieee80211_get_chanctx_max_required_bw(local, &ctx->conf); in ieee80211_recalc_chanctx_min_def()
328 min_def = ctx->conf.def; in ieee80211_recalc_chanctx_min_def()
332 if (cfg80211_chandef_identical(&ctx->conf.min_def, &min_def)) in ieee80211_recalc_chanctx_min_def()
335 ctx->conf.min_def = min_def; in ieee80211_recalc_chanctx_min_def()
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()
382 compat = cfg80211_chandef_compatible(&ctx->conf.def, chandef); in ieee80211_find_chanctx()
421 struct ieee80211_chanctx_conf *conf = &ctx->conf; in ieee80211_chanctx_radar_required() local
432 if (rcu_access_pointer(sdata->vif.chanctx_conf) != conf) in ieee80211_chanctx_radar_required()
460 ctx->conf.def = *chandef; in ieee80211_alloc_chanctx()
461 ctx->conf.rx_chains_static = 1; in ieee80211_alloc_chanctx()
462 ctx->conf.rx_chains_dynamic = 1; in ieee80211_alloc_chanctx()
464 ctx->conf.radar_enabled = false; in ieee80211_alloc_chanctx()
480 local->hw.conf.radar_enabled = ctx->conf.radar_enabled; in ieee80211_add_chanctx()
488 local->_oper_chandef = ctx->conf.def; in ieee80211_add_chanctx()
540 WARN_ON(local->hw.conf.radar_enabled && in ieee80211_del_chanctx()
543 local->hw.conf.radar_enabled = false; in ieee80211_del_chanctx()
568 struct ieee80211_chanctx_conf *conf = &ctx->conf; in ieee80211_recalc_chanctx_chantype() local
580 if (rcu_access_pointer(sdata->vif.chanctx_conf) != conf) in ieee80211_recalc_chanctx_chantype()
626 if (radar_enabled == chanctx->conf.radar_enabled) in ieee80211_recalc_radar_chanctx()
629 chanctx->conf.radar_enabled = radar_enabled; in ieee80211_recalc_radar_chanctx()
632 local->hw.conf.radar_enabled = chanctx->conf.radar_enabled; in ieee80211_recalc_radar_chanctx()
643 struct ieee80211_chanctx_conf *conf; in ieee80211_assign_vif_chanctx() local
647 conf = rcu_dereference_protected(sdata->vif.chanctx_conf, in ieee80211_assign_vif_chanctx()
650 if (conf) { in ieee80211_assign_vif_chanctx()
651 curr_ctx = container_of(conf, struct ieee80211_chanctx, conf); in ieee80211_assign_vif_chanctx()
654 conf = NULL; in ieee80211_assign_vif_chanctx()
663 conf = &new_ctx->conf; in ieee80211_assign_vif_chanctx()
669 rcu_assign_pointer(sdata->vif.chanctx_conf, conf); in ieee80211_assign_vif_chanctx()
671 sdata->vif.bss_conf.idle = !conf; in ieee80211_assign_vif_chanctx()
714 &chanctx->conf) in ieee80211_recalc_smps_chanctx()
762 rcu_access_pointer(sdata->vif.chanctx_conf) == &chanctx->conf) in ieee80211_recalc_smps_chanctx()
777 if (rx_chains_static == chanctx->conf.rx_chains_static && in ieee80211_recalc_smps_chanctx()
778 rx_chains_dynamic == chanctx->conf.rx_chains_dynamic) in ieee80211_recalc_smps_chanctx()
781 chanctx->conf.rx_chains_static = rx_chains_static; in ieee80211_recalc_smps_chanctx()
782 chanctx->conf.rx_chains_dynamic = rx_chains_dynamic; in ieee80211_recalc_smps_chanctx()
792 struct ieee80211_chanctx_conf *conf; in __ieee80211_vif_copy_chanctx_to_vlans() local
805 conf = rcu_dereference_protected(sdata->vif.chanctx_conf, in __ieee80211_vif_copy_chanctx_to_vlans()
807 WARN_ON(!conf); in __ieee80211_vif_copy_chanctx_to_vlans()
810 conf = NULL; in __ieee80211_vif_copy_chanctx_to_vlans()
813 rcu_assign_pointer(vlan->vif.chanctx_conf, conf); in __ieee80211_vif_copy_chanctx_to_vlans()
1039 vif_chsw[0].old_ctx = &old_ctx->conf; in ieee80211_vif_use_reserved_reassign()
1040 vif_chsw[0].new_ctx = &new_ctx->conf; in ieee80211_vif_use_reserved_reassign()
1055 rcu_assign_pointer(sdata->vif.chanctx_conf, &new_ctx->conf); in ieee80211_vif_use_reserved_reassign()
1166 local->hw.conf.radar_enabled = new_ctx->conf.radar_enabled; in ieee80211_chsw_switch_hwconf()
1206 vif_chsw[i].old_ctx = &old_ctx->conf; in ieee80211_chsw_switch_vifs()
1207 vif_chsw[i].new_ctx = &ctx->conf; in ieee80211_chsw_switch_vifs()
1326 ctx->conf.radar_enabled = false; in ieee80211_vif_use_reserved_switch()
1345 ctx->conf.radar_enabled = true; in ieee80211_vif_use_reserved_switch()
1404 rcu_assign_pointer(sdata->vif.chanctx_conf, &ctx->conf); in ieee80211_vif_use_reserved_switch()
1517 struct ieee80211_chanctx_conf *conf; in __ieee80211_vif_release_channel() local
1523 conf = rcu_dereference_protected(sdata->vif.chanctx_conf, in __ieee80211_vif_release_channel()
1525 if (!conf) in __ieee80211_vif_release_channel()
1528 ctx = container_of(conf, struct ieee80211_chanctx, conf); in __ieee80211_vif_release_channel()
1680 struct ieee80211_chanctx_conf *conf; in ieee80211_vif_change_bandwidth() local
1701 conf = rcu_dereference_protected(sdata->vif.chanctx_conf, in ieee80211_vif_change_bandwidth()
1703 if (!conf) { in ieee80211_vif_change_bandwidth()
1708 ctx = container_of(conf, struct ieee80211_chanctx, conf); in ieee80211_vif_change_bandwidth()
1710 compat = cfg80211_chandef_compatible(&conf->def, chandef); in ieee80211_vif_change_bandwidth()
1762 struct ieee80211_chanctx_conf *conf; in ieee80211_vif_vlan_copy_chanctx() local
1771 conf = rcu_dereference_protected(ap->vif.chanctx_conf, in ieee80211_vif_vlan_copy_chanctx()
1773 rcu_assign_pointer(sdata->vif.chanctx_conf, conf); in ieee80211_vif_vlan_copy_chanctx()
1790 iter(hw, &ctx->conf, iter_data); in ieee80211_iter_chan_contexts_atomic()