提交 3e6895c5 编写于 作者: E Emmanuel Grumbach 提交者: Wey-Yi Guy

iwlwifi: remove iwl_print_rx_config_cmd from shared

It is op_mode related
Signed-off-by: NEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: NWey-Yi Guy <wey-yi.w.guy@intel.com>
上级 36a79223
...@@ -392,4 +392,14 @@ void iwl_testmode_cleanup(struct iwl_priv *priv) ...@@ -392,4 +392,14 @@ void iwl_testmode_cleanup(struct iwl_priv *priv)
} }
#endif #endif
#ifdef CONFIG_IWLWIFI_DEBUG
void iwl_print_rx_config_cmd(struct iwl_priv *priv,
enum iwl_rxon_context_id ctxid);
#else
static inline void iwl_print_rx_config_cmd(struct iwl_priv *priv,
enum iwl_rxon_context_id ctxid)
{
}
#endif
#endif /* __iwl_agn_h__ */ #endif /* __iwl_agn_h__ */
...@@ -835,6 +835,11 @@ static void iwlagn_fw_error(struct iwl_priv *priv, bool ondemand) ...@@ -835,6 +835,11 @@ static void iwlagn_fw_error(struct iwl_priv *priv, bool ondemand)
unsigned int reload_msec; unsigned int reload_msec;
unsigned long reload_jiffies; unsigned long reload_jiffies;
#ifdef CONFIG_IWLWIFI_DEBUG
if (iwl_get_debug_level(priv->shrd) & IWL_DL_FW_ERRORS)
iwl_print_rx_config_cmd(priv, IWL_RXON_CTX_BSS);
#endif
/* Set the FW error flag -- cleared on iwl_down */ /* Set the FW error flag -- cleared on iwl_down */
set_bit(STATUS_FW_ERROR, &priv->shrd->status); set_bit(STATUS_FW_ERROR, &priv->shrd->status);
......
...@@ -557,16 +557,6 @@ iwl_remove_notification(struct iwl_shared *shrd, ...@@ -557,16 +557,6 @@ iwl_remove_notification(struct iwl_shared *shrd,
void iwl_reset_traffic_log(struct iwl_priv *priv); void iwl_reset_traffic_log(struct iwl_priv *priv);
#endif /* CONFIG_IWLWIFI_DEBUGFS */ #endif /* CONFIG_IWLWIFI_DEBUGFS */
#ifdef CONFIG_IWLWIFI_DEBUG
void iwl_print_rx_config_cmd(struct iwl_priv *priv,
enum iwl_rxon_context_id ctxid);
#else
static inline void iwl_print_rx_config_cmd(struct iwl_priv *priv,
enum iwl_rxon_context_id ctxid)
{
}
#endif
#define IWL_CMD(x) case x: return #x #define IWL_CMD(x) case x: return #x
#define IWL_MASK(lo, hi) ((1 << (hi)) | ((1 << (hi)) - (1 << (lo)))) #define IWL_MASK(lo, hi) ((1 << (hi)) | ((1 << (hi)) - (1 << (lo))))
......
...@@ -695,10 +695,6 @@ static void iwl_irq_handle_error(struct iwl_trans *trans) ...@@ -695,10 +695,6 @@ static void iwl_irq_handle_error(struct iwl_trans *trans)
iwl_dump_csr(trans); iwl_dump_csr(trans);
iwl_dump_fh(trans, NULL, false); iwl_dump_fh(trans, NULL, false);
iwl_dump_nic_event_log(trans, false, NULL, false); iwl_dump_nic_event_log(trans, false, NULL, false);
#ifdef CONFIG_IWLWIFI_DEBUG
if (iwl_get_debug_level(trans->shrd) & IWL_DL_FW_ERRORS)
iwl_print_rx_config_cmd(priv(trans), IWL_RXON_CTX_BSS);
#endif
iwl_op_mode_nic_error(trans->op_mode); iwl_op_mode_nic_error(trans->op_mode);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册