aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl4965-base.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl4965-base.c b/drivers/net/wireless/iwlwifi/iwl4965-base.c
index d1bf599e483f..2d0d079a24ec 100644
--- a/drivers/net/wireless/iwlwifi/iwl4965-base.c
+++ b/drivers/net/wireless/iwlwifi/iwl4965-base.c
@@ -2187,13 +2187,15 @@ static int __iwl4965_up(struct iwl_priv *priv)
2187 if (iwl_read32(priv, CSR_GP_CNTRL) & 2187 if (iwl_read32(priv, CSR_GP_CNTRL) &
2188 CSR_GP_CNTRL_REG_FLAG_HW_RF_KILL_SW) 2188 CSR_GP_CNTRL_REG_FLAG_HW_RF_KILL_SW)
2189 clear_bit(STATUS_RF_KILL_HW, &priv->status); 2189 clear_bit(STATUS_RF_KILL_HW, &priv->status);
2190 else { 2190 else
2191 set_bit(STATUS_RF_KILL_HW, &priv->status); 2191 set_bit(STATUS_RF_KILL_HW, &priv->status);
2192 if (!test_bit(STATUS_IN_SUSPEND, &priv->status)) { 2192
2193 iwl_rfkill_set_hw_state(priv); 2193 if (!test_bit(STATUS_IN_SUSPEND, &priv->status) &&
2194 IWL_WARNING("Radio disabled by HW RF Kill switch\n"); 2194 iwl_is_rfkill(priv)) {
2195 return -ENODEV; 2195 iwl_rfkill_set_hw_state(priv);
2196 } 2196 IWL_WARNING("Radio disabled by %s RF Kill switch\n",
2197 test_bit(STATUS_RF_KILL_HW, &priv->status) ? "HW" : "SW");
2198 return -ENODEV;
2197 } 2199 }
2198 2200
2199 iwl_rfkill_set_hw_state(priv); 2201 iwl_rfkill_set_hw_state(priv);