Skip to contentSkip to conversation

iwlwifi: remove obsoleted module alias and parameters

PATCH In review Amerigo Wang 7 participants 10 messages Apr 6, 2011 – Apr 13, 2011 2 messages not in the archive

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 iwlwifi: remove obsoleted module alias and parameters

As scheduled in Documentation/feature-removal-schedule.txt, remove "*50", "disable_hw_scan" module parameters and MODULE_ALIAS("iwl4965").

Cc Intel Linux Wireless <ilw-VuQAYsv1563Yd54FQh9/[email protected]>
Cc Johannes Berg <[email protected]>
Cc "John W. Linville" <[email protected]>
Cc Wey-Yi Guy <[email protected]>
Cc Stanislaw Gruszka <[email protected]>
Cc Meenakshi Venkataraman <[email protected]>
Cc Larry Finger <[email protected]>
---
 Documentation/feature-removal-schedule.txt   |   31 --------------------------
 drivers/net/wireless/iwlegacy/iwl-core.c     |    3 +-
 drivers/net/wireless/iwlegacy/iwl-core.h     |    1 -
 drivers/net/wireless/iwlegacy/iwl3945-base.c |   13 -----------
 drivers/net/wireless/iwlegacy/iwl4965-base.c |    1 -
 drivers/net/wireless/iwlwifi/iwl-agn.c       |   30 -------------------------
 drivers/net/wireless/iwlwifi/iwl-core.h      |    1 -
 7 files changed, 1 insertions(+), 79 deletions(-)
Documentation/feature-removal-schedule.txt +0 -31
index 274b32d..5037d0d 100644
@@ -444,27 +444,6 @@ Who:	Avi Kivity <[email protected]>
 
 ----------------------------
 
-What:	iwlwifi 50XX module parameters
-When:	2.6.40
-Why:	The "..50" modules parameters were used to configure 5000 series and
-	up devices; different set of module parameters also available for 4965
-	with same functionalities. Consolidate both set into single place
-	in drivers/net/wireless/iwlwifi/iwl-agn.c
-
-Who:	Wey-Yi Guy <[email protected]>
-
-----------------------------
-
-What:	iwl4965 alias support
-When:	2.6.40
-Why:	Internal alias support has been present in module-init-tools for some
-	time, the MODULE_ALIAS("iwl4965") boilerplate aliases can be removed
-	with no impact.
-
-Who:	Wey-Yi Guy <[email protected]>
-
----------------------------
-
 What:	xt_NOTRACK
 Files:	net/netfilter/xt_NOTRACK.c
 When:	April 2011
@@ -521,16 +500,6 @@ Who:    Daniel Lezcano <[email protected]>
 
 ----------------------------
 
-What:	iwlwifi disable_hw_scan module parameters
-When:	2.6.40
-Why:	Hareware scan is the prefer method for iwlwifi devices for
-	scanning operation. Remove software scan support for all the
-	iwlwifi devices.
-
-Who:	Wey-Yi Guy <[email protected]>
-
-----------------------------
-
 What:   access to nfsd auth cache through sys_nfsservctl or '.' files
         in the 'nfsd' filesystem.
 When:   2.6.40
drivers/net/wireless/iwlegacy/iwl-core.c +1 -2
index a209a0e..9fd851f 100644
@@ -2112,8 +2112,7 @@ int iwl_legacy_mac_config(struct ieee80211_hw *hw, u32 changed)
 	IWL_DEBUG_MAC80211(priv, "enter to channel %d changed 0x%X\n",
 					channel->hw_value, changed);
 
