Commit b57d46aa authored by Reinette Chatre's avatar Reinette Chatre Committed by John W. Linville

iwlwifi: fix situation in which debug message is printed

3945 does not have update_chain_flags defined and because if this we always
see the debug message that does not apply to it. Add a check to be specific
about what is actually happening.
Signed-off-by: default avatarReinette Chatre <reinette.chatre@intel.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 4c561a02
...@@ -321,7 +321,7 @@ int iwl_power_update_mode(struct iwl_priv *priv, bool force) ...@@ -321,7 +321,7 @@ int iwl_power_update_mode(struct iwl_priv *priv, bool force)
if (priv->cfg->ops->lib->update_chain_flags && if (priv->cfg->ops->lib->update_chain_flags &&
update_chains) update_chains)
priv->cfg->ops->lib->update_chain_flags(priv); priv->cfg->ops->lib->update_chain_flags(priv);
else else if (priv->cfg->ops->lib->update_chain_flags)
IWL_DEBUG_POWER(priv, IWL_DEBUG_POWER(priv,
"Cannot update the power, chain noise " "Cannot update the power, chain noise "
"calibration running: %d\n", "calibration running: %d\n",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment