iwlwifi: fix rf_kill state inconsistent during suspend and resume
[deliverable/linux.git] / drivers / net / wireless / iwlwifi / iwl3945-base.c
index 1c3ca6ebdc4d472b09d98180e0ecc3c6d19c8e93..3d1da0759b977b0885220ce3a0404e452252033d 100644 (file)
@@ -4743,8 +4743,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.026562 seconds and 5 git commands to generate.