iwlwifi: fix software rf_kill problem when interface is down

The patch fixes the problem that software rf_kill messes up the
card status when it is disabled if the interface is down.

Signed-off-by: Zhu Yi <yi.zhu@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
Zhu Yi 2008-06-12 09:47:17 +08:00 committed by John W. Linville
parent 95483b69c8
commit 808e72a088
2 changed files with 4 additions and 2 deletions

View File

@ -2875,7 +2875,8 @@ static void iwl3945_radio_kill_sw(struct iwl3945_priv *priv, int disable_radio)
return;
}
queue_work(priv->workqueue, &priv->restart);
if (priv->is_open)
queue_work(priv->workqueue, &priv->restart);
return;
}

View File

@ -970,7 +970,8 @@ int iwl4965_radio_kill_sw(struct iwl_priv *priv, int disable_radio)
return 0;
}
queue_work(priv->workqueue, &priv->restart);
if (priv->is_open)
queue_work(priv->workqueue, &priv->restart);
return 1;
}