diff options
Diffstat (limited to 'drivers/net/wireless')
-rw-r--r-- | drivers/net/wireless/ath/regd.c | 5 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-agn.c | 8 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl3945-base.c | 6 | ||||
-rw-r--r-- | drivers/net/wireless/mac80211_hwsim.c | 18 | ||||
-rw-r--r-- | drivers/net/wireless/p54/main.c | 2 |
5 files changed, 17 insertions, 22 deletions
diff --git a/drivers/net/wireless/ath/regd.c b/drivers/net/wireless/ath/regd.c index 077bcc142cde..039ac490465c 100644 --- a/drivers/net/wireless/ath/regd.c +++ b/drivers/net/wireless/ath/regd.c | |||
@@ -450,7 +450,7 @@ ath_regd_init_wiphy(struct ath_regulatory *reg, | |||
450 | const struct ieee80211_regdomain *regd; | 450 | const struct ieee80211_regdomain *regd; |
451 | 451 | ||
452 | wiphy->reg_notifier = reg_notifier; | 452 | wiphy->reg_notifier = reg_notifier; |
453 | wiphy->strict_regulatory = true; | 453 | wiphy->flags |= WIPHY_FLAG_STRICT_REGULATORY; |
454 | 454 | ||
455 | if (ath_is_world_regd(reg)) { | 455 | if (ath_is_world_regd(reg)) { |
456 | /* | 456 | /* |
@@ -458,8 +458,7 @@ ath_regd_init_wiphy(struct ath_regulatory *reg, | |||
458 | * saved on the wiphy orig_* parameters | 458 | * saved on the wiphy orig_* parameters |
459 | */ | 459 | */ |
460 | regd = ath_world_regdomain(reg); | 460 | regd = ath_world_regdomain(reg); |
461 | wiphy->custom_regulatory = true; | 461 | wiphy->flags |= WIPHY_FLAG_CUSTOM_REGULATORY; |
462 | wiphy->strict_regulatory = false; | ||
463 | } else { | 462 | } else { |
464 | /* | 463 | /* |
465 | * This gets applied in the case of the absense of CRDA, | 464 | * This gets applied in the case of the absense of CRDA, |
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 */ |
diff --git a/drivers/net/wireless/iwlwifi/iwl3945-base.c b/drivers/net/wireless/iwlwifi/iwl3945-base.c index 31f3c42b835c..5b7e80e5bab4 100644 --- a/drivers/net/wireless/iwlwifi/iwl3945-base.c +++ b/drivers/net/wireless/iwlwifi/iwl3945-base.c | |||
@@ -3904,10 +3904,8 @@ static int iwl3945_setup_mac(struct iwl_priv *priv) | |||
3904 | BIT(NL80211_IFTYPE_STATION) | | 3904 | BIT(NL80211_IFTYPE_STATION) | |
3905 | BIT(NL80211_IFTYPE_ADHOC); | 3905 | BIT(NL80211_IFTYPE_ADHOC); |
3906 | 3906 | ||
3907 | hw->wiphy->custom_regulatory = true; | 3907 | hw->wiphy->flags |= WIPHY_FLAG_STRICT_REGULATORY | |
3908 | 3908 | WIPHY_FLAG_DISABLE_BEACON_HINTS; | |
3909 | /* Firmware does not support this */ | ||
3910 | hw->wiphy->disable_beacon_hints = true; | ||
3911 | 3909 | ||
3912 | hw->wiphy->max_scan_ssids = PROBE_OPTION_MAX_3945; | 3910 | hw->wiphy->max_scan_ssids = PROBE_OPTION_MAX_3945; |
3913 | /* we create the 802.11 header and a zero-length SSID element */ | 3911 | /* we create the 802.11 header and a zero-length SSID element */ |
diff --git a/drivers/net/wireless/mac80211_hwsim.c b/drivers/net/wireless/mac80211_hwsim.c index fc4ec48eda12..88e41176e7fd 100644 --- a/drivers/net/wireless/mac80211_hwsim.c +++ b/drivers/net/wireless/mac80211_hwsim.c | |||
@@ -1146,46 +1146,46 @@ static int __init init_mac80211_hwsim(void) | |||
1146 | break; | 1146 | break; |
1147 | case HWSIM_REGTEST_WORLD_ROAM: | 1147 | case HWSIM_REGTEST_WORLD_ROAM: |
1148 | if (i == 0) { | 1148 | if (i == 0) { |
1149 | hw->wiphy->custom_regulatory = true; | 1149 | hw->wiphy->flags |= WIPHY_FLAG_CUSTOM_REGULATORY; |
1150 | wiphy_apply_custom_regulatory(hw->wiphy, | 1150 | wiphy_apply_custom_regulatory(hw->wiphy, |
1151 | &hwsim_world_regdom_custom_01); | 1151 | &hwsim_world_regdom_custom_01); |
1152 | } | 1152 | } |
1153 | break; | 1153 | break; |
1154 | case HWSIM_REGTEST_CUSTOM_WORLD: | 1154 | case HWSIM_REGTEST_CUSTOM_WORLD: |
1155 | hw->wiphy->custom_regulatory = true; | 1155 | hw->wiphy->flags |= WIPHY_FLAG_CUSTOM_REGULATORY; |
1156 | wiphy_apply_custom_regulatory(hw->wiphy, | 1156 | wiphy_apply_custom_regulatory(hw->wiphy, |
1157 | &hwsim_world_regdom_custom_01); | 1157 | &hwsim_world_regdom_custom_01); |
1158 | break; | 1158 | break; |
1159 | case HWSIM_REGTEST_CUSTOM_WORLD_2: | 1159 | case HWSIM_REGTEST_CUSTOM_WORLD_2: |
1160 | if (i == 0) { | 1160 | if (i == 0) { |
1161 | hw->wiphy->custom_regulatory = true; | 1161 | hw->wiphy->flags |= WIPHY_FLAG_CUSTOM_REGULATORY; |
1162 | wiphy_apply_custom_regulatory(hw->wiphy, | 1162 | wiphy_apply_custom_regulatory(hw->wiphy, |
1163 | &hwsim_world_regdom_custom_01); | 1163 | &hwsim_world_regdom_custom_01); |
1164 | } else if (i == 1) { | 1164 | } else if (i == 1) { |
1165 | hw->wiphy->custom_regulatory = true; | 1165 | hw->wiphy->flags |= WIPHY_FLAG_CUSTOM_REGULATORY; |
1166 | wiphy_apply_custom_regulatory(hw->wiphy, | 1166 | wiphy_apply_custom_regulatory(hw->wiphy, |
1167 | &hwsim_world_regdom_custom_02); | 1167 | &hwsim_world_regdom_custom_02); |
1168 | } | 1168 | } |
1169 | break; | 1169 | break; |
1170 | case HWSIM_REGTEST_STRICT_ALL: | 1170 | case HWSIM_REGTEST_STRICT_ALL: |
1171 | hw->wiphy->strict_regulatory = true; | 1171 | hw->wiphy->flags |= WIPHY_FLAG_STRICT_REGULATORY; |
1172 | break; | 1172 | break; |
1173 | case HWSIM_REGTEST_STRICT_FOLLOW: | 1173 | case HWSIM_REGTEST_STRICT_FOLLOW: |
1174 | case HWSIM_REGTEST_STRICT_AND_DRIVER_REG: | 1174 | case HWSIM_REGTEST_STRICT_AND_DRIVER_REG: |
1175 | if (i == 0) | 1175 | if (i == 0) |
1176 | hw->wiphy->strict_regulatory = true; | 1176 | hw->wiphy->flags |= WIPHY_FLAG_STRICT_REGULATORY; |
1177 | break; | 1177 | break; |
1178 | case HWSIM_REGTEST_ALL: | 1178 | case HWSIM_REGTEST_ALL: |
1179 | if (i == 0) { | 1179 | if (i == 0) { |
1180 | hw->wiphy->custom_regulatory = true; | 1180 | hw->wiphy->flags |= WIPHY_FLAG_CUSTOM_REGULATORY; |
1181 | wiphy_apply_custom_regulatory(hw->wiphy, | 1181 | wiphy_apply_custom_regulatory(hw->wiphy, |
1182 | &hwsim_world_regdom_custom_01); | 1182 | &hwsim_world_regdom_custom_01); |
1183 | } else if (i == 1) { | 1183 | } else if (i == 1) { |
1184 | hw->wiphy->custom_regulatory = true; | 1184 | hw->wiphy->flags |= WIPHY_FLAG_CUSTOM_REGULATORY; |
1185 | wiphy_apply_custom_regulatory(hw->wiphy, | 1185 | wiphy_apply_custom_regulatory(hw->wiphy, |
1186 | &hwsim_world_regdom_custom_02); | 1186 | &hwsim_world_regdom_custom_02); |
1187 | } else if (i == 4) | 1187 | } else if (i == 4) |
1188 | hw->wiphy->strict_regulatory = true; | 1188 | hw->wiphy->flags |= WIPHY_FLAG_STRICT_REGULATORY; |
1189 | break; | 1189 | break; |
1190 | default: | 1190 | default: |
1191 | break; | 1191 | break; |
diff --git a/drivers/net/wireless/p54/main.c b/drivers/net/wireless/p54/main.c index 4d486bf9f725..18012dbfb45d 100644 --- a/drivers/net/wireless/p54/main.c +++ b/drivers/net/wireless/p54/main.c | |||
@@ -579,7 +579,7 @@ struct ieee80211_hw *p54_init_common(size_t priv_data_len) | |||
579 | * For now, disable PS by default because it affects | 579 | * For now, disable PS by default because it affects |
580 | * link stability significantly. | 580 | * link stability significantly. |
581 | */ | 581 | */ |
582 | dev->wiphy->ps_default = false; | 582 | dev->wiphy->flags &= ~WIPHY_FLAG_PS_ON_BY_DEFAULT; |
583 | 583 | ||
584 | mutex_init(&priv->conf_mutex); | 584 | mutex_init(&priv->conf_mutex); |
585 | mutex_init(&priv->eeprom_mutex); | 585 | mutex_init(&priv->eeprom_mutex); |