diff options
author | Wey-Yi Guy <wey-yi.w.guy@intel.com> | 2010-03-22 12:17:39 -0400 |
---|---|---|
committer | Reinette Chatre <reinette.chatre@intel.com> | 2010-04-02 15:50:06 -0400 |
commit | 2b068618031a91929c21410069f872178ec00329 (patch) | |
tree | 61eafb23a3eed75005d856e3701d068435f569f3 /drivers | |
parent | e3efca0a63b4ac4d8849d37d082a95cf1a75162d (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.c | 29 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-5000.c | 13 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-agn.c | 30 |
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 */ | ||
66 | static 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 */ |
73 | static int iwl4965_verify_bsm(struct iwl_priv *priv) | 65 | static 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 */ |
2266 | MODULE_FIRMWARE(IWL4965_MODULE_FIRMWARE(IWL4965_UCODE_API_MAX)); | 2258 | MODULE_FIRMWARE(IWL4965_MODULE_FIRMWARE(IWL4965_UCODE_API_MAX)); |
2267 | 2259 | ||
2268 | module_param_named(antenna, iwl4965_mod_params.antenna, int, S_IRUGO); | ||
2269 | MODULE_PARM_DESC(antenna, "select antenna (1=Main, 2=Aux, default 0 [both])"); | ||
2270 | module_param_named(swcrypto, iwl4965_mod_params.sw_crypto, int, S_IRUGO); | ||
2271 | MODULE_PARM_DESC(swcrypto, "using crypto in software (default 0 [hardware])"); | ||
2272 | module_param_named( | ||
2273 | disable_hw_scan, iwl4965_mod_params.disable_hw_scan, int, S_IRUGO); | ||
2274 | MODULE_PARM_DESC(disable_hw_scan, "disable hardware scanning (default 0)"); | ||
2275 | |||
2276 | module_param_named(queues_num, iwl4965_mod_params.num_of_queues, int, S_IRUGO); | ||
2277 | MODULE_PARM_DESC(queues_num, "number of hw queues."); | ||
2278 | /* 11n */ | ||
2279 | module_param_named(11n_disable, iwl4965_mod_params.disable_11n, int, S_IRUGO); | ||
2280 | MODULE_PARM_DESC(11n_disable, "disable 11n functionality"); | ||
2281 | module_param_named(amsdu_size_8K, iwl4965_mod_params.amsdu_size_8K, | ||
2282 | int, S_IRUGO); | ||
2283 | MODULE_PARM_DESC(amsdu_size_8K, "enable 8K amsdu size"); | ||
2284 | |||
2285 | module_param_named(fw_restart4965, iwl4965_mod_params.restart_fw, int, S_IRUGO); | ||
2286 | MODULE_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 | ||
586 | MODULE_FIRMWARE(IWL5000_MODULE_FIRMWARE(IWL5000_UCODE_API_MAX)); | 586 | MODULE_FIRMWARE(IWL5000_MODULE_FIRMWARE(IWL5000_UCODE_API_MAX)); |
587 | MODULE_FIRMWARE(IWL5150_MODULE_FIRMWARE(IWL5150_UCODE_API_MAX)); | 587 | MODULE_FIRMWARE(IWL5150_MODULE_FIRMWARE(IWL5150_UCODE_API_MAX)); |
588 | |||
589 | module_param_named(swcrypto50, iwlagn_mod_params.sw_crypto, bool, S_IRUGO); | ||
590 | MODULE_PARM_DESC(swcrypto50, | ||
591 | "using software crypto engine (default 0 [hardware])\n"); | ||
592 | module_param_named(queues_num50, iwlagn_mod_params.num_of_queues, int, S_IRUGO); | ||
593 | MODULE_PARM_DESC(queues_num50, "number of hw queues in 50xx series"); | ||
594 | module_param_named(11n_disable50, iwlagn_mod_params.disable_11n, int, S_IRUGO); | ||
595 | MODULE_PARM_DESC(11n_disable50, "disable 50XX 11n functionality"); | ||
596 | module_param_named(amsdu_size_8K50, iwlagn_mod_params.amsdu_size_8K, | ||
597 | int, S_IRUGO); | ||
598 | MODULE_PARM_DESC(amsdu_size_8K50, "enable 8K amsdu size in 50XX series"); | ||
599 | module_param_named(fw_restart50, iwlagn_mod_params.restart_fw, int, S_IRUGO); | ||
600 | MODULE_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); | |||
3921 | MODULE_PARM_DESC(debug, "debug output mask"); | 3921 | MODULE_PARM_DESC(debug, "debug output mask"); |
3922 | #endif | 3922 | #endif |
3923 | 3923 | ||
3924 | module_param_named(swcrypto50, iwlagn_mod_params.sw_crypto, bool, S_IRUGO); | ||
3925 | MODULE_PARM_DESC(swcrypto50, | ||
3926 | "using crypto in software (default 0 [hardware]) (deprecated)"); | ||
3927 | module_param_named(swcrypto, iwlagn_mod_params.sw_crypto, int, S_IRUGO); | ||
3928 | MODULE_PARM_DESC(swcrypto, "using crypto in software (default 0 [hardware])"); | ||
3929 | module_param_named(queues_num50, | ||
3930 | iwlagn_mod_params.num_of_queues, int, S_IRUGO); | ||
3931 | MODULE_PARM_DESC(queues_num50, | ||
3932 | "number of hw queues in 50xx series (deprecated)"); | ||
3933 | module_param_named(queues_num, iwlagn_mod_params.num_of_queues, int, S_IRUGO); | ||
3934 | MODULE_PARM_DESC(queues_num, "number of hw queues."); | ||
3935 | module_param_named(11n_disable50, iwlagn_mod_params.disable_11n, int, S_IRUGO); | ||
3936 | MODULE_PARM_DESC(11n_disable50, "disable 50XX 11n functionality (deprecated)"); | ||
3937 | module_param_named(11n_disable, iwlagn_mod_params.disable_11n, int, S_IRUGO); | ||
3938 | MODULE_PARM_DESC(11n_disable, "disable 11n functionality"); | ||
3939 | module_param_named(amsdu_size_8K50, iwlagn_mod_params.amsdu_size_8K, | ||
3940 | int, S_IRUGO); | ||
3941 | MODULE_PARM_DESC(amsdu_size_8K50, | ||
3942 | "enable 8K amsdu size in 50XX series (deprecated)"); | ||
3943 | module_param_named(amsdu_size_8K, iwlagn_mod_params.amsdu_size_8K, | ||
3944 | int, S_IRUGO); | ||
3945 | MODULE_PARM_DESC(amsdu_size_8K, "enable 8K amsdu size"); | ||
3946 | module_param_named(fw_restart50, iwlagn_mod_params.restart_fw, int, S_IRUGO); | ||
3947 | MODULE_PARM_DESC(fw_restart50, | ||
3948 | "restart firmware in case of error (deprecated)"); | ||
3949 | module_param_named(fw_restart, iwlagn_mod_params.restart_fw, int, S_IRUGO); | ||
3950 | MODULE_PARM_DESC(fw_restart, "restart firmware in case of error"); | ||
3951 | module_param_named( | ||
3952 | disable_hw_scan, iwlagn_mod_params.disable_hw_scan, int, S_IRUGO); | ||
3953 | MODULE_PARM_DESC(disable_hw_scan, "disable hardware scanning (default 0)"); | ||