|
@@ -89,7 +89,7 @@ MODULE_LICENSE("GPL");
|
|
|
|
|
|
/* module parameters */
|
|
/* module parameters */
|
|
struct iwl_mod_params iwl3945_mod_params = {
|
|
struct iwl_mod_params iwl3945_mod_params = {
|
|
- .num_of_queues = IWL39_MAX_NUM_QUEUES,
|
|
|
|
|
|
+ .num_of_queues = IWL39_NUM_QUEUES, /* Not used */
|
|
.sw_crypto = 1,
|
|
.sw_crypto = 1,
|
|
.restart_fw = 1,
|
|
.restart_fw = 1,
|
|
/* the rest are 0 by default */
|
|
/* the rest are 0 by default */
|
|
@@ -3947,15 +3947,6 @@ static int iwl3945_pci_probe(struct pci_dev *pdev, const struct pci_device_id *e
|
|
priv = hw->priv;
|
|
priv = hw->priv;
|
|
SET_IEEE80211_DEV(hw, &pdev->dev);
|
|
SET_IEEE80211_DEV(hw, &pdev->dev);
|
|
|
|
|
|
- if ((iwl3945_mod_params.num_of_queues > IWL39_MAX_NUM_QUEUES) ||
|
|
|
|
- (iwl3945_mod_params.num_of_queues < IWL_MIN_NUM_QUEUES)) {
|
|
|
|
- IWL_ERR(priv,
|
|
|
|
- "invalid queues_num, should be between %d and %d\n",
|
|
|
|
- IWL_MIN_NUM_QUEUES, IWL39_MAX_NUM_QUEUES);
|
|
|
|
- err = -EINVAL;
|
|
|
|
- goto out_ieee80211_free_hw;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
/*
|
|
/*
|
|
* Disabling hardware scan means that mac80211 will perform scans
|
|
* Disabling hardware scan means that mac80211 will perform scans
|
|
* "the hard way", rather than using device's scan.
|
|
* "the hard way", rather than using device's scan.
|
|
@@ -4272,10 +4263,6 @@ module_param_named(debug, iwl3945_mod_params.debug, uint, 0444);
|
|
MODULE_PARM_DESC(debug, "debug output mask");
|
|
MODULE_PARM_DESC(debug, "debug output mask");
|
|
module_param_named(disable_hw_scan, iwl3945_mod_params.disable_hw_scan, int, 0444);
|
|
module_param_named(disable_hw_scan, iwl3945_mod_params.disable_hw_scan, int, 0444);
|
|
MODULE_PARM_DESC(disable_hw_scan, "disable hardware scanning (default 0)");
|
|
MODULE_PARM_DESC(disable_hw_scan, "disable hardware scanning (default 0)");
|
|
-
|
|
|
|
-module_param_named(queues_num, iwl3945_mod_params.num_of_queues, int, 0444);
|
|
|
|
-MODULE_PARM_DESC(queues_num, "number of hw queues.");
|
|
|
|
-
|
|
|
|
module_param_named(fw_restart3945, iwl3945_mod_params.restart_fw, int, 0444);
|
|
module_param_named(fw_restart3945, iwl3945_mod_params.restart_fw, int, 0444);
|
|
MODULE_PARM_DESC(fw_restart3945, "restart firmware in case of error");
|
|
MODULE_PARM_DESC(fw_restart3945, "restart firmware in case of error");
|
|
|
|
|