aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Documentation/feature-removal-schedule.txt11
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-4965.c29
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-5000.c13
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-agn.c30
4 files changed, 42 insertions, 41 deletions
diff --git a/Documentation/feature-removal-schedule.txt b/Documentation/feature-removal-schedule.txt
index a841e79dfac6..4e78611c526b 100644
--- a/Documentation/feature-removal-schedule.txt
+++ b/Documentation/feature-removal-schedule.txt
@@ -545,3 +545,14 @@ Why: udev fully replaces this special file system that only contains CAPI
545 NCCI TTY device nodes. User space (pppdcapiplugin) works without 545 NCCI TTY device nodes. User space (pppdcapiplugin) works without
546 noticing the difference. 546 noticing the difference.
547Who: Jan Kiszka <jan.kiszka@web.de> 547Who: Jan Kiszka <jan.kiszka@web.de>
548
549----------------------------
550
551What: iwlwifi 50XX module parameters
552When: 2.6.40
553Why: The "..50" modules parameters were used to configure 5000 series and
554 up devices; different set of module parameters also available for 4965
555 with same functionalities. Consolidate both set into single place
556 in drivers/net/wireless/iwlwifi/iwl-agn.c
557
558Who: Wey-Yi Guy <wey-yi.w.guy@intel.com>
diff --git a/drivers/net/wireless/iwlwifi/iwl-4965.c b/drivers/net/wireless/iwlwifi/iwl-4965.c
index 1808c976e504..083983a9d697 100644
--- a/drivers/net/wireless/iwlwifi/iwl-4965.c
+++ b/drivers/net/wireless/iwlwifi/iwl-4965.c
@@ -61,14 +61,6 @@ static int iwl4965_hw_get_temperature(struct iwl_priv *priv);
61#define _IWL4965_MODULE_FIRMWARE(api) IWL4965_FW_PRE #api ".ucode" 61#define _IWL4965_MODULE_FIRMWARE(api) IWL4965_FW_PRE #api ".ucode"
62#define IWL4965_MODULE_FIRMWARE(api) _IWL4965_MODULE_FIRMWARE(api) 62#define IWL4965_MODULE_FIRMWARE(api) _IWL4965_MODULE_FIRMWARE(api)
63 63
64
65/* module parameters */
66static struct iwl_mod_params iwl4965_mod_params = {
67 .amsdu_size_8K = 1,
68 .restart_fw = 1,
69 /* the rest are 0 by default */
70};
71
72/* check contents of special bootstrap uCode SRAM */ 64/* check contents of special bootstrap uCode SRAM */
73static int iwl4965_verify_bsm(struct iwl_priv *priv) 65static int iwl4965_verify_bsm(struct iwl_priv *priv)
74{ 66{
@@ -2245,7 +2237,7 @@ struct iwl_cfg iwl4965_agn_cfg = {
2245 .ops = &iwl4965_ops, 2237 .ops = &iwl4965_ops,
2246 .num_of_queues = IWL49_NUM_QUEUES, 2238 .num_of_queues = IWL49_NUM_QUEUES,
2247 .num_of_ampdu_queues = IWL49_NUM_AMPDU_QUEUES, 2239 .num_of_ampdu_queues = IWL49_NUM_AMPDU_QUEUES,
2248 .mod_params = &iwl4965_mod_params, 2240 .mod_params = &iwlagn_mod_params,
2249 .valid_tx_ant = ANT_AB, 2241 .valid_tx_ant = ANT_AB,
2250 .valid_rx_ant = ANT_ABC, 2242 .valid_rx_ant = ANT_ABC,
2251 .pll_cfg_val = 0, 2243 .pll_cfg_val = 0,
@@ -2265,22 +2257,3 @@ struct iwl_cfg iwl4965_agn_cfg = {
2265/* Module firmware */ 2257/* Module firmware */
2266MODULE_FIRMWARE(IWL4965_MODULE_FIRMWARE(IWL4965_UCODE_API_MAX)); 2258MODULE_FIRMWARE(IWL4965_MODULE_FIRMWARE(IWL4965_UCODE_API_MAX));
2267 2259
2268module_param_named(antenna, iwl4965_mod_params.antenna, int, S_IRUGO);
2269MODULE_PARM_DESC(antenna, "select antenna (1=Main, 2=Aux, default 0 [both])");
2270module_param_named(swcrypto, iwl4965_mod_params.sw_crypto, int, S_IRUGO);
2271MODULE_PARM_DESC(swcrypto, "using crypto in software (default 0 [hardware])");
2272module_param_named(
2273 disable_hw_scan, iwl4965_mod_params.disable_hw_scan, int, S_IRUGO);
2274MODULE_PARM_DESC(disable_hw_scan, "disable hardware scanning (default 0)");
2275
2276module_param_named(queues_num, iwl4965_mod_params.num_of_queues, int, S_IRUGO);
2277MODULE_PARM_DESC(queues_num, "number of hw queues.");
2278/* 11n */
2279module_param_named(11n_disable, iwl4965_mod_params.disable_11n, int, S_IRUGO);
2280MODULE_PARM_DESC(11n_disable, "disable 11n functionality");
2281module_param_named(amsdu_size_8K, iwl4965_mod_params.amsdu_size_8K,
2282 int, S_IRUGO);
2283MODULE_PARM_DESC(amsdu_size_8K, "enable 8K amsdu size");
2284
2285module_param_named(fw_restart4965, iwl4965_mod_params.restart_fw, int, S_IRUGO);
2286MODULE_PARM_DESC(fw_restart4965, "restart firmware in case of error");
diff --git a/drivers/net/wireless/iwlwifi/iwl-5000.c b/drivers/net/wireless/iwlwifi/iwl-5000.c
index 5ca451722d19..ecc302e4c205 100644
--- a/drivers/net/wireless/iwlwifi/iwl-5000.c
+++ b/drivers/net/wireless/iwlwifi/iwl-5000.c
@@ -585,16 +585,3 @@ struct iwl_cfg iwl5150_abg_cfg = {
585 585
586MODULE_FIRMWARE(IWL5000_MODULE_FIRMWARE(IWL5000_UCODE_API_MAX)); 586MODULE_FIRMWARE(IWL5000_MODULE_FIRMWARE(IWL5000_UCODE_API_MAX));
587MODULE_FIRMWARE(IWL5150_MODULE_FIRMWARE(IWL5150_UCODE_API_MAX)); 587MODULE_FIRMWARE(IWL5150_MODULE_FIRMWARE(IWL5150_UCODE_API_MAX));
588
589module_param_named(swcrypto50, iwlagn_mod_params.sw_crypto, bool, S_IRUGO);
590MODULE_PARM_DESC(swcrypto50,
591 "using software crypto engine (default 0 [hardware])\n");
592module_param_named(queues_num50, iwlagn_mod_params.num_of_queues, int, S_IRUGO);
593MODULE_PARM_DESC(queues_num50, "number of hw queues in 50xx series");
594module_param_named(11n_disable50, iwlagn_mod_params.disable_11n, int, S_IRUGO);
595MODULE_PARM_DESC(11n_disable50, "disable 50XX 11n functionality");
596module_param_named(amsdu_size_8K50, iwlagn_mod_params.amsdu_size_8K,
597 int, S_IRUGO);
598MODULE_PARM_DESC(amsdu_size_8K50, "enable 8K amsdu size in 50XX series");
599module_param_named(fw_restart50, iwlagn_mod_params.restart_fw, int, S_IRUGO);
600MODULE_PARM_DESC(fw_restart50, "restart firmware in case of error");
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn.c b/drivers/net/wireless/iwlwifi/iwl-agn.c
index b431e9254c06..8262f43df1cf 100644
--- a/drivers/net/wireless/iwlwifi/iwl-agn.c
+++ b/drivers/net/wireless/iwlwifi/iwl-agn.c
@@ -3921,3 +3921,33 @@ module_param_named(debug, iwl_debug_level, uint, S_IRUGO | S_IWUSR);
3921MODULE_PARM_DESC(debug, "debug output mask"); 3921MODULE_PARM_DESC(debug, "debug output mask");
3922#endif 3922#endif
3923 3923
3924module_param_named(swcrypto50, iwlagn_mod_params.sw_crypto, bool, S_IRUGO);
3925MODULE_PARM_DESC(swcrypto50,
3926 "using crypto in software (default 0 [hardware]) (deprecated)");
3927module_param_named(swcrypto, iwlagn_mod_params.sw_crypto, int, S_IRUGO);
3928MODULE_PARM_DESC(swcrypto, "using crypto in software (default 0 [hardware])");
3929module_param_named(queues_num50,
3930 iwlagn_mod_params.num_of_queues, int, S_IRUGO);
3931MODULE_PARM_DESC(queues_num50,
3932 "number of hw queues in 50xx series (deprecated)");
3933module_param_named(queues_num, iwlagn_mod_params.num_of_queues, int, S_IRUGO);
3934MODULE_PARM_DESC(queues_num, "number of hw queues.");
3935module_param_named(11n_disable50, iwlagn_mod_params.disable_11n, int, S_IRUGO);
3936MODULE_PARM_DESC(11n_disable50, "disable 50XX 11n functionality (deprecated)");
3937module_param_named(11n_disable, iwlagn_mod_params.disable_11n, int, S_IRUGO);
3938MODULE_PARM_DESC(11n_disable, "disable 11n functionality");
3939module_param_named(amsdu_size_8K50, iwlagn_mod_params.amsdu_size_8K,
3940 int, S_IRUGO);
3941MODULE_PARM_DESC(amsdu_size_8K50,
3942 "enable 8K amsdu size in 50XX series (deprecated)");
3943module_param_named(amsdu_size_8K, iwlagn_mod_params.amsdu_size_8K,
3944 int, S_IRUGO);
3945MODULE_PARM_DESC(amsdu_size_8K, "enable 8K amsdu size");
3946module_param_named(fw_restart50, iwlagn_mod_params.restart_fw, int, S_IRUGO);
3947MODULE_PARM_DESC(fw_restart50,
3948 "restart firmware in case of error (deprecated)");
3949module_param_named(fw_restart, iwlagn_mod_params.restart_fw, int, S_IRUGO);
3950MODULE_PARM_DESC(fw_restart, "restart firmware in case of error");
3951module_param_named(
3952 disable_hw_scan, iwlagn_mod_params.disable_hw_scan, int, S_IRUGO);
3953MODULE_PARM_DESC(disable_hw_scan, "disable hardware scanning (default 0)");