aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuis R. Rodriguez <mcgrof@frijolero.org>2012-01-18 17:43:34 -0800
committerLuis R. Rodriguez <mcgrof@frijolero.org>2012-01-18 17:51:24 -0800
commit271fb366ffe0988482325a83a9b3d9bc4dc31566 (patch)
tree550fe5645df6001f21767b918820df34937c2c03
parent7ce0874d14662275c38b50aa9dee7c841b593862 (diff)
downloadcrda-271fb366ffe0988482325a83a9b3d9bc4dc31566.tar.gz
crda: add dfs_region to the ieee80211_regdomain data structure
This will be used later once crda.c starts using the ieee80211_regdomain data structure passed on from reglib instead of using the mmap()'d regulatory file directly. Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
-rw-r--r--reglib.c1
-rw-r--r--reglib.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/reglib.c b/reglib.c
index 642f907..759c676 100644
--- a/reglib.c
+++ b/reglib.c
@@ -212,6 +212,7 @@ struct ieee80211_regdomain *country2rd(uint8_t *db, int dblen,
rd->alpha2[0] = country->alpha2[0];
rd->alpha2[1] = country->alpha2[1];
+ rd->dfs_region = country->creqs & 0x3;
rd->n_reg_rules = num_rules;
for (i = 0; i < num_rules; i++) {
diff --git a/reglib.h b/reglib.h
index d76ec52..bec6359 100644
--- a/reglib.h
+++ b/reglib.h
@@ -29,6 +29,7 @@ struct ieee80211_reg_rule {
struct ieee80211_regdomain {
uint32_t n_reg_rules;
char alpha2[2];
+ uint8_t dfs_region;
struct ieee80211_reg_rule reg_rules[];
};