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>
This commit is contained in:

committed by
John W. Linville

parent
447fee700f
commit
09f9bf79b7
@@ -2774,18 +2774,8 @@ static int iwl_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
|
||||
goto out_free_eeprom;
|
||||
/* At this point both hw and priv are initialized. */
|
||||
|
||||
/**********************************
|
||||
* 7. Initialize module parameters
|
||||
**********************************/
|
||||
|
||||
/* Disable radio (SW RF KILL) via parameter when loading driver */
|
||||
if (priv->cfg->mod_params->disable) {
|
||||
set_bit(STATUS_RF_KILL_SW, &priv->status);
|
||||
IWL_DEBUG_INFO(priv, "Radio disabled.\n");
|
||||
}
|
||||
|
||||
/********************
|
||||
* 8. Setup services
|
||||
* 7. Setup services
|
||||
********************/
|
||||
spin_lock_irqsave(&priv->lock, flags);
|
||||
iwl_disable_interrupts(priv);
|
||||
@@ -2809,7 +2799,7 @@ static int iwl_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
|
||||
iwl_setup_rx_handlers(priv);
|
||||
|
||||
/**********************************
|
||||
* 9. Setup and register mac80211
|
||||
* 8. Setup and register mac80211
|
||||
**********************************/
|
||||
|
||||
/* enable interrupts if needed: hw bug w/a */
|
||||
|
Reference in New Issue
Block a user