2013-09-17 06:25:47

by Janusz Dziedzic

[permalink] [raw]
Subject: [PATCH] cfg80211: parse dfs region for internal regdb option

Add support for parsing and setting the dfs region (ETSI, FCC, JP)
when the internal regulatory database is used. Before this
the DFS region was being ignored even if present on the used
db.txt

Signed-off-by: Janusz Dziedzic <[email protected]>
---
net/wireless/genregdb.awk | 6 ++++++
1 file changed, 6 insertions(+)

diff --git a/net/wireless/genregdb.awk b/net/wireless/genregdb.awk
index 9392f8c..42ed274 100644
--- a/net/wireless/genregdb.awk
+++ b/net/wireless/genregdb.awk
@@ -46,6 +46,12 @@ BEGIN {
sub(/:/, "", country)
printf "static const struct ieee80211_regdomain regdom_%s = {\n", country
printf "\t.alpha2 = \"%s\",\n", country
+ if ($NF ~ /DFS-ETSI/)
+ printf "\t.dfs_region = NL80211_DFS_ETSI,\n"
+ else if ($NF ~ /DFS-FCC/)
+ printf "\t.dfs_region = NL80211_DFS_FCC,\n"
+ else if ($NF ~ /DFS-JP/)
+ printf "\t.dfs_region = NL80211_DFS_JP,\n"
printf "\t.reg_rules = {\n"
active = 1
regdb = regdb "\t&regdom_" country ",\n"
--
1.7.9.5



2013-09-30 20:56:52

by Luis R. Rodriguez

[permalink] [raw]
Subject: Re: [PATCH] cfg80211: parse dfs region for internal regdb option

On Mon, Sep 16, 2013 at 11:25 PM, Janusz Dziedzic
<[email protected]> wrote:
> Add support for parsing and setting the dfs region (ETSI, FCC, JP)
> when the internal regulatory database is used. Before this
> the DFS region was being ignored even if present on the used
> db.txt
>
> Signed-off-by: Janusz Dziedzic <[email protected]>

Reviewed-by: Luis R. Rodriguez <[email protected]>

It'd be nice to automate the list somehow in the future.

Luis

2013-09-30 14:31:12

by Johannes Berg

[permalink] [raw]
Subject: Re: [PATCH] cfg80211: parse dfs region for internal regdb option

On Tue, 2013-09-17 at 08:25 +0200, Janusz Dziedzic wrote:
> Add support for parsing and setting the dfs region (ETSI, FCC, JP)
> when the internal regulatory database is used. Before this
> the DFS region was being ignored even if present on the used
> db.txt

Looks good to me, Luis?

johannes


2013-10-01 10:18:56

by Johannes Berg

[permalink] [raw]
Subject: Re: [PATCH] cfg80211: parse dfs region for internal regdb option

On Tue, 2013-09-17 at 08:25 +0200, Janusz Dziedzic wrote:
> Add support for parsing and setting the dfs region (ETSI, FCC, JP)
> when the internal regulatory database is used. Before this
> the DFS region was being ignored even if present on the used
> db.txt

Applied.

johannes