aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl3945-base.c
diff options
context:
space:
mode:
authorSamuel Ortiz <samuel.ortiz@intel.com>2009-01-23 16:45:19 -0500
committerJohn W. Linville <linville@tuxdriver.com>2009-01-29 16:01:37 -0500
commitaf48d048ac5f10981df093c7566ae0fea9ba1967 (patch)
tree9842eae27031a15672ec15945254a448b45856b8 /drivers/net/wireless/iwlwifi/iwl3945-base.c
parent7e4bca5e5b8dffd9373470693e20f43b0aee566c (diff)
iwl3945: Add restart_fw module parameter
In order to be in sync with the agn code, we're ading a fw_restart3945 module parameter to iwl3945. Signed-off-by: Samuel Ortiz <samuel.ortiz@intel.com> Signed-off-by: Reinette Chatre <reinette.chatre@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl3945-base.c')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl3945-base.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl3945-base.c b/drivers/net/wireless/iwlwifi/iwl3945-base.c
index 8aaa6bfd128d..13fb61851845 100644
--- a/drivers/net/wireless/iwlwifi/iwl3945-base.c
+++ b/drivers/net/wireless/iwlwifi/iwl3945-base.c
@@ -90,6 +90,7 @@ MODULE_LICENSE("GPL");
90struct iwl_mod_params iwl3945_mod_params = { 90struct iwl_mod_params iwl3945_mod_params = {
91 .num_of_queues = IWL39_MAX_NUM_QUEUES, 91 .num_of_queues = IWL39_MAX_NUM_QUEUES,
92 .sw_crypto = 1, 92 .sw_crypto = 1,
93 .restart_fw = 1,
93 /* the rest are 0 by default */ 94 /* the rest are 0 by default */
94}; 95};
95 96
@@ -3088,7 +3089,8 @@ static void iwl3945_irq_handle_error(struct iwl_priv *priv)
3088 sizeof(priv->recovery39_rxon)); 3089 sizeof(priv->recovery39_rxon));
3089 priv->error_recovering = 1; 3090 priv->error_recovering = 1;
3090 } 3091 }
3091 queue_work(priv->workqueue, &priv->restart); 3092 if (priv->cfg->mod_params->restart_fw)
3093 queue_work(priv->workqueue, &priv->restart);
3092 } 3094 }
3093} 3095}
3094 3096
@@ -6482,5 +6484,8 @@ MODULE_PARM_DESC(disable_hw_scan, "disable hardware scanning (default 0)");
6482module_param_named(queues_num, iwl3945_mod_params.num_of_queues, int, 0444); 6484module_param_named(queues_num, iwl3945_mod_params.num_of_queues, int, 0444);
6483MODULE_PARM_DESC(queues_num, "number of hw queues."); 6485MODULE_PARM_DESC(queues_num, "number of hw queues.");
6484 6486
6487module_param_named(fw_restart3945, iwl3945_mod_params.restart_fw, int, 0444);
6488MODULE_PARM_DESC(fw_restart3945, "restart firmware in case of error");
6489
6485module_exit(iwl3945_exit); 6490module_exit(iwl3945_exit);
6486module_init(iwl3945_init); 6491module_init(iwl3945_init);