* [PATCH] cfg80211: parse dfs region for internal regdb option
@ 2013-09-17 6:25 Janusz Dziedzic
2013-09-30 14:31 ` Johannes Berg
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Janusz Dziedzic @ 2013-09-17 6:25 UTC (permalink / raw)
To: linux-wireless; +Cc: linville, rodrigue, Janusz Dziedzic
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 <janusz.dziedzic@tieto.com>
---
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®dom_" country ",\n"
--
1.7.9.5
^ permalink raw reply related [flat|nested] 4+ messages in thread* Re: [PATCH] cfg80211: parse dfs region for internal regdb option
2013-09-17 6:25 [PATCH] cfg80211: parse dfs region for internal regdb option Janusz Dziedzic
@ 2013-09-30 14:31 ` Johannes Berg
2013-09-30 20:56 ` Luis R. Rodriguez
2013-10-01 10:18 ` Johannes Berg
2 siblings, 0 replies; 4+ messages in thread
From: Johannes Berg @ 2013-09-30 14:31 UTC (permalink / raw)
To: Janusz Dziedzic; +Cc: linux-wireless, linville, rodrigue, mcgrof
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] cfg80211: parse dfs region for internal regdb option
2013-09-17 6:25 [PATCH] cfg80211: parse dfs region for internal regdb option Janusz Dziedzic
2013-09-30 14:31 ` Johannes Berg
@ 2013-09-30 20:56 ` Luis R. Rodriguez
2013-10-01 10:18 ` Johannes Berg
2 siblings, 0 replies; 4+ messages in thread
From: Luis R. Rodriguez @ 2013-09-30 20:56 UTC (permalink / raw)
To: Janusz Dziedzic, Johannes Berg; +Cc: linux-wireless, John W. Linville
On Mon, Sep 16, 2013 at 11:25 PM, Janusz Dziedzic
<janusz.dziedzic@tieto.com> 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 <janusz.dziedzic@tieto.com>
Reviewed-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
It'd be nice to automate the list somehow in the future.
Luis
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] cfg80211: parse dfs region for internal regdb option
2013-09-17 6:25 [PATCH] cfg80211: parse dfs region for internal regdb option Janusz Dziedzic
2013-09-30 14:31 ` Johannes Berg
2013-09-30 20:56 ` Luis R. Rodriguez
@ 2013-10-01 10:18 ` Johannes Berg
2 siblings, 0 replies; 4+ messages in thread
From: Johannes Berg @ 2013-10-01 10:18 UTC (permalink / raw)
To: Janusz Dziedzic; +Cc: linux-wireless, linville, rodrigue
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
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2013-10-01 10:18 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-17 6:25 [PATCH] cfg80211: parse dfs region for internal regdb option Janusz Dziedzic
2013-09-30 14:31 ` Johannes Berg
2013-09-30 20:56 ` Luis R. Rodriguez
2013-10-01 10:18 ` Johannes Berg
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox