aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl-agn.c
diff options
context:
space:
mode:
authorWey-Yi Guy <wey-yi.w.guy@intel.com>2011-06-11 13:00:06 -0400
committerWey-Yi Guy <wey-yi.w.guy@intel.com>2011-06-18 11:23:30 -0400
commitf7538168915271083070a60ebb10def11fce0cb0 (patch)
tree00471adb17178ec7bd2b8a50cb8fb366c5d45919 /drivers/net/wireless/iwlwifi/iwl-agn.c
parent0172b02926493863e2e3a35f1d7bf13e935e655c (diff)
iwlagn: Add power_level module parameter
Add power_level module parameter to set the default power save level. Power save level has range from 1 - 5, default power save level is 1. Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-agn.c')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-agn.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn.c b/drivers/net/wireless/iwlwifi/iwl-agn.c
index b719628b4fc7..77ceb8deff75 100644
--- a/drivers/net/wireless/iwlwifi/iwl-agn.c
+++ b/drivers/net/wireless/iwlwifi/iwl-agn.c
@@ -3831,6 +3831,11 @@ module_param_named(power_save, iwlagn_mod_params.power_save,
3831MODULE_PARM_DESC(power_save, 3831MODULE_PARM_DESC(power_save,
3832 "enable WiFi power management (default: disable)"); 3832 "enable WiFi power management (default: disable)");
3833 3833
3834module_param_named(power_level, iwlagn_mod_params.power_level,
3835 int, S_IRUGO);
3836MODULE_PARM_DESC(power_level,
3837 "default power save level (range from 1 - 5, default: 1)");
3838
3834/* 3839/*
3835 * For now, keep using power level 1 instead of automatically 3840 * For now, keep using power level 1 instead of automatically
3836 * adjusting ... 3841 * adjusting ...