Allow driver and user hints to set the "world" regulatory domain, and also allow them to set the same reg-domain. This is useful when sending an unknown-country ("99") request to a wiphy-specific regulatory source, requesting it to provide the current alpha2. It may return an updated regdomain for the "world" alpha2. Note there's a check for regdom change at the request level, so the case where the same alpha2 is set repeatedly is still optimized. Change-Id: Iced65fd43bd10e40f1f446a9aff5d5ea380eecaa Signed-off-by: Arik Nemtsov <arikx.nemtsov@xxxxxxxxx> Reviewed-on: https://gerrit.rds.intel.com/32267 Tested-by: IWL Jenkins Reviewed-by: Johannes Berg <johannes.berg@xxxxxxxxx> --- net/wireless/reg.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/net/wireless/reg.c b/net/wireless/reg.c index c429ec5..d6b83f9 100644 --- a/net/wireless/reg.c +++ b/net/wireless/reg.c @@ -2539,9 +2539,6 @@ static int reg_set_rd_user(const struct ieee80211_regdomain *rd, { const struct ieee80211_regdomain *intersected_rd = NULL; - if (!regdom_changes(rd->alpha2)) - return -EALREADY; - if (!is_valid_rd(rd)) { pr_err("Invalid regulatory domain detected:\n"); print_regdomain_info(rd); @@ -2572,12 +2569,6 @@ static int reg_set_rd_driver(const struct ieee80211_regdomain *rd, const struct ieee80211_regdomain *tmp; struct wiphy *request_wiphy; - if (is_world_regdom(rd->alpha2)) - return -EINVAL; - - if (!regdom_changes(rd->alpha2)) - return -EALREADY; - if (!is_valid_rd(rd)) { pr_err("Invalid regulatory domain detected:\n"); print_regdomain_info(rd); -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html