diff options
Diffstat (limited to 'sys/contrib/dev/iwlwifi/mvm/power.c')
| -rw-r--r-- | sys/contrib/dev/iwlwifi/mvm/power.c | 10 | 
1 files changed, 6 insertions, 4 deletions
| diff --git a/sys/contrib/dev/iwlwifi/mvm/power.c b/sys/contrib/dev/iwlwifi/mvm/power.c index bc363e8427e4..610de29b7be0 100644 --- a/sys/contrib/dev/iwlwifi/mvm/power.c +++ b/sys/contrib/dev/iwlwifi/mvm/power.c @@ -1,6 +1,6 @@  // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause  /* - * Copyright (C) 2012-2014, 2018-2019, 2021-2024 Intel Corporation + * Copyright (C) 2012-2014, 2018-2019, 2021-2025 Intel Corporation   * Copyright (C) 2013-2014 Intel Mobile Communications GmbH   * Copyright (C) 2015-2017 Intel Deutschland GmbH   */ @@ -231,7 +231,6 @@ static void iwl_mvm_allow_uapsd_iterator(void *_data, u8 *mac,  	switch (vif->type) {  	case NL80211_IFTYPE_AP:  	case NL80211_IFTYPE_ADHOC: -	case NL80211_IFTYPE_NAN:  		data->allow_uapsd = false;  		break;  	case NL80211_IFTYPE_STATION: @@ -376,6 +375,9 @@ static void iwl_mvm_power_build_cmd(struct iwl_mvm *mvm,  	if (!vif->cfg.ps || !mvmvif->pm_enabled)  		return; +	if (iwl_fw_lookup_cmd_ver(mvm->fw, MAC_PM_POWER_TABLE, 0) >= 2) +		cmd->flags |= cpu_to_le16(POWER_FLAGS_ENABLE_SMPS_MSK); +  	if (iwl_mvm_vif_low_latency(mvmvif) && vif->p2p &&  	    (!fw_has_capa(&mvm->fw->ucode_capa,  			 IWL_UCODE_TLV_CAPA_SHORT_PM_TIMEOUTS) || @@ -567,7 +569,7 @@ struct iwl_power_vifs {  	bool monitor_active;  }; -static void iwl_mvm_power_disable_pm_iterator(void *_data, u8* mac, +static void iwl_mvm_power_disable_pm_iterator(void *_data, u8 *mac,  					      struct ieee80211_vif *vif)  {  	struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); @@ -575,7 +577,7 @@ static void iwl_mvm_power_disable_pm_iterator(void *_data, u8* mac,  	mvmvif->pm_enabled = false;  } -static void iwl_mvm_power_ps_disabled_iterator(void *_data, u8* mac, +static void iwl_mvm_power_ps_disabled_iterator(void *_data, u8 *mac,  					       struct ieee80211_vif *vif)  {  	struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); | 