-	if (unlikely(!priv->cfg->mod_params->disable_hw_scan &&
-			test_bit(STATUS_SCANNING, &priv->status))) {
+	if (unlikely(test_bit(STATUS_SCANNING, &priv->status))) {
 		scan_active = 1;
 		IWL_DEBUG_MAC80211(priv, "leave - scanning\n");
 	}
drivers/net/wireless/iwlegacy/iwl-core.h +0 -1
index f03b463..3fc77b7 100644
@@ -194,7 +194,6 @@ struct iwl_ops {
 
 struct iwl_mod_params {
 	int sw_crypto;		/* def: 0 = using hardware encryption */
-	int disable_hw_scan;	/* def: 0 = use h/w scan */
 	int num_of_queues;	/* def: HW dependent */
 	int disable_11n;	/* def: 0 = 11n capabilities enabled */
 	int amsdu_size_8K;	/* def: 1 = enable 8K amsdu size */
drivers/net/wireless/iwlegacy/iwl3945-base.c +0 -13
index 28eb3d8..57df37c 100644
@@ -93,7 +93,6 @@ MODULE_LICENSE("GPL");
 struct iwl_mod_params iwl3945_mod_params = {
 	.sw_crypto = 1,
 	.restart_fw = 1,
-	.disable_hw_scan = 1,
 	/* the rest are 0 by default */
 };
 
@@ -3956,15 +3955,6 @@ static int iwl3945_pci_probe(struct pci_dev *pdev, const struct pci_device_id *e
 	priv->contexts[IWL_RXON_CTX_BSS].station_devtype = RXON_DEV_TYPE_ESS;
 	priv->contexts[IWL_RXON_CTX_BSS].unused_devtype = RXON_DEV_TYPE_ESS;
 
-	/*
-	 * Disabling hardware scan means that mac80211 will perform scans
-	 * "the hard way", rather than using device's scan.
-	 */
-	if (iwl3945_mod_params.disable_hw_scan) {
-		IWL_DEBUG_INFO(priv, "Disabling hw_scan\n");
-		iwl3945_hw_ops.hw_scan = NULL;
-	}
-
 	IWL_DEBUG_INFO(priv, "*** LOAD DRIVER ***\n");
 	priv->cfg = cfg;
 	priv->pci_dev = pdev;
@@ -4278,9 +4268,6 @@ MODULE_PARM_DESC(antenna, "select antenna (1=Main, 2=Aux, default 0 [both])");
 module_param_named(swcrypto, iwl3945_mod_params.sw_crypto, int, S_IRUGO);
 MODULE_PARM_DESC(swcrypto,
 		"using software crypto (default 1 [software])");
-module_param_named(disable_hw_scan, iwl3945_mod_params.disable_hw_scan,
-		int, S_IRUGO);
-MODULE_PARM_DESC(disable_hw_scan, "disable hardware scanning (default 1)");
 #ifdef CONFIG_IWLWIFI_LEGACY_DEBUG
 module_param_named(debug, iwlegacy_debug_level, uint, S_IRUGO | S_IWUSR);
 MODULE_PARM_DESC(debug, "debug output mask");
drivers/net/wireless/iwlegacy/iwl4965-base.c +0 -1
index 91b3d8b..2801d87 100644
@@ -86,7 +86,6 @@ MODULE_DESCRIPTION(DRV_DESCRIPTION);
 MODULE_VERSION(DRV_VERSION);
 MODULE_AUTHOR(DRV_COPYRIGHT " " DRV_AUTHOR);
 MODULE_LICENSE("GPL");
-MODULE_ALIAS("iwl4965");
 
 void iwl4965_update_chain_flags(struct iwl_priv *priv)
 {
drivers/net/wireless/iwlwifi/iwl-agn.c +0 -30
index 321b18b..f58571b 100644
@@ -3968,14 +3968,6 @@ static int iwl_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
 	 * 1. Allocating HW data
 	 ************************/
 
-	/* Disabling hardware scan means that mac80211 will perform scans
-	 * "the hard way", rather than using device's scan. */
-	if (cfg->mod_params->disable_hw_scan) {
-		dev_printk(KERN_DEBUG, &(pdev->dev),
-			"sw scan support is deprecated\n");
-		iwlagn_hw_ops.hw_scan = NULL;
-	}
-
 	hw = iwl_alloc_all(cfg);
 	if (!hw) {
 		err = -ENOMEM;
@@ -4585,43 +4577,21 @@ module_exit(iwl_exit);
 module_init(iwl_init);
 
 #ifdef CONFIG_IWLWIFI_DEBUG
-module_param_named(debug50, iwl_debug_level, uint, S_IRUGO);
-MODULE_PARM_DESC(debug50, "50XX debug output mask (deprecated)");
 module_param_named(debug, iwl_debug_level, uint, S_IRUGO | S_IWUSR);
 MODULE_PARM_DESC(debug, "debug output mask");
 #endif
 
-module_param_named(swcrypto50, iwlagn_mod_params.sw_crypto, bool, S_IRUGO);
-MODULE_PARM_DESC(swcrypto50,
-		 "using crypto in software (default 0 [hardware]) (deprecated)");
 module_param_named(swcrypto, iwlagn_mod_params.sw_crypto, int, S_IRUGO);
 MODULE_PARM_DESC(swcrypto, "using crypto in software (default 0 [hardware])");
-module_param_named(queues_num50,
-		   iwlagn_mod_params.num_of_queues, int, S_IRUGO);
-MODULE_PARM_DESC(queues_num50,
-		 "number of hw queues in 50xx series (deprecated)");
 module_param_named(queues_num, iwlagn_mod_params.num_of_queues, int, S_IRUGO);
 MODULE_PARM_DESC(queues_num, "number of hw queues.");
-module_param_named(11n_disable50, iwlagn_mod_params.disable_11n, int, S_IRUGO);
-MODULE_PARM_DESC(11n_disable50, "disable 50XX 11n functionality (deprecated)");
 module_param_named(11n_disable, iwlagn_mod_params.disable_11n, int, S_IRUGO);
 MODULE_PARM_DESC(11n_disable, "disable 11n functionality");
-module_param_named(amsdu_size_8K50, iwlagn_mod_params.amsdu_size_8K,
-		   int, S_IRUGO);
-MODULE_PARM_DESC(amsdu_size_8K50,
-		 "enable 8K amsdu size in 50XX series (deprecated)");
 module_param_named(amsdu_size_8K, iwlagn_mod_params.amsdu_size_8K,
 		   int, S_IRUGO);
 MODULE_PARM_DESC(amsdu_size_8K, "enable 8K amsdu size");
-module_param_named(fw_restart50, iwlagn_mod_params.restart_fw, int, S_IRUGO);
-MODULE_PARM_DESC(fw_restart50,
-		 "restart firmware in case of error (deprecated)");
 module_param_named(fw_restart, iwlagn_mod_params.restart_fw, int, S_IRUGO);
 MODULE_PARM_DESC(fw_restart, "restart firmware in case of error");
-module_param_named(
-	disable_hw_scan, iwlagn_mod_params.disable_hw_scan, int, S_IRUGO);
-MODULE_PARM_DESC(disable_hw_scan,
-		 "disable hardware scanning (default 0) (deprecated)");
 
 module_param_named(ucode_alternative, iwlagn_wanted_ucode_alternative, int,
 		   S_IRUGO);
drivers/net/wireless/iwlwifi/iwl-core.h +0 -1
index b316d83..2396da5 100644
@@ -252,7 +252,6 @@ struct iwl_ops {
 
 struct iwl_mod_params {
 	int sw_crypto;		/* def: 0 = using hardware encryption */
-	int disable_hw_scan;	/* def: 0 = use h/w scan */
 	int num_of_queues;	/* def: HW dependent */
 	int disable_11n;	/* def: 0 = 11n capabilities enabled */
 	int amsdu_size_8K;	/* def: 1 = enable 8K amsdu size */

--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

maintainer
#1 lore raw
Quoted 2 lines · Amerigo Wang

As scheduled in Documentation/feature-removal-schedule.txt, remove "*50", "disable_hw_scan" module parameters and MODULE_ALIAS("iwl4965").

Mostly fine, but for iwlegacy Stanislaw we want to keep hw scan (and it was actually made default now)

johannes

#2 lore raw
Quoted 7 lines · Johannes Berg
Quoted 2 lines · Amerigo Wang

As scheduled in Documentation/feature-removal-schedule.txt, remove "*50", "disable_hw_scan" module parameters and MODULE_ALIAS("iwl4965").

Mostly fine, but for iwlegacy Stanislaw we want to keep hw scan (and it was actually made default now)

Ok, I will wait for Stanislaw's response and then send an updated patch.

Thanks.

#4 lore raw
In reply to a message not in the archive
Quoted 7 lines · Cong Wang
Quoted 6 lines · Johannes Berg
Quoted 2 lines · Amerigo Wang

As scheduled in Documentation/feature-removal-schedule.txt, remove "*50", "disable_hw_scan" module parameters and MODULE_ALIAS("iwl4965").

Mostly fine, but for iwlegacy Stanislaw we want to keep hw scan (and it was actually made default now)

Indeed, disable_hw_scan should be removed in iwlwifi but leaved in iwlegacy.

Quoted 1 line

Ok, I will wait for Stanislaw's response and then send an updated patch.

Have it now :-)

Stanislaw
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

#10 lore raw
In reply to Amerigo Wang
Quoted 12 lines · Amerigo Wang

As scheduled in Documentation/feature-removal-schedule.txt, remove "*50", "disable_hw_scan" module parameters and MODULE_ALIAS("iwl4965").

Cc Intel Linux Wireless <[email protected]>
Cc Johannes Berg <[email protected]>
Cc "John W. Linville" <[email protected]>
Cc Wey-Yi Guy <[email protected]>
Cc Stanislaw Gruszka <[email protected]>
Cc Meenakshi Venkataraman <[email protected]>
Cc Larry Finger <[email protected]>
Quoted 1 line

---

what tree you are base on?
please check commit#7eaa6a5e964f1ab02d849bda36950c0d30be8ce2 in wireless-next-2.6

Thanks
Wey

#6 lore raw
In reply to a message not in the archive
Quoted 6 lines · Stanislaw Gruszka
Quoted 5 lines · Cong Wang
Quoted 4 lines · Johannes Berg
Quoted 2 lines · Amerigo Wang

As scheduled in Documentation/feature-removal-schedule.txt, remove "*50", "disable_hw_scan" module parameters and MODULE_ALIAS("iwl4965").

Quoted 8 lines
Quoted 2 lines
Quoted 2 lines

Mostly fine, but for iwlegacy Stanislaw we want to keep hw scan (and it was actually made default now)

Indeed, disable_hw_scan should be removed in iwlwifi but leaved in iwlegacy.

Quoted 1 line

Ok, I will wait for Stanislaw's response and then send an updated patch.

Have it now :-)

Maybe the MODULE_ALIAS("iwl4965") should go to iwlegacy too?

John

Signature · 6 lines
John W. Linville		Someday the world will need a hero, and you
[email protected]			might be all we have.  Be ready.
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#7 lore raw
Quoted 10 lines · John W. Linville
Quoted 9 lines · Stanislaw Gruszka
Quoted 7 lines · Cong Wang
Quoted 6 lines · Johannes Berg
Quoted 2 lines · Amerigo Wang

As scheduled in Documentation/feature-removal-schedule.txt, remove "*50", "disable_hw_scan" module parameters and MODULE_ALIAS("iwl4965").

Mostly fine, but for iwlegacy Stanislaw we want to keep hw scan (and it was actually made default now)

Quoted 7 lines
Quoted 5 lines

Indeed, disable_hw_scan should be removed in iwlwifi but leaved in iwlegacy.

Quoted 1 line

Ok, I will wait for Stanislaw's response and then send an updated patch.

Have it now :-)

Maybe the MODULE_ALIAS("iwl4965") should go to iwlegacy too?

Nevermind, forgot the "Internal alias support has been present in module-init-tools" part...

Signature · 2 lines
John W. Linville		Someday the world will need a hero, and you
[email protected]			might be all we have.  Be ready.
#11 lore raw
In reply to Guy, Wey-Yi
Quoted 13 lines · Wey-Yi
Quoted 12 lines · Amerigo Wang

As scheduled in Documentation/feature-removal-schedule.txt, remove "*50", "disable_hw_scan" module parameters and MODULE_ALIAS("iwl4965").

Cc Intel Linux Wireless<[email protected]>
Cc Johannes Berg<[email protected]>
Cc "John W. Linville"<[email protected]>
Cc Wey-Yi Guy<[email protected]>
Cc Stanislaw Gruszka<[email protected]>
Cc Meenakshi Venkataraman<[email protected]>
Cc Larry Finger<[email protected]>
Quoted 4 lines
Quoted 1 line

---

what tree you are base on?
please check commit#7eaa6a5e964f1ab02d849bda36950c0d30be8ce2 in wireless-next-2.6

The latest Linus tree, sorry that I didn't know wireless has its own tree, I just checked wireless-next-2.6 but don't find any commit matched that commit ID, but I assume you meant you already sent a same patch? If yes, feel free to discard mine.

Thanks.

#8 lore raw
In reply to a message not in the archive
Quoted 6 lines · Stanislaw Gruszka
Quoted 5 lines · Cong Wang
Quoted 4 lines · Johannes Berg
Quoted 2 lines · Amerigo Wang

As scheduled in Documentation/feature-removal-schedule.txt, remove "*50", "disable_hw_scan" module parameters and MODULE_ALIAS("iwl4965").

Quoted 8 lines
Quoted 2 lines
Quoted 2 lines

Mostly fine, but for iwlegacy Stanislaw we want to keep hw scan (and it was actually made default now)

Indeed, disable_hw_scan should be removed in iwlwifi but leaved in iwlegacy.

Quoted 1 line

Ok, I will wait for Stanislaw's response and then send an updated patch.

Have it now :-)

Ping?

Signature · 6 lines
John W. Linville		Someday the world will need a hero, and you
[email protected]			might be all we have.  Be ready.
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#9 lore raw
Quoted 10 lines · John W. Linville
Quoted 9 lines · Stanislaw Gruszka
Quoted 7 lines · Cong Wang
Quoted 6 lines · Johannes Berg
Quoted 2 lines · Amerigo Wang

As scheduled in Documentation/feature-removal-schedule.txt, remove "*50", "disable_hw_scan" module parameters and MODULE_ALIAS("iwl4965").

Mostly fine, but for iwlegacy Stanislaw we want to keep hw scan (and it was actually made default now)

Quoted 8 lines
Quoted 5 lines

Indeed, disable_hw_scan should be removed in iwlwifi but leaved in iwlegacy.

Quoted 1 line

Ok, I will wait for Stanislaw's response and then send an updated patch.

Have it now :-)

Ping?

Huh?

The same patch from Wey-yi was merged as commit#7eaa6a5e964f1ab02d849bda36950c0d30be8ce2, no?