wireless-regdb now has support for a DFS master region for each country. We must read this from the file and send it as an NL80211_ATTR_DFS_REGION attribute. Signed-off-by: Luis R. Rodriguez <mcgrof@xxxxxxxxxxxxxxxx> --- crda.c | 1 + regdb.h | 3 ++- 2 files changed, 3 insertions(+), 1 deletions(-) diff --git a/crda.c b/crda.c index 6857e3f..dfc5353 100644 --- a/crda.c +++ b/crda.c @@ -280,6 +280,7 @@ int main(int argc, char **argv) country->reg_collection_ptr); NLA_PUT_STRING(msg, NL80211_ATTR_REG_ALPHA2, (char *) country->alpha2); + NLA_PUT_U8(msg, NL80211_ATTR_DFS_REGION, country->dfs_region); nl_reg_rules = nla_nest_start(msg, NL80211_ATTR_REG_RULES); if (!nl_reg_rules) { diff --git a/regdb.h b/regdb.h index 045a0e3..b59115f 100644 --- a/regdb.h +++ b/regdb.h @@ -96,7 +96,8 @@ struct regdb_file_reg_rules_collection { struct regdb_file_reg_country { __u8 alpha2[2]; - __u8 PAD[2]; + __u8 PAD; + __u8 dfs_region; /* pointer (offset) into the file to a struct * regdb_file_reg_rules_collection */ __be32 reg_collection_ptr; -- 1.7.4.15.g7811d -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html