diff options
author | Wey-Yi Guy <wey-yi.w.guy@intel.com> | 2009-09-17 13:43:47 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-10-07 16:39:34 -0400 |
commit | 4e30cb691b9ba62642cc1594ef08f7439deb5a02 (patch) | |
tree | a1b67a9352bdde2837be984595c9c4b3e2b71b50 /drivers/net/wireless/iwlwifi/iwl-5000.c | |
parent | 1f4b9665032c4a1d60efd9ceaad2781cae6c7e92 (diff) |
iwlwifi: use S_IRUGO and S_IWUSR in module parameters
Instead of hardcode module parameter's permissions, use pre-defined.
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-5000.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-5000.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-5000.c b/drivers/net/wireless/iwlwifi/iwl-5000.c index c81fd4bc32b4..75fa55db330e 100644 --- a/drivers/net/wireless/iwlwifi/iwl-5000.c +++ b/drivers/net/wireless/iwlwifi/iwl-5000.c | |||
@@ -1752,14 +1752,15 @@ struct iwl_cfg iwl5150_agn_cfg = { | |||
1752 | MODULE_FIRMWARE(IWL5000_MODULE_FIRMWARE(IWL5000_UCODE_API_MAX)); | 1752 | MODULE_FIRMWARE(IWL5000_MODULE_FIRMWARE(IWL5000_UCODE_API_MAX)); |
1753 | MODULE_FIRMWARE(IWL5150_MODULE_FIRMWARE(IWL5150_UCODE_API_MAX)); | 1753 | MODULE_FIRMWARE(IWL5150_MODULE_FIRMWARE(IWL5150_UCODE_API_MAX)); |
1754 | 1754 | ||
1755 | module_param_named(swcrypto50, iwl50_mod_params.sw_crypto, bool, 0444); | 1755 | module_param_named(swcrypto50, iwl50_mod_params.sw_crypto, bool, S_IRUGO); |
1756 | MODULE_PARM_DESC(swcrypto50, | 1756 | MODULE_PARM_DESC(swcrypto50, |
1757 | "using software crypto engine (default 0 [hardware])\n"); | 1757 | "using software crypto engine (default 0 [hardware])\n"); |
1758 | module_param_named(queues_num50, iwl50_mod_params.num_of_queues, int, 0444); | 1758 | module_param_named(queues_num50, iwl50_mod_params.num_of_queues, int, S_IRUGO); |
1759 | MODULE_PARM_DESC(queues_num50, "number of hw queues in 50xx series"); | 1759 | MODULE_PARM_DESC(queues_num50, "number of hw queues in 50xx series"); |
1760 | module_param_named(11n_disable50, iwl50_mod_params.disable_11n, int, 0444); | 1760 | module_param_named(11n_disable50, iwl50_mod_params.disable_11n, int, S_IRUGO); |
1761 | MODULE_PARM_DESC(11n_disable50, "disable 50XX 11n functionality"); | 1761 | MODULE_PARM_DESC(11n_disable50, "disable 50XX 11n functionality"); |
1762 | module_param_named(amsdu_size_8K50, iwl50_mod_params.amsdu_size_8K, int, 0444); | 1762 | module_param_named(amsdu_size_8K50, iwl50_mod_params.amsdu_size_8K, |
1763 | int, S_IRUGO); | ||
1763 | MODULE_PARM_DESC(amsdu_size_8K50, "enable 8K amsdu size in 50XX series"); | 1764 | MODULE_PARM_DESC(amsdu_size_8K50, "enable 8K amsdu size in 50XX series"); |
1764 | module_param_named(fw_restart50, iwl50_mod_params.restart_fw, int, 0444); | 1765 | module_param_named(fw_restart50, iwl50_mod_params.restart_fw, int, S_IRUGO); |
1765 | MODULE_PARM_DESC(fw_restart50, "restart firmware in case of error"); | 1766 | MODULE_PARM_DESC(fw_restart50, "restart firmware in case of error"); |