aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl3945-base.c
diff options
context:
space:
mode:
authorAbhijeet Kolekar <abhijeet.kolekar@intel.com>2009-04-20 17:37:03 -0400
committerJohn W. Linville <linville@tuxdriver.com>2009-04-22 16:57:19 -0400
commit09f9bf79b7870ac017a94f7f9b603c2e28ac73f7 (patch)
treea3970d0e66cc01bfa234eccd14a78968d32f9335 /drivers/net/wireless/iwlwifi/iwl3945-base.c
parent447fee700f6cb7ada906c5db61c6c045741893e8 (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/iwlwifi/iwl3945-base.c')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl3945-base.c18
1 files changed, 2 insertions, 16 deletions
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
4529module_param_named(antenna, iwl3945_mod_params.antenna, int, 0444); 4517module_param_named(antenna, iwl3945_mod_params.antenna, int, 0444);
4530MODULE_PARM_DESC(antenna, "select antenna (1=Main, 2=Aux, default 0 [both])"); 4518MODULE_PARM_DESC(antenna, "select antenna (1=Main, 2=Aux, default 0 [both])");
4531module_param_named(disable, iwl3945_mod_params.disable, int, 0444);
4532MODULE_PARM_DESC(disable, "manually disable the radio (default 0 [radio on])");
4533module_param_named(swcrypto, iwl3945_mod_params.sw_crypto, int, 0444); 4519module_param_named(swcrypto, iwl3945_mod_params.sw_crypto, int, 0444);
4534MODULE_PARM_DESC(swcrypto, 4520MODULE_PARM_DESC(swcrypto,
4535 "using software crypto (default 1 [software])\n"); 4521 "using software crypto (default 1 [software])\n");