iwlwifi: use iwlagn_fw_error instead of iwl_nic_error
authorMeenakshi Venkataraman <meenakshi.venkataraman@intel.com>
Thu, 15 Mar 2012 20:26:54 +0000 (13:26 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 9 Apr 2012 20:37:24 +0000 (16:37 -0400)
In the process, make iwlagn_fw_error
a non-static function, as it is used
by more than one file.

Signed-off-by: Meenakshi Venkataraman <meenakshi.venkataraman@intel.com>
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/iwlwifi/iwl-agn.c
drivers/net/wireless/iwlwifi/iwl-agn.h
drivers/net/wireless/iwlwifi/iwl-core.c

index fa18968c504b2f018cde9797606a0127501eb606..3c49c044240794f0d99e80027e5269d77be3d99f 100644 (file)
@@ -1562,7 +1562,7 @@ static void iwl_cmd_queue_full(struct iwl_op_mode *op_mode)
 
        if (!iwl_check_for_ct_kill(priv)) {
                IWL_ERR(priv, "Restarting adapter queue is full\n");
-               iwl_nic_error(op_mode);
+               iwlagn_fw_error(priv, false);
        }
 }
 
index 436611c32ff142d4264bccaf2040a014401dd21f..22fc363e11b988b34c378acdf11f17f0cc44b8d5 100644 (file)
@@ -132,6 +132,7 @@ int iwl_send_calib_results(struct iwl_priv *priv);
 int iwl_calib_set(struct iwl_priv *priv,
                  const struct iwl_calib_hdr *cmd, int len);
 void iwl_calib_free_results(struct iwl_priv *priv);
+void iwlagn_fw_error(struct iwl_priv *priv, bool ondemand);
 
 /* lib */
 int iwlagn_send_tx_power(struct iwl_priv *priv);
index 46490d3b95b9eb943ce08cc6ee868065b454a835..e59cb5b568a42cd0ff2370a34d48b231230fc728 100644 (file)
@@ -828,7 +828,7 @@ void iwl_print_rx_config_cmd(struct iwl_priv *priv,
 }
 #endif
 
-static void iwlagn_fw_error(struct iwl_priv *priv, bool ondemand)
+void iwlagn_fw_error(struct iwl_priv *priv, bool ondemand)
 {
        unsigned int reload_msec;
        unsigned long reload_jiffies;