/openbmc/linux/drivers/net/wireless/intel/iwlwifi/mvm/ |
H A D | coex.c | 94 struct ieee80211_chanctx_conf *chanctx_conf; in iwl_get_coex_type() local 109 chanctx_conf = rcu_dereference(vif->bss_conf.chanctx_conf); in iwl_get_coex_type() 111 if (!chanctx_conf || in iwl_get_coex_type() 112 chanctx_conf->def.chan->band != NL80211_BAND_2GHZ) { in iwl_get_coex_type() 124 phy_ctx_id = *((u16 *)chanctx_conf->drv_priv); in iwl_get_coex_type() 269 struct ieee80211_chanctx_conf *chanctx_conf; in iwl_mvm_bt_notif_per_link() local 288 chanctx_conf = rcu_dereference(link_conf->chanctx_conf); in iwl_mvm_bt_notif_per_link() 291 if ((!chanctx_conf || in iwl_mvm_bt_notif_per_link() 292 chanctx_conf->def.chan->band != NL80211_BAND_2GHZ)) { in iwl_mvm_bt_notif_per_link() 338 data->primary = chanctx_conf; in iwl_mvm_bt_notif_per_link() [all …]
|
H A D | debugfs-vif.c | 174 struct ieee80211_chanctx_conf *chanctx_conf; in iwl_dbgfs_mac_params_read() local 237 chanctx_conf = rcu_dereference(vif->bss_conf.chanctx_conf); in iwl_dbgfs_mac_params_read() 238 if (chanctx_conf) in iwl_dbgfs_mac_params_read() 241 chanctx_conf->rx_chains_static, in iwl_dbgfs_mac_params_read() 242 chanctx_conf->rx_chains_dynamic); in iwl_dbgfs_mac_params_read() 581 struct ieee80211_chanctx_conf *chanctx_conf; in iwl_dbgfs_rx_phyinfo_write() local 593 chanctx_conf = rcu_dereference(vif->bss_conf.chanctx_conf); in iwl_dbgfs_rx_phyinfo_write() 595 if (!chanctx_conf) { in iwl_dbgfs_rx_phyinfo_write() 601 phy_ctxt = &mvm->phy_ctxts[*(u16 *)chanctx_conf->drv_priv]; in iwl_dbgfs_rx_phyinfo_write() 606 ret = iwl_mvm_phy_ctxt_changed(mvm, phy_ctxt, &chanctx_conf->min_def, in iwl_dbgfs_rx_phyinfo_write() [all …]
|
H A D | mld-mac80211.c | 207 rcu_access_pointer(link_conf->chanctx_conf)) in iwl_mvm_mld_count_active_links() 259 if (!rcu_access_pointer(link_conf->chanctx_conf)) in __iwl_mvm_mld_assign_vif_chanctx() 382 struct ieee80211_chanctx_conf *chanctx_conf; in iwl_mvm_esr_mode_inactive() local 390 chanctx_conf = rcu_dereference(link_conf->chanctx_conf); in iwl_mvm_esr_mode_inactive() 393 if (!chanctx_conf || !phy_ctxt) { in iwl_mvm_esr_mode_inactive() 399 static_chains = chanctx_conf->rx_chains_static; in iwl_mvm_esr_mode_inactive() 400 dynamic_chains = chanctx_conf->rx_chains_dynamic; in iwl_mvm_esr_mode_inactive()
|
H A D | power.c | 281 struct ieee80211_chanctx_conf *chanctx_conf; in iwl_mvm_power_is_radar() local 288 chanctx_conf = rcu_dereference(link_conf->chanctx_conf); in iwl_mvm_power_is_radar() 290 if (!chanctx_conf) in iwl_mvm_power_is_radar() 293 radar_detect = !!(chanctx_conf->def.chan->flags & in iwl_mvm_power_is_radar()
|
H A D | tx.c | 2098 struct ieee80211_chanctx_conf *chanctx_conf = NULL; in iwl_mvm_tx_reclaim() local 2102 chanctx_conf = in iwl_mvm_tx_reclaim() 2103 rcu_dereference(mvmsta->vif->bss_conf.chanctx_conf); in iwl_mvm_tx_reclaim() 2105 if (WARN_ON_ONCE(!chanctx_conf)) in iwl_mvm_tx_reclaim() 2108 tx_info->band = chanctx_conf->def.chan->band; in iwl_mvm_tx_reclaim()
|
H A D | ftm-responder.c | 419 pctx = rcu_dereference(bss_conf->chanctx_conf); in iwl_mvm_ftm_start_responder()
|
H A D | rs.c | 1966 struct ieee80211_chanctx_conf *chanctx_conf; in rs_tpc_perform() local 1987 chanctx_conf = rcu_dereference(vif->bss_conf.chanctx_conf); in rs_tpc_perform() 1988 if (WARN_ON(!chanctx_conf)) in rs_tpc_perform() 1991 band = chanctx_conf->def.chan->band; in rs_tpc_perform()
|
H A D | tdls.c | 383 rcu_dereference(vif->bss_conf.chanctx_conf); in iwl_mvm_tdls_config_channel_switch()
|
H A D | mac-ctxt.c | 411 chanctx = rcu_dereference(link_conf->chanctx_conf); in iwl_mvm_set_fw_basic_rates() 1102 ctx = rcu_dereference(link_conf->chanctx_conf); in iwl_mvm_mac_ctxt_send_beacon_v9()
|
/openbmc/linux/net/mac80211/ |
H A D | ocb.c | 45 struct ieee80211_chanctx_conf *chanctx_conf; in ieee80211_ocb_rx_no_sta() local 63 chanctx_conf = rcu_dereference(sdata->vif.bss_conf.chanctx_conf); in ieee80211_ocb_rx_no_sta() 64 if (WARN_ON_ONCE(!chanctx_conf)) { in ieee80211_ocb_rx_no_sta() 68 band = chanctx_conf->def.chan->band; in ieee80211_ocb_rx_no_sta() 69 scan_width = cfg80211_chandef_to_scan_width(&chanctx_conf->def); in ieee80211_ocb_rx_no_sta()
|
H A D | ethtool.c | 73 struct ieee80211_chanctx_conf *chanctx_conf; in ieee80211_get_stats() local 153 chanctx_conf = rcu_dereference(sdata->vif.bss_conf.chanctx_conf); in ieee80211_get_stats() 154 if (chanctx_conf) in ieee80211_get_stats() 155 channel = chanctx_conf->def.chan; in ieee80211_get_stats()
|
H A D | chan.c | 75 conf = rcu_dereference_protected(link->conf->chanctx_conf, in ieee80211_link_get_chanctx() 278 rcu_access_pointer(link->conf->chanctx_conf) != &ctx->conf) in ieee80211_get_chanctx_vif_max_required_bw() 343 rcu_access_pointer(sdata->vif.bss_conf.chanctx_conf) == &ctx->conf) in ieee80211_get_chanctx_max_required_bw() 425 if (rcu_access_pointer(link_conf->chanctx_conf) != &ctx->conf) in ieee80211_chan_bw_change() 621 if (rcu_access_pointer(link->conf->chanctx_conf) != conf) in ieee80211_chanctx_radar_required() 792 if (rcu_access_pointer(link_conf->chanctx_conf) != conf) in ieee80211_recalc_chanctx_chantype() 867 conf = rcu_dereference_protected(link->conf->chanctx_conf, in ieee80211_assign_link_chanctx() 892 rcu_assign_pointer(link->conf->chanctx_conf, conf); in ieee80211_assign_link_chanctx() 958 if (rcu_access_pointer(link->conf->chanctx_conf) != &chanctx->conf) in ieee80211_recalc_smps_chanctx() 988 rcu_access_pointer(sdata->vif.bss_conf.chanctx_conf) == &chanctx->conf) in ieee80211_recalc_smps_chanctx() [all …]
|
H A D | rate.c | 38 struct ieee80211_chanctx_conf *chanctx_conf; in rate_control_rate_init() local 47 chanctx_conf = rcu_dereference(sta->sdata->vif.bss_conf.chanctx_conf); in rate_control_rate_init() 48 if (WARN_ON(!chanctx_conf)) { in rate_control_rate_init() 53 sband = local->hw.wiphy->bands[chanctx_conf->def.chan->band]; in rate_control_rate_init() 63 ref->ops->rate_init(ref->priv, sband, &chanctx_conf->def, ista, in rate_control_rate_init() 102 struct ieee80211_chanctx_conf *chanctx_conf; in rate_control_rate_update() local 109 chanctx_conf = rcu_dereference(sta->sdata->vif.bss_conf.chanctx_conf); in rate_control_rate_update() 110 if (WARN_ON(!chanctx_conf)) { in rate_control_rate_update() 116 ref->ops->rate_update(ref->priv, sband, &chanctx_conf->def, in rate_control_rate_update()
|
H A D | mesh.c | 395 struct ieee80211_chanctx_conf *chanctx_conf; in mesh_add_ds_params_ie() local 403 chanctx_conf = rcu_dereference(sdata->vif.bss_conf.chanctx_conf); in mesh_add_ds_params_ie() 404 if (WARN_ON(!chanctx_conf)) { in mesh_add_ds_params_ie() 408 chan = chanctx_conf->def.chan; in mesh_add_ds_params_ie() 452 struct ieee80211_chanctx_conf *chanctx_conf; in mesh_add_ht_oper_ie() local 459 chanctx_conf = rcu_dereference(sdata->vif.bss_conf.chanctx_conf); in mesh_add_ht_oper_ie() 460 if (WARN_ON(!chanctx_conf)) { in mesh_add_ht_oper_ie() 464 channel = chanctx_conf->def.chan; in mesh_add_ht_oper_ie() 524 struct ieee80211_chanctx_conf *chanctx_conf; in mesh_add_vht_oper_ie() local 531 chanctx_conf = rcu_dereference(sdata->vif.bss_conf.chanctx_conf); in mesh_add_vht_oper_ie() [all …]
|
H A D | tx.c | 52 struct ieee80211_chanctx_conf *chanctx_conf; in ieee80211_duration() local 60 chanctx_conf = rcu_dereference(tx->sdata->vif.bss_conf.chanctx_conf); in ieee80211_duration() 61 if (chanctx_conf) { in ieee80211_duration() 62 shift = ieee80211_chandef_get_shift(&chanctx_conf->def); in ieee80211_duration() 63 rate_flags = ieee80211_chandef_rate_flags(&chanctx_conf->def); in ieee80211_duration() 2298 struct ieee80211_chanctx_conf *chanctx_conf; in ieee80211_monitor_start_xmit() local 2381 chanctx_conf = rcu_dereference(sdata->vif.bss_conf.chanctx_conf); in ieee80211_monitor_start_xmit() 2382 if (!chanctx_conf) { in ieee80211_monitor_start_xmit() 2385 chanctx_conf = in ieee80211_monitor_start_xmit() 2386 rcu_dereference(tmp_sdata->vif.bss_conf.chanctx_conf); in ieee80211_monitor_start_xmit() [all …]
|
H A D | offchannel.c | 864 struct ieee80211_chanctx_conf *chanctx_conf = NULL; in ieee80211_mgmt_tx() local 876 chanctx_conf = rcu_dereference(conf->chanctx_conf); in ieee80211_mgmt_tx() 877 if (!chanctx_conf) in ieee80211_mgmt_tx() 880 if (mlo_sta && params->chan == chanctx_conf->def.chan && in ieee80211_mgmt_tx() 889 chanctx_conf = NULL; in ieee80211_mgmt_tx() 892 if (chanctx_conf) { in ieee80211_mgmt_tx() 895 chanctx_conf->def.chan); in ieee80211_mgmt_tx()
|
H A D | ieee80211_i.h | 1177 struct ieee80211_chanctx_conf *chanctx_conf; in ieee80211_vif_get_shift() local 1181 chanctx_conf = rcu_dereference(vif->bss_conf.chanctx_conf); in ieee80211_vif_get_shift() 1182 if (chanctx_conf) in ieee80211_vif_get_shift() 1183 shift = ieee80211_chandef_get_shift(&chanctx_conf->def); in ieee80211_vif_get_shift() 1621 struct ieee80211_chanctx_conf *chanctx_conf; in ieee80211_get_sband() local 1627 chanctx_conf = rcu_dereference(sdata->vif.bss_conf.chanctx_conf); in ieee80211_get_sband() 1629 if (!chanctx_conf) { in ieee80211_get_sband() 1634 band = chanctx_conf->def.chan->band; in ieee80211_get_sband() 1644 struct ieee80211_chanctx_conf *chanctx_conf; in ieee80211_get_link_sband() local 1648 chanctx_conf = rcu_dereference(link->conf->chanctx_conf); in ieee80211_get_link_sband() [all …]
|
H A D | ibss.c | 601 struct ieee80211_chanctx_conf *chanctx_conf; in ieee80211_ibss_add_sta() local 628 chanctx_conf = rcu_dereference(sdata->vif.bss_conf.chanctx_conf); in ieee80211_ibss_add_sta() 629 if (WARN_ON_ONCE(!chanctx_conf)) in ieee80211_ibss_add_sta() 631 band = chanctx_conf->def.chan->band; in ieee80211_ibss_add_sta() 632 scan_width = cfg80211_chandef_to_scan_width(&chanctx_conf->def); in ieee80211_ibss_add_sta() 1206 struct ieee80211_chanctx_conf *chanctx_conf; in ieee80211_ibss_rx_no_sta() local 1228 chanctx_conf = rcu_dereference(sdata->vif.bss_conf.chanctx_conf); in ieee80211_ibss_rx_no_sta() 1229 if (WARN_ON_ONCE(!chanctx_conf)) { in ieee80211_ibss_rx_no_sta() 1233 band = chanctx_conf->def.chan->band; in ieee80211_ibss_rx_no_sta() 1234 scan_width = cfg80211_chandef_to_scan_width(&chanctx_conf->def); in ieee80211_ibss_rx_no_sta()
|
H A D | util.c | 1676 struct ieee80211_chanctx_conf *chanctx_conf; in ieee80211_regulatory_limit_wmm_params() local 1686 chanctx_conf = rcu_dereference(sdata->vif.bss_conf.chanctx_conf); in ieee80211_regulatory_limit_wmm_params() 1687 if (chanctx_conf) in ieee80211_regulatory_limit_wmm_params() 1688 center_freq = chanctx_conf->def.chan->center_freq; in ieee80211_regulatory_limit_wmm_params() 1719 struct ieee80211_chanctx_conf *chanctx_conf; in ieee80211_set_wmm_default() local 1734 chanctx_conf = rcu_dereference(link->conf->chanctx_conf); in ieee80211_set_wmm_default() 1735 use_11b = (chanctx_conf && in ieee80211_set_wmm_default() 1736 chanctx_conf->def.chan->band == NL80211_BAND_2GHZ) && in ieee80211_set_wmm_default() 2416 conf = rcu_dereference_protected(link->conf->chanctx_conf, in ieee80211_assign_chanctx() 3048 struct ieee80211_chanctx_conf *chanctx_conf; in ieee80211_recalc_smps() local [all …]
|
H A D | iface.c | 50 struct ieee80211_chanctx_conf *chanctx_conf; in __ieee80211_recalc_txpower() local 54 chanctx_conf = rcu_dereference(sdata->vif.bss_conf.chanctx_conf); in __ieee80211_recalc_txpower() 55 if (!chanctx_conf) { in __ieee80211_recalc_txpower() 60 power = ieee80211_chandef_max_power(&chanctx_conf->def); in __ieee80211_recalc_txpower() 603 RCU_INIT_POINTER(sdata->vif.bss_conf.chanctx_conf, NULL); in ieee80211_do_stop()
|
H A D | cfg.c | 3360 if (rcu_access_pointer(sdata->vif.bss_conf.chanctx_conf) && in ieee80211_set_bitrate_mask() 3922 conf = rcu_dereference_protected(sdata->vif.bss_conf.chanctx_conf, in __ieee80211_channel_switch() 4140 struct ieee80211_chanctx_conf *chanctx_conf; in ieee80211_probe_client() local 4156 chanctx_conf = rcu_dereference(sdata->vif.bss_conf.chanctx_conf); in ieee80211_probe_client() 4157 if (WARN_ON(!chanctx_conf)) { in ieee80211_probe_client() 4161 band = chanctx_conf->def.chan->band; in ieee80211_probe_client() 4228 struct ieee80211_chanctx_conf *chanctx_conf; in ieee80211_cfg_get_channel() local 4239 chanctx_conf = rcu_dereference(link->conf->chanctx_conf); in ieee80211_cfg_get_channel() 4240 if (chanctx_conf) { in ieee80211_cfg_get_channel()
|
H A D | sta_info.c | 1790 struct ieee80211_chanctx_conf *chanctx_conf; in ieee80211_send_null_response() local 1852 chanctx_conf = rcu_dereference(sdata->vif.bss_conf.chanctx_conf); in ieee80211_send_null_response() 1853 if (WARN_ON(!chanctx_conf)) { in ieee80211_send_null_response() 1859 info->band = chanctx_conf->def.chan->band; in ieee80211_send_null_response()
|
H A D | mlme.c | 1037 struct ieee80211_chanctx_conf *chanctx_conf; in ieee80211_assoc_link_elems() local 1066 chanctx_conf = rcu_dereference(link->conf->chanctx_conf); in ieee80211_assoc_link_elems() 1067 if (chanctx_conf) in ieee80211_assoc_link_elems() 1068 width = chanctx_conf->def.width; in ieee80211_assoc_link_elems() 1940 conf = rcu_dereference_protected(link->conf->chanctx_conf, in ieee80211_sta_process_chanswitch() 5917 struct ieee80211_chanctx_conf *chanctx_conf; in ieee80211_rx_mgmt_beacon() local 5954 chanctx_conf = rcu_dereference(link->conf->chanctx_conf); in ieee80211_rx_mgmt_beacon() 5955 if (!chanctx_conf) { in ieee80211_rx_mgmt_beacon() 5961 ieee80211_channel_to_khz(chanctx_conf->def.chan)) { in ieee80211_rx_mgmt_beacon() 5965 chan = chanctx_conf->def.chan; in ieee80211_rx_mgmt_beacon()
|
H A D | airtime.c | 643 conf = rcu_dereference(vif->bss_conf.chanctx_conf); in ieee80211_calc_expected_tx_airtime()
|
/openbmc/linux/drivers/net/wireless/virtual/ |
H A D | mac80211_hwsim.c | 1013 rcu_dereference(vif->bss_conf.chanctx_conf)->def.chan); in hwsim_send_ps_poll() 1051 rcu_dereference(vif->bss_conf.chanctx_conf)->def.chan); in hwsim_send_nullfunc() 1622 chanctx = rcu_dereference(conf->chanctx_conf); in mac80211_hwsim_tx_iter() 1892 if (!rcu_access_pointer(bss_conf->chanctx_conf)) in mac80211_hwsim_select_tx_link() 1909 struct ieee80211_chanctx_conf *chanctx_conf; in mac80211_hwsim_tx() local 1974 chanctx_conf = rcu_dereference(bss_conf->chanctx_conf); in mac80211_hwsim_tx() 1975 if (chanctx_conf) { in mac80211_hwsim_tx() 1976 channel = chanctx_conf->def.chan; in mac80211_hwsim_tx() 1977 confbw = chanctx_conf->def.width; in mac80211_hwsim_tx() 2215 rcu_dereference(link_conf->chanctx_conf)->def.chan); in __mac80211_hwsim_beacon_tx() [all …]
|