Lines Matching +full:2013 +full:- +full:2023

1 // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause
3 * Copyright (C) 2013-2014, 2018-2019, 2022-2023 Intel Corporation
4 * Copyright (C) 2013-2014 Intel Mobile Communications GmbH
17 * Count bound interfaces which are not p2p, besides data->ignore_vif.
18 * data->station_vif will point to one bound vif of type station, if exists.
26 if (vif == data->ignore_vif || !mvmvif->deflink.phy_ctxt || in iwl_mvm_bound_iface_iterator()
27 vif->type == NL80211_IFTYPE_P2P_DEVICE) in iwl_mvm_bound_iface_iterator()
30 data->num_active_macs++; in iwl_mvm_bound_iface_iterator()
32 if (vif->type == NL80211_IFTYPE_STATION) { in iwl_mvm_bound_iface_iterator()
33 data->sta_vif_ap_sta = mvmvif->ap_sta; in iwl_mvm_bound_iface_iterator()
34 if (vif->cfg.assoc) in iwl_mvm_bound_iface_iterator()
35 data->sta_vif_state = SF_FULL_ON; in iwl_mvm_bound_iface_iterator()
37 data->sta_vif_state = SF_INIT_OFF; in iwl_mvm_bound_iface_iterator()
106 sf_cmd->watermark[SF_LONG_DELAY_ON] = cpu_to_le32(SF_W_MARK_SCAN); in iwl_mvm_fill_sf_command()
109 * If we are in association flow - check antenna configuration in iwl_mvm_fill_sf_command()
115 for (link_id = 0; link_id < ARRAY_SIZE(sta->link); link_id++) { in iwl_mvm_fill_sf_command()
116 link_sta = rcu_dereference(sta->link[link_id]); in iwl_mvm_fill_sf_command()
120 if (link_sta->ht_cap.ht_supported || in iwl_mvm_fill_sf_command()
121 link_sta->vht_cap.vht_supported || in iwl_mvm_fill_sf_command()
122 link_sta->eht_cap.has_eht || in iwl_mvm_fill_sf_command()
123 link_sta->he_cap.has_he) { in iwl_mvm_fill_sf_command()
125 max_rx_nss = max(max_rx_nss, link_sta->rx_nss); in iwl_mvm_fill_sf_command()
149 sf_cmd->watermark[SF_FULL_ON] = cpu_to_le32(watermark); in iwl_mvm_fill_sf_command()
153 sf_cmd->long_delay_timeouts[i][j] = in iwl_mvm_fill_sf_command()
163 memcpy(sf_cmd->full_on_timeouts, sf_full_timeout, in iwl_mvm_fill_sf_command()
170 memcpy(sf_cmd->full_on_timeouts, sf_full_timeout_def, in iwl_mvm_fill_sf_command()
187 if (new_state != SF_FULL_ON && mvm->sf_state == new_state) in iwl_mvm_sf_config()
198 return -EINVAL; in iwl_mvm_sf_config()
208 return -EINVAL; in iwl_mvm_sf_config()
214 mvm->sf_state = new_state; in iwl_mvm_sf_config()
239 if (test_bit(IWL_MVM_STATUS_IN_HW_RESTART, &mvm->status) || in iwl_mvm_sf_update()
240 (changed_vif && changed_vif->type == NL80211_IFTYPE_P2P_DEVICE)) in iwl_mvm_sf_update()
243 ieee80211_iterate_active_interfaces_atomic(mvm->hw, in iwl_mvm_sf_update()
254 /* If there are no active macs - change state to SF_INIT_OFF */ in iwl_mvm_sf_update()
266 return -EINVAL; in iwl_mvm_sf_update()
267 if (changed_vif->type != NL80211_IFTYPE_STATION) { in iwl_mvm_sf_update()
269 } else if (changed_vif->cfg.assoc && in iwl_mvm_sf_update()
270 changed_vif->bss_conf.dtim_period) { in iwl_mvm_sf_update()
272 sta = mvmvif->ap_sta; in iwl_mvm_sf_update()
280 /* If there are multiple active macs - change to SF_UNINIT */ in iwl_mvm_sf_update()