Skip to content

Commit

Permalink
cfg80211: regulatory: allow user to set world regdomain
Browse files Browse the repository at this point in the history
Allow to set world regulatory domain in case of user
request (iw reg set 00).

Signed-off-by: Janusz Dziedzic <janusz.dziedzic@tieto.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
  • Loading branch information
Janusz Dziedzic authored and Johannes Berg committed Feb 25, 2014
1 parent 1226d25 commit fb5c963
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions net/wireless/reg.c
Original file line number Diff line number Diff line change
Expand Up @@ -2362,9 +2362,6 @@ static int reg_set_rd_user(const struct ieee80211_regdomain *rd,
{
const struct ieee80211_regdomain *intersected_rd = NULL;

if (is_world_regdom(rd->alpha2))
return -EINVAL;

if (!regdom_changes(rd->alpha2))
return -EALREADY;

Expand Down

0 comments on commit fb5c963

Please sign in to comment.