iwlwifi: fix rf_kill state inconsistent during suspend and resume
[deliverable/linux.git] / drivers / net / wireless / iwlwifi / iwl4965-base.c
index 3b31607a27fc4b34695741d788d128043f3784b7..b54fe5e6d5293c3debcf0cde2309a10f316ad6a0 100644 (file)
@@ -5059,8 +5059,10 @@ static void iwl_irq_tasklet(struct iwl_priv *priv)
                 *   when we loaded driver, and is now set to "enable".
                 * After we're Alive, RF_KILL gets handled by
                 *   iwl_rx_card_state_notif() */
-               if (!hw_rf_kill && !test_bit(STATUS_ALIVE, &priv->status))
+               if (!hw_rf_kill && !test_bit(STATUS_ALIVE, &priv->status)) {
+                       clear_bit(STATUS_RF_KILL_HW, &priv->status);
                        queue_work(priv->workqueue, &priv->restart);
+               }
 
                handled |= CSR_INT_BIT_RF_KILL;
        }
This page took 0.025259 seconds and 5 git commands to generate.