Skip to content

Commit f082347

Browse files
dziedjanjmberg-intel
authored andcommitted
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 <janusz.dziedzic@tieto.com> Reviewed-by: Luis R. Rodriguez <mcgrof@do-not-panic.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
1 parent 55fff50 commit f082347

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

‎net/wireless/genregdb.awk‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,12 @@ BEGIN {
4646
sub(/:/, "", country)
4747
printf "static const struct ieee80211_regdomain regdom_%s = {\n", country
4848
printf "\t.alpha2 = \"%s\",\n", country
49+
if ($NF ~ /DFS-ETSI/)
50+
printf "\t.dfs_region = NL80211_DFS_ETSI,\n"
51+
else if ($NF ~ /DFS-FCC/)
52+
printf "\t.dfs_region = NL80211_DFS_FCC,\n"
53+
else if ($NF ~ /DFS-JP/)
54+
printf "\t.dfs_region = NL80211_DFS_JP,\n"
4955
printf "\t.reg_rules = {\n"
5056
active = 1
5157
regdb = regdb "\t&regdom_" country ",\n"

0 commit comments

Comments
 (0)