ath: fix dynamic user regulatory settings
Linux-MTD Mailing List
linux-mtd at lists.infradead.org
Fri Nov 22 17:59:06 EST 2013
Gitweb: http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=3e850edd58800e7b9b29a8dc2c950ebdf489a3e3
Commit: 3e850edd58800e7b9b29a8dc2c950ebdf489a3e3
Parent: 32019c739c95d056575e0bb2381f2846c0c49944
Author: Luis R. Rodriguez <mcgrof at do-not-panic.com>
AuthorDate: Tue Nov 12 19:33:20 2013 +0100
Committer: John W. Linville <linville at tuxdriver.com>
CommitDate: Fri Nov 15 14:27:25 2013 -0500
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: Luis R. Rodriguez <mcgrof at do-not-panic.com>
Signed-off-by: John W. Linville <linville at tuxdriver.com>
---
drivers/net/wireless/ath/regd.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/net/wireless/ath/regd.c b/drivers/net/wireless/ath/regd.c
index c00687e..1217c52 100644
--- a/drivers/net/wireless/ath/regd.c
+++ b/drivers/net/wireless/ath/regd.c
@@ -362,7 +362,8 @@ static int __ath_reg_dyn_country(struct wiphy *wiphy,
{
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;
country_code = ath_regd_find_country_by_name(request->alpha2);
More information about the linux-mtd-cvs
mailing list