diff options
-rw-r--r-- | Documentation/feature-removal-schedule.txt | 11 | ||||
-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 |
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. |
547 | Who: Jan Kiszka <jan.kiszka@web.de> | 547 | Who: Jan Kiszka <jan.kiszka@web.de> |
548 | |||
549 | ---------------------------- | ||
550 | |||
551 | What: iwlwifi 50XX module parameters | ||
552 | When: 2.6.40 | ||
553 | Why: 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 | |||
558 | Who: 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 */ | ||
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 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 | ||
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 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); | |||
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)"); | ||