Lines Matching refs:vif
72 conf = rcu_dereference_protected(sdata->vif.chanctx_conf, in ieee80211_vif_get_chanctx()
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()
253 struct ieee80211_vif *vif = &sdata->vif; in ieee80211_get_chanctx_max_required_bw() local
259 if (rcu_access_pointer(sdata->vif.chanctx_conf) != conf) in ieee80211_get_chanctx_max_required_bw()
262 switch (vif->type) { in ieee80211_get_chanctx_max_required_bw()
274 width = vif->bss_conf.chandef.width; 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()
424 if (rcu_access_pointer(sdata->vif.chanctx_conf) != conf) in ieee80211_chanctx_radar_required()
571 if (rcu_access_pointer(sdata->vif.chanctx_conf) != conf) in ieee80211_recalc_chanctx_chantype()
573 if (sdata->vif.type == NL80211_IFTYPE_AP_VLAN) in ieee80211_recalc_chanctx_chantype()
577 compat = &sdata->vif.bss_conf.chandef; in ieee80211_recalc_chanctx_chantype()
580 &sdata->vif.bss_conf.chandef, compat); in ieee80211_recalc_chanctx_chantype()
624 conf = rcu_dereference_protected(sdata->vif.chanctx_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()
662 if (sdata->vif.type != NL80211_IFTYPE_P2P_DEVICE && in ieee80211_assign_vif_chanctx()
663 sdata->vif.type != NL80211_IFTYPE_MONITOR) in ieee80211_assign_vif_chanctx()
688 if (rcu_access_pointer(sdata->vif.chanctx_conf) != in ieee80211_recalc_smps_chanctx()
692 switch (sdata->vif.type) { in ieee80211_recalc_smps_chanctx()
737 rcu_access_pointer(sdata->vif.chanctx_conf) == &chanctx->conf) in ieee80211_recalc_smps_chanctx()
769 if (WARN_ON(sdata->vif.type != NL80211_IFTYPE_AP)) in __ieee80211_vif_copy_chanctx_to_vlans()
780 conf = rcu_dereference_protected(sdata->vif.chanctx_conf, in __ieee80211_vif_copy_chanctx_to_vlans()
788 rcu_assign_pointer(vlan->vif.chanctx_conf, conf); in __ieee80211_vif_copy_chanctx_to_vlans()
937 switch (sdata->vif.type) { in ieee80211_vif_chanctx_reservation_complete()
968 sdata->vif.bss_conf.chandef = *chandef; in ieee80211_vif_update_chandef()
970 if (sdata->vif.type != NL80211_IFTYPE_AP) in ieee80211_vif_update_chandef()
974 vlan->vif.bss_conf.chandef = *chandef; in ieee80211_vif_update_chandef()
1011 vif_chsw[0].vif = &sdata->vif; in ieee80211_vif_use_reserved_reassign()
1028 rcu_assign_pointer(sdata->vif.chanctx_conf, &new_ctx->conf); in ieee80211_vif_use_reserved_reassign()
1030 if (sdata->vif.type == NL80211_IFTYPE_AP) in ieee80211_vif_use_reserved_reassign()
1036 if (sdata->vif.bss_conf.chandef.width != sdata->reserved_chandef.width) in ieee80211_vif_use_reserved_reassign()
1174 vif_chsw[i].vif = &sdata->vif; in ieee80211_chsw_switch_vifs()
1373 rcu_assign_pointer(sdata->vif.chanctx_conf, &ctx->conf); in ieee80211_vif_use_reserved_switch()
1375 if (sdata->vif.type == NL80211_IFTYPE_AP) in ieee80211_vif_use_reserved_switch()
1381 if (sdata->vif.bss_conf.chandef.width != in ieee80211_vif_use_reserved_switch()
1490 conf = rcu_dereference_protected(sdata->vif.chanctx_conf, in __ieee80211_vif_release_channel()
1657 if (cfg80211_chandef_identical(chandef, &sdata->vif.bss_conf.chandef)) { in ieee80211_vif_change_bandwidth()
1663 sdata->vif.bss_conf.chandef.width == NL80211_CHAN_WIDTH_20_NOHT) { in ieee80211_vif_change_bandwidth()
1668 conf = rcu_dereference_protected(sdata->vif.chanctx_conf, in ieee80211_vif_change_bandwidth()
1731 if (WARN_ON(sdata->vif.type != NL80211_IFTYPE_AP_VLAN || !sdata->bss)) in ieee80211_vif_vlan_copy_chanctx()
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()