diff options
author | Abhijeet Kolekar <abhijeet.kolekar@intel.com> | 2009-04-20 17:37:03 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-04-22 16:57:19 -0400 |
commit | 09f9bf79b7870ac017a94f7f9b603c2e28ac73f7 (patch) | |
tree | a3970d0e66cc01bfa234eccd14a78968d32f9335 /drivers/net/wireless | |
parent | 447fee700f6cb7ada906c5db61c6c045741893e8 (diff) |
iwlwifi: remove radio disable parameter.
Patch removes the "manual radio disable" parameter
as there is no usage scenario of disabling radio using this module parameter.
User can use iwconfig's txpower to enable and disable radio.
This module parameter also does not work as expected. During module load
the status of radio is set, the radio is not actually disabled. Even so,
the moment mac80211 requests the interface to be up the radio will be
enabled again.
Signed-off-by: Abhijeet Kolekar <abhijeet.kolekar@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')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-4965.c | 2 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-5000.c | 3 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-agn.c | 14 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-core.h | 1 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl3945-base.c | 18 |
5 files changed, 4 insertions, 34 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-4965.c b/drivers/net/wireless/iwlwifi/iwl-4965.c index e4762e530345..a98ff4ead720 100644 --- a/drivers/net/wireless/iwlwifi/iwl-4965.c +++ b/drivers/net/wireless/iwlwifi/iwl-4965.c | |||
@@ -2361,8 +2361,6 @@ MODULE_FIRMWARE(IWL4965_MODULE_FIRMWARE(IWL4965_UCODE_API_MAX)); | |||
2361 | 2361 | ||
2362 | module_param_named(antenna, iwl4965_mod_params.antenna, int, 0444); | 2362 | module_param_named(antenna, iwl4965_mod_params.antenna, int, 0444); |
2363 | MODULE_PARM_DESC(antenna, "select antenna (1=Main, 2=Aux, default 0 [both])"); | 2363 | MODULE_PARM_DESC(antenna, "select antenna (1=Main, 2=Aux, default 0 [both])"); |
2364 | module_param_named(disable, iwl4965_mod_params.disable, int, 0444); | ||
2365 | MODULE_PARM_DESC(disable, "manually disable the radio (default 0 [radio on])"); | ||
2366 | module_param_named(swcrypto, iwl4965_mod_params.sw_crypto, int, 0444); | 2364 | module_param_named(swcrypto, iwl4965_mod_params.sw_crypto, int, 0444); |
2367 | MODULE_PARM_DESC(swcrypto, "using crypto in software (default 0 [hardware])"); | 2365 | MODULE_PARM_DESC(swcrypto, "using crypto in software (default 0 [hardware])"); |
2368 | module_param_named(debug, iwl4965_mod_params.debug, uint, 0444); | 2366 | module_param_named(debug, iwl4965_mod_params.debug, uint, 0444); |
diff --git a/drivers/net/wireless/iwlwifi/iwl-5000.c b/drivers/net/wireless/iwlwifi/iwl-5000.c index 5bbb4f953364..d731a836e6c8 100644 --- a/drivers/net/wireless/iwlwifi/iwl-5000.c +++ b/drivers/net/wireless/iwlwifi/iwl-5000.c | |||
@@ -1655,9 +1655,6 @@ struct iwl_cfg iwl5150_agn_cfg = { | |||
1655 | MODULE_FIRMWARE(IWL5000_MODULE_FIRMWARE(IWL5000_UCODE_API_MAX)); | 1655 | MODULE_FIRMWARE(IWL5000_MODULE_FIRMWARE(IWL5000_UCODE_API_MAX)); |
1656 | MODULE_FIRMWARE(IWL5150_MODULE_FIRMWARE(IWL5150_UCODE_API_MAX)); | 1656 | MODULE_FIRMWARE(IWL5150_MODULE_FIRMWARE(IWL5150_UCODE_API_MAX)); |
1657 | 1657 | ||
1658 | module_param_named(disable50, iwl50_mod_params.disable, int, 0444); | ||
1659 | MODULE_PARM_DESC(disable50, | ||
1660 | "manually disable the 50XX radio (default 0 [radio on])"); | ||
1661 | module_param_named(swcrypto50, iwl50_mod_params.sw_crypto, bool, 0444); | 1658 | module_param_named(swcrypto50, iwl50_mod_params.sw_crypto, bool, 0444); |
1662 | MODULE_PARM_DESC(swcrypto50, | 1659 | MODULE_PARM_DESC(swcrypto50, |
1663 | "using software crypto engine (default 0 [hardware])\n"); | 1660 | "using software crypto engine (default 0 [hardware])\n"); |
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn.c b/drivers/net/wireless/iwlwifi/iwl-agn.c index fc52d3229d66..9e41e1bb7c79 100644 --- a/drivers/net/wireless/iwlwifi/iwl-agn.c +++ b/drivers/net/wireless/iwlwifi/iwl-agn.c | |||
@@ -2774,18 +2774,8 @@ static int iwl_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent) | |||
2774 | goto out_free_eeprom; | 2774 | goto out_free_eeprom; |
2775 | /* At this point both hw and priv are initialized. */ | 2775 | /* At this point both hw and priv are initialized. */ |
2776 | 2776 | ||
2777 | /********************************** | ||
2778 | * 7. Initialize module parameters | ||
2779 | **********************************/ | ||
2780 | |||
2781 | /* Disable radio (SW RF KILL) via parameter when loading driver */ | ||
2782 | if (priv->cfg->mod_params->disable) { | ||
2783 | set_bit(STATUS_RF_KILL_SW, &priv->status); | ||
2784 | IWL_DEBUG_INFO(priv, "Radio disabled.\n"); | ||
2785 | } | ||
2786 | |||
2787 | /******************** | 2777 | /******************** |
2788 | * 8. Setup services | 2778 | * 7. Setup services |
2789 | ********************/ | 2779 | ********************/ |
2790 | spin_lock_irqsave(&priv->lock, flags); | 2780 | spin_lock_irqsave(&priv->lock, flags); |
2791 | iwl_disable_interrupts(priv); | 2781 | iwl_disable_interrupts(priv); |
@@ -2809,7 +2799,7 @@ static int iwl_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent) | |||
2809 | iwl_setup_rx_handlers(priv); | 2799 | iwl_setup_rx_handlers(priv); |
2810 | 2800 | ||
2811 | /********************************** | 2801 | /********************************** |
2812 | * 9. Setup and register mac80211 | 2802 | * 8. Setup and register mac80211 |
2813 | **********************************/ | 2803 | **********************************/ |
2814 | 2804 | ||
2815 | /* enable interrupts if needed: hw bug w/a */ | 2805 | /* enable interrupts if needed: hw bug w/a */ |
diff --git a/drivers/net/wireless/iwlwifi/iwl-core.h b/drivers/net/wireless/iwlwifi/iwl-core.h index 3bc2f6c3e8b9..d4c60afa2891 100644 --- a/drivers/net/wireless/iwlwifi/iwl-core.h +++ b/drivers/net/wireless/iwlwifi/iwl-core.h | |||
@@ -176,7 +176,6 @@ struct iwl_ops { | |||
176 | }; | 176 | }; |
177 | 177 | ||
178 | struct iwl_mod_params { | 178 | struct iwl_mod_params { |
179 | int disable; /* def: 0 = enable radio */ | ||
180 | int sw_crypto; /* def: 0 = using hardware encryption */ | 179 | int sw_crypto; /* def: 0 = using hardware encryption */ |
181 | u32 debug; /* def: 0 = minimal debug log messages */ | 180 | u32 debug; /* def: 0 = minimal debug log messages */ |
182 | int disable_hw_scan; /* def: 0 = use h/w scan */ | 181 | int disable_hw_scan; /* def: 0 = use h/w scan */ |
diff --git a/drivers/net/wireless/iwlwifi/iwl3945-base.c b/drivers/net/wireless/iwlwifi/iwl3945-base.c index c9fde0e0c982..a5efb3b28c74 100644 --- a/drivers/net/wireless/iwlwifi/iwl3945-base.c +++ b/drivers/net/wireless/iwlwifi/iwl3945-base.c | |||
@@ -4309,20 +4309,8 @@ static int iwl3945_pci_probe(struct pci_dev *pdev, const struct pci_device_id *e | |||
4309 | IWL_INFO(priv, "Detected Intel Wireless WiFi Link %s\n", | 4309 | IWL_INFO(priv, "Detected Intel Wireless WiFi Link %s\n", |
4310 | priv->cfg->name); | 4310 | priv->cfg->name); |
4311 | 4311 | ||
4312 | /*********************************** | ||
4313 | * 7. Initialize Module Parameters | ||
4314 | * **********************************/ | ||
4315 | |||
4316 | /* Initialize module parameter values here */ | ||
4317 | /* Disable radio (SW RF KILL) via parameter when loading driver */ | ||
4318 | if (iwl3945_mod_params.disable) { | ||
4319 | set_bit(STATUS_RF_KILL_SW, &priv->status); | ||
4320 | IWL_DEBUG_INFO(priv, "Radio disabled.\n"); | ||
4321 | } | ||
4322 | |||
4323 | |||
4324 | /*********************** | 4312 | /*********************** |
4325 | * 8. Setup Services | 4313 | * 7. Setup Services |
4326 | * ********************/ | 4314 | * ********************/ |
4327 | 4315 | ||
4328 | spin_lock_irqsave(&priv->lock, flags); | 4316 | spin_lock_irqsave(&priv->lock, flags); |
@@ -4350,7 +4338,7 @@ static int iwl3945_pci_probe(struct pci_dev *pdev, const struct pci_device_id *e | |||
4350 | iwl3945_setup_rx_handlers(priv); | 4338 | iwl3945_setup_rx_handlers(priv); |
4351 | 4339 | ||
4352 | /********************************* | 4340 | /********************************* |
4353 | * 9. Setup and Register mac80211 | 4341 | * 8. Setup and Register mac80211 |
4354 | * *******************************/ | 4342 | * *******************************/ |
4355 | 4343 | ||
4356 | iwl_enable_interrupts(priv); | 4344 | iwl_enable_interrupts(priv); |
@@ -4528,8 +4516,6 @@ MODULE_FIRMWARE(IWL3945_MODULE_FIRMWARE(IWL3945_UCODE_API_MAX)); | |||
4528 | 4516 | ||
4529 | module_param_named(antenna, iwl3945_mod_params.antenna, int, 0444); | 4517 | module_param_named(antenna, iwl3945_mod_params.antenna, int, 0444); |
4530 | MODULE_PARM_DESC(antenna, "select antenna (1=Main, 2=Aux, default 0 [both])"); | 4518 | MODULE_PARM_DESC(antenna, "select antenna (1=Main, 2=Aux, default 0 [both])"); |
4531 | module_param_named(disable, iwl3945_mod_params.disable, int, 0444); | ||
4532 | MODULE_PARM_DESC(disable, "manually disable the radio (default 0 [radio on])"); | ||
4533 | module_param_named(swcrypto, iwl3945_mod_params.sw_crypto, int, 0444); | 4519 | module_param_named(swcrypto, iwl3945_mod_params.sw_crypto, int, 0444); |
4534 | MODULE_PARM_DESC(swcrypto, | 4520 | MODULE_PARM_DESC(swcrypto, |
4535 | "using software crypto (default 1 [software])\n"); | 4521 | "using software crypto (default 1 [software])\n"); |