aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl-core.c
diff options
context:
space:
mode:
authorMohamed Abbas <mohamed.abbas@intel.com>2009-03-18 00:59:18 -0400
committerJohn W. Linville <linville@tuxdriver.com>2009-03-27 20:12:57 -0400
commit019fb97d47896c0ead4a77f55e5350c2750f675f (patch)
treefd737071fdd2b923fcdc47a6ec7d44f4ea4f9c8d /drivers/net/wireless/iwlwifi/iwl-core.c
parent3b85875a252dbbd95c2e04d73639719a0a79634e (diff)
iwlagn: use changed in mac_config
In function iwl_mac_config use changed flag to call only the affected functions. This patch also allow user to cache channel, txpower and power value when the interface is not ready and apply the changes once the interface ready. Signed-off-by: Mohamed Abbas <mohamed.abbas@intel.com> Signed-off-by: Reinette Chatre <reinette.chatre@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-core.c')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-core.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-core.c b/drivers/net/wireless/iwlwifi/iwl-core.c
index 085e9cf1cac..bcdecb11080 100644
--- a/drivers/net/wireless/iwlwifi/iwl-core.c
+++ b/drivers/net/wireless/iwlwifi/iwl-core.c
@@ -1437,6 +1437,10 @@ int iwl_set_tx_power(struct iwl_priv *priv, s8 tx_power, bool force)
1437 1437
1438 priv->tx_power_user_lmt = tx_power; 1438 priv->tx_power_user_lmt = tx_power;
1439 1439
1440 /* if nic is not up don't send command */
1441 if (!iwl_is_ready_rf(priv))
1442 return ret;
1443
1440 if (force && priv->cfg->ops->lib->send_tx_power) 1444 if (force && priv->cfg->ops->lib->send_tx_power)
1441 ret = priv->cfg->ops->lib->send_tx_power(priv); 1445 ret = priv->cfg->ops->lib->send_tx_power(priv);
1442 1446