mirror of
https://github.com/edk2-porting/linux-next.git
synced 2025-01-14 00:24:15 +08:00
iwlwifi: no need to test iw_mode in power saving
mac80211 will only enable powersaving for station mode. Signed-off-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
This commit is contained in:
parent
fac0610870
commit
4d6959219b
@ -308,8 +308,7 @@ int iwl_power_update_mode(struct iwl_priv *priv, bool force)
|
||||
{
|
||||
int ret = 0;
|
||||
struct iwl_tt_mgmt *tt = &priv->thermal_throttle;
|
||||
bool enabled = (priv->iw_mode == NL80211_IFTYPE_STATION) &&
|
||||
(priv->hw->conf.flags & IEEE80211_CONF_PS);
|
||||
bool enabled = priv->hw->conf.flags & IEEE80211_CONF_PS;
|
||||
bool update_chains;
|
||||
struct iwl_powertable_cmd cmd;
|
||||
int dtimper;
|
||||
|
Loading…
Reference in New Issue
Block a user