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()
288 if (sdata && rcu_access_pointer(sdata->vif.chanctx_conf) == conf) in ieee80211_get_chanctx_max_required_bw()
289 max_bw = max(max_bw, conf->def.width); in ieee80211_get_chanctx_max_required_bw()
310 if (ctx->conf.def.width == NL80211_CHAN_WIDTH_5 || in ieee80211_recalc_chanctx_min_def()
311 ctx->conf.def.width == NL80211_CHAN_WIDTH_10 || in ieee80211_recalc_chanctx_min_def()
312 ctx->conf.radar_enabled) { in ieee80211_recalc_chanctx_min_def()
313 ctx->conf.min_def = ctx->conf.def; in ieee80211_recalc_chanctx_min_def()
317 max_bw = ieee80211_get_chanctx_max_required_bw(local, &ctx->conf); in ieee80211_recalc_chanctx_min_def()
320 min_def = ctx->conf.def; in ieee80211_recalc_chanctx_min_def()
324 if (cfg80211_chandef_identical(&ctx->conf.min_def, &min_def)) in ieee80211_recalc_chanctx_min_def()
327 ctx->conf.min_def = min_def; in ieee80211_recalc_chanctx_min_def()
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()
374 compat = cfg80211_chandef_compatible(&ctx->conf.def, chandef); in ieee80211_find_chanctx()
413 struct ieee80211_chanctx_conf *conf = &ctx->conf; in ieee80211_chanctx_radar_required() local
424 if (rcu_access_pointer(sdata->vif.chanctx_conf) != conf) in ieee80211_chanctx_radar_required()
452 ctx->conf.def = *chandef; in ieee80211_alloc_chanctx()
453 ctx->conf.rx_chains_static = 1; in ieee80211_alloc_chanctx()
454 ctx->conf.rx_chains_dynamic = 1; in ieee80211_alloc_chanctx()
456 ctx->conf.radar_enabled = false; in ieee80211_alloc_chanctx()
472 local->hw.conf.radar_enabled = ctx->conf.radar_enabled; in ieee80211_add_chanctx()
480 local->_oper_chandef = ctx->conf.def; in ieee80211_add_chanctx()
532 WARN_ON(local->hw.conf.radar_enabled && in ieee80211_del_chanctx()
535 local->hw.conf.radar_enabled = false; in ieee80211_del_chanctx()
560 struct ieee80211_chanctx_conf *conf = &ctx->conf; in ieee80211_recalc_chanctx_chantype() local
571 if (rcu_access_pointer(sdata->vif.chanctx_conf) != conf) in ieee80211_recalc_chanctx_chantype()
603 if (radar_enabled == chanctx->conf.radar_enabled) in ieee80211_recalc_radar_chanctx()
606 chanctx->conf.radar_enabled = radar_enabled; in ieee80211_recalc_radar_chanctx()
609 local->hw.conf.radar_enabled = chanctx->conf.radar_enabled; in ieee80211_recalc_radar_chanctx()
620 struct ieee80211_chanctx_conf *conf; in ieee80211_assign_vif_chanctx() local
624 conf = rcu_dereference_protected(sdata->vif.chanctx_conf, in ieee80211_assign_vif_chanctx()
627 if (conf) { in ieee80211_assign_vif_chanctx()
628 curr_ctx = container_of(conf, struct ieee80211_chanctx, conf); in ieee80211_assign_vif_chanctx()
631 conf = NULL; in ieee80211_assign_vif_chanctx()
640 conf = &new_ctx->conf; in ieee80211_assign_vif_chanctx()
646 rcu_assign_pointer(sdata->vif.chanctx_conf, conf); in ieee80211_assign_vif_chanctx()
648 sdata->vif.bss_conf.idle = !conf; in ieee80211_assign_vif_chanctx()
689 &chanctx->conf) in ieee80211_recalc_smps_chanctx()
737 rcu_access_pointer(sdata->vif.chanctx_conf) == &chanctx->conf) in ieee80211_recalc_smps_chanctx()
752 if (rx_chains_static == chanctx->conf.rx_chains_static && in ieee80211_recalc_smps_chanctx()
753 rx_chains_dynamic == chanctx->conf.rx_chains_dynamic) in ieee80211_recalc_smps_chanctx()
756 chanctx->conf.rx_chains_static = rx_chains_static; in ieee80211_recalc_smps_chanctx()
757 chanctx->conf.rx_chains_dynamic = rx_chains_dynamic; in ieee80211_recalc_smps_chanctx()
767 struct ieee80211_chanctx_conf *conf; in __ieee80211_vif_copy_chanctx_to_vlans() local
780 conf = rcu_dereference_protected(sdata->vif.chanctx_conf, in __ieee80211_vif_copy_chanctx_to_vlans()
782 WARN_ON(!conf); in __ieee80211_vif_copy_chanctx_to_vlans()
785 conf = NULL; in __ieee80211_vif_copy_chanctx_to_vlans()
788 rcu_assign_pointer(vlan->vif.chanctx_conf, conf); in __ieee80211_vif_copy_chanctx_to_vlans()
1012 vif_chsw[0].old_ctx = &old_ctx->conf; in ieee80211_vif_use_reserved_reassign()
1013 vif_chsw[0].new_ctx = &new_ctx->conf; in ieee80211_vif_use_reserved_reassign()
1028 rcu_assign_pointer(sdata->vif.chanctx_conf, &new_ctx->conf); in ieee80211_vif_use_reserved_reassign()
1135 local->hw.conf.radar_enabled = new_ctx->conf.radar_enabled; in ieee80211_chsw_switch_hwconf()
1175 vif_chsw[i].old_ctx = &old_ctx->conf; in ieee80211_chsw_switch_vifs()
1176 vif_chsw[i].new_ctx = &ctx->conf; in ieee80211_chsw_switch_vifs()
1295 ctx->conf.radar_enabled = false; in ieee80211_vif_use_reserved_switch()
1314 ctx->conf.radar_enabled = true; in ieee80211_vif_use_reserved_switch()
1373 rcu_assign_pointer(sdata->vif.chanctx_conf, &ctx->conf); in ieee80211_vif_use_reserved_switch()
1484 struct ieee80211_chanctx_conf *conf; in __ieee80211_vif_release_channel() local
1490 conf = rcu_dereference_protected(sdata->vif.chanctx_conf, in __ieee80211_vif_release_channel()
1492 if (!conf) in __ieee80211_vif_release_channel()
1495 ctx = container_of(conf, struct ieee80211_chanctx, conf); in __ieee80211_vif_release_channel()
1647 struct ieee80211_chanctx_conf *conf; in ieee80211_vif_change_bandwidth() local
1668 conf = rcu_dereference_protected(sdata->vif.chanctx_conf, in ieee80211_vif_change_bandwidth()
1670 if (!conf) { in ieee80211_vif_change_bandwidth()
1675 ctx = container_of(conf, struct ieee80211_chanctx, conf); in ieee80211_vif_change_bandwidth()
1677 compat = cfg80211_chandef_compatible(&conf->def, chandef); in ieee80211_vif_change_bandwidth()
1729 struct ieee80211_chanctx_conf *conf; in ieee80211_vif_vlan_copy_chanctx() local
1738 conf = rcu_dereference_protected(ap->vif.chanctx_conf, in ieee80211_vif_vlan_copy_chanctx()
1740 rcu_assign_pointer(sdata->vif.chanctx_conf, conf); in ieee80211_vif_vlan_copy_chanctx()
1757 iter(hw, &ctx->conf, iter_data); in ieee80211_iter_chan_contexts_atomic()