return -EIO;
}
+ iwl_enable_rfkill_int(trans);
+
/* If platform's RF_KILL switch is NOT set to KILL */
hw_rfkill = iwl_is_rfkill_set(trans);
iwl_op_mode_hw_rf_kill(trans->op_mode, hw_rfkill);
-
- if (hw_rfkill) {
- iwl_enable_rfkill_int(trans);
+ if (hw_rfkill)
return -ERFKILL;
- }
iwl_write32(trans, CSR_INT, 0xFFFFFFFF);
{
bool hw_rfkill;
+ iwl_enable_rfkill_int(trans);
+
hw_rfkill = iwl_is_rfkill_set(trans);
+ iwl_op_mode_hw_rf_kill(trans->op_mode, hw_rfkill);
- if (hw_rfkill)
- iwl_enable_rfkill_int(trans);
- else
+ if (!hw_rfkill)
iwl_enable_interrupts(trans);
- iwl_op_mode_hw_rf_kill(trans->op_mode, hw_rfkill);
-
return 0;
}
#endif /* CONFIG_PM_SLEEP */