diff options
author | Janusz Dziedzic <janusz.dziedzic@tieto.com> | 2013-09-17 08:25:36 +0200 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2013-10-01 12:18:36 +0200 |
commit | f0823475d57a1ece4fe1eafb1aef5c4fa79361aa (patch) | |
tree | 6cf9ca36a2ec27e235d656d1717a409fe4044d03 /net/wireless/genregdb.awk | |
parent | mac80211: add explicit IBSS driver operations (diff) | |
download | linux-f0823475d57a1ece4fe1eafb1aef5c4fa79361aa.tar.xz linux-f0823475d57a1ece4fe1eafb1aef5c4fa79361aa.zip |
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>
Diffstat (limited to 'net/wireless/genregdb.awk')
-rw-r--r-- | net/wireless/genregdb.awk | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/net/wireless/genregdb.awk b/net/wireless/genregdb.awk index 9392f8cbb901..42ed274e81f4 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" |