提交 754d7d9e 编写于 作者: E Emmanuel Grumbach 提交者: Johannes Berg

iwlwifi: add debug message when a CMD is dropped in RFKILL

Signed-off-by: NEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
上级 1b53f218
...@@ -1566,8 +1566,11 @@ int iwl_trans_pcie_send_hcmd(struct iwl_trans *trans, struct iwl_host_cmd *cmd) ...@@ -1566,8 +1566,11 @@ int iwl_trans_pcie_send_hcmd(struct iwl_trans *trans, struct iwl_host_cmd *cmd)
if (test_bit(STATUS_FW_ERROR, &trans_pcie->status)) if (test_bit(STATUS_FW_ERROR, &trans_pcie->status))
return -EIO; return -EIO;
if (test_bit(STATUS_RFKILL, &trans_pcie->status)) if (test_bit(STATUS_RFKILL, &trans_pcie->status)) {
IWL_DEBUG_RF_KILL(trans, "Dropping CMD 0x%x: RF KILL\n",
cmd->id);
return -ERFKILL; return -ERFKILL;
}
if (cmd->flags & CMD_ASYNC) if (cmd->flags & CMD_ASYNC)
return iwl_pcie_send_hcmd_async(trans, cmd); return iwl_pcie_send_hcmd_async(trans, cmd);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册