diff options
author | Johannes Berg <johannes@sipsolutions.net> | 2009-11-18 18:56:28 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-11-19 11:08:50 -0500 |
commit | 5be83de54c16944dea9c16c6a5a53c1fa75ed304 (patch) | |
tree | dd251d9331a07ec73c7a4992c79ce30f0553db40 /drivers/net/wireless/iwlwifi/iwl-agn.c | |
parent | 9bd568a50c446433038dec2a5186c5c57c3dbd23 (diff) |
cfg80211: convert bools into flags
We've accumulated a number of options for wiphys
which make more sense as flags as we keep adding
more. Convert the existing ones.
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-agn.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-agn.c | 8 |
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 */ |