aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorWey-Yi Guy <wey-yi.w.guy@intel.com>2010-03-22 12:17:39 -0400
committerReinette Chatre <reinette.chatre@intel.com>2010-04-02 15:50:06 -0400
commit2b068618031a91929c21410069f872178ec00329 (patch)
tree61eafb23a3eed75005d856e3701d068435f569f3 /drivers
parente3efca0a63b4ac4d8849d37d082a95cf1a75162d (diff)
iwlwifi: merge module parameters into single place
Module parameters used to be defined in both iwl-5000.c and iwl-4965.c, after the code re-structure, merge into iwl-agn.c for easy to read and maintenance. Number of module parameters are deprecated after this merge. These are also scheduled for removal by 2.6.40. The current supported parameters are: parm: debug50:50XX debug output mask (deprecated) (uint) parm: debug:debug output mask (uint) parm: swcrypto50:using crypto in software (default 0 [hardware]) (deprecated) (bool) parm: swcrypto:using crypto in software (default 0 [hardware]) (int) parm: queues_num50:number of hw queues in 50xx series (deprecated) (int) parm: queues_num:number of hw queues. (int) parm: 11n_disable50:disable 50XX 11n functionality (deprecated) (int) parm: 11n_disable:disable 11n functionality (int) parm: amsdu_size_8K50:enable 8K amsdu size in 50XX series (deprecated) (int) parm: amsdu_size_8K:enable 8K amsdu size (int) parm: fw_restart50:restart firmware in case of error (deprecated) (int) parm: fw_restart:restart firmware in case of error (int) parm: disable_hw_scan:disable hardware scanning (default 0) (int) Remove "antenna" module parameter, it is not being used in "agn" driver. Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com> Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
Diffstat (limited to 'drivers')
-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
3 files changed, 31 insertions, 41 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-4965.c b/drivers/net/wireless/iwlwifi/iwl-4965.c
index 1808c976e50..083983a9d69 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 5ca451722d1..ecc302e4c20 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 b431e9254c0..8262f43df1c 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)");