aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl-agn.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-agn.c')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-agn.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn.c b/drivers/net/wireless/iwlwifi/iwl-agn.c
index b80cd0bc5845..e8f405a01e3d 100644
--- a/drivers/net/wireless/iwlwifi/iwl-agn.c
+++ b/drivers/net/wireless/iwlwifi/iwl-agn.c
@@ -2400,16 +2400,14 @@ static int iwl_setup_mac(struct iwl_priv *priv)
2400 BIT(NL80211_IFTYPE_STATION) | 2400 BIT(NL80211_IFTYPE_STATION) |
2401 BIT(NL80211_IFTYPE_ADHOC); 2401 BIT(NL80211_IFTYPE_ADHOC);
2402 2402
2403 hw->wiphy->custom_regulatory = true; 2403 hw->wiphy->flags |= WIPHY_FLAG_STRICT_REGULATORY |
2404 2404 WIPHY_FLAG_DISABLE_BEACON_HINTS;
2405 /* Firmware does not support this */
2406 hw->wiphy->disable_beacon_hints = true;
2407 2405
2408 /* 2406 /*
2409 * For now, disable PS by default because it affects 2407 * For now, disable PS by default because it affects
2410 * RX performance significantly. 2408 * RX performance significantly.
2411 */ 2409 */
2412 hw->wiphy->ps_default = false; 2410 hw->wiphy->flags &= ~WIPHY_FLAG_PS_ON_BY_DEFAULT;
2413 2411
2414 hw->wiphy->max_scan_ssids = PROBE_OPTION_MAX; 2412 hw->wiphy->max_scan_ssids = PROBE_OPTION_MAX;
2415 /* we create the 802.11 header and a zero-length SSID element */ 2413 /* we create the 802.11 header and a zero-length SSID element */