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:
Johannes Berg 2010-01-21 05:24:04 -08:00 committed by Reinette Chatre
parent fac0610870
commit 4d6959219b

View file

@ -308,8 +308,7 @@ int iwl_power_update_mode(struct iwl_priv *priv, bool force)
{ {
int ret = 0; int ret = 0;
struct iwl_tt_mgmt *tt = &priv->thermal_throttle; struct iwl_tt_mgmt *tt = &priv->thermal_throttle;
bool enabled = (priv->iw_mode == NL80211_IFTYPE_STATION) && bool enabled = priv->hw->conf.flags & IEEE80211_CONF_PS;
(priv->hw->conf.flags & IEEE80211_CONF_PS);
bool update_chains; bool update_chains;
struct iwl_powertable_cmd cmd; struct iwl_powertable_cmd cmd;
int dtimper; int dtimper;