diff options
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-agn.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-agn.c | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn.c b/drivers/net/wireless/iwlwifi/iwl-agn.c index 1ac6c6475353..b719628b4fc7 100644 --- a/drivers/net/wireless/iwlwifi/iwl-agn.c +++ b/drivers/net/wireless/iwlwifi/iwl-agn.c | |||
@@ -2545,11 +2545,10 @@ static int iwl_mac_setup_register(struct iwl_priv *priv, | |||
2545 | WIPHY_FLAG_DISABLE_BEACON_HINTS | | 2545 | WIPHY_FLAG_DISABLE_BEACON_HINTS | |
2546 | WIPHY_FLAG_IBSS_RSN; | 2546 | WIPHY_FLAG_IBSS_RSN; |
2547 | 2547 | ||
2548 | /* | 2548 | if (iwlagn_mod_params.power_save) |
2549 | * For now, disable PS by default because it affects | 2549 | hw->wiphy->flags |= WIPHY_FLAG_PS_ON_BY_DEFAULT; |
2550 | * RX performance significantly. | 2550 | else |
2551 | */ | 2551 | hw->wiphy->flags &= ~WIPHY_FLAG_PS_ON_BY_DEFAULT; |
2552 | hw->wiphy->flags &= ~WIPHY_FLAG_PS_ON_BY_DEFAULT; | ||
2553 | 2552 | ||
2554 | hw->wiphy->max_scan_ssids = PROBE_OPTION_MAX; | 2553 | hw->wiphy->max_scan_ssids = PROBE_OPTION_MAX; |
2555 | /* we create the 802.11 header and a zero-length SSID element */ | 2554 | /* we create the 802.11 header and a zero-length SSID element */ |
@@ -3827,6 +3826,11 @@ module_param_named(led_mode, iwlagn_mod_params.led_mode, int, S_IRUGO); | |||
3827 | MODULE_PARM_DESC(led_mode, "0=system default, " | 3826 | MODULE_PARM_DESC(led_mode, "0=system default, " |
3828 | "1=On(RF On)/Off(RF Off), 2=blinking (default: 0)"); | 3827 | "1=On(RF On)/Off(RF Off), 2=blinking (default: 0)"); |
3829 | 3828 | ||
3829 | module_param_named(power_save, iwlagn_mod_params.power_save, | ||
3830 | bool, S_IRUGO); | ||
3831 | MODULE_PARM_DESC(power_save, | ||
3832 | "enable WiFi power management (default: disable)"); | ||
3833 | |||
3830 | /* | 3834 | /* |
3831 | * For now, keep using power level 1 instead of automatically | 3835 | * For now, keep using power level 1 instead of automatically |
3832 | * adjusting ... | 3836 | * adjusting ... |