Commit 3e850edd authored by Luis R. Rodriguez's avatar Luis R. Rodriguez Committed by John W. Linville

ath: fix dynamic user regulatory settings

A world regulatory domain check was in place that
prevents user dynamic regulatory hints from being
processed. This was there for historical reasons
as this was only possible previously for world
roaming cards and dynamic regulatory settings was
only possible for country IEs. Fix this by enforcing
the world regulatory domain check only for when the
initiator is a country IE. Support for dynamic user
regulatory support is already checked.
Signed-off-by: default avatarLuis R. Rodriguez <mcgrof@do-not-panic.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 32019c73
...@@ -362,7 +362,8 @@ static int __ath_reg_dyn_country(struct wiphy *wiphy, ...@@ -362,7 +362,8 @@ static int __ath_reg_dyn_country(struct wiphy *wiphy,
{ {
u16 country_code; u16 country_code;
if (!ath_is_world_regd(reg)) if (request->initiator == NL80211_REGDOM_SET_BY_COUNTRY_IE &&
!ath_is_world_regd(reg))
return -EINVAL; return -EINVAL;
country_code = ath_regd_find_country_by_name(request->alpha2); country_code = ath_regd_find_country_by_name(request->alpha2);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment