iwlwifi: fix initialisation while RF-kill is asserted
[deliverable/linux.git] / drivers / net / wireless / iwlwifi / pcie / tx.c
index 595df1756b84d67f825c3696f66be6d770e5b8c0..bf5f8246385eec1ef6cc4401600292d3bcb0bd9a 100644 (file)
@@ -1569,7 +1569,8 @@ int iwl_trans_pcie_send_hcmd(struct iwl_trans *trans, struct iwl_host_cmd *cmd)
        if (test_bit(STATUS_FW_ERROR, &trans_pcie->status))
                return -EIO;
 
-       if (test_bit(STATUS_RFKILL, &trans_pcie->status)) {
+       if (!(cmd->flags & CMD_SEND_IN_RFKILL) &&
+           test_bit(STATUS_RFKILL, &trans_pcie->status)) {
                IWL_DEBUG_RF_KILL(trans, "Dropping CMD 0x%x: RF KILL\n",
                                  cmd->id);
                return -ERFKILL;
This page took 0.046649 seconds and 5 git commands to generate.