diff options
author | Felix Fietkau <nbd@openwrt.org> | 2014-05-05 05:48:40 -0400 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2014-05-13 09:50:06 -0400 |
commit | 8c48b50a1a888ac5511fe856d63f72fb688c6bb4 (patch) | |
tree | 34e897f3799273001f9e546f5bf356c43b6fbdca /net/wireless/nl80211.c | |
parent | f6837ba8c98afcf28ec25f6863a8597274aeefd6 (diff) |
cfg80211: allow restricting supported dfs regions
At the moment, the ath9k/ath10k DFS module only supports detecting ETSI
radar patterns.
Add a bitmap in the interface combinations, indicating which DFS regions
are supported by the detector. If unset, support for all regions is
assumed.
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/wireless/nl80211.c')
-rw-r--r-- | net/wireless/nl80211.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/net/wireless/nl80211.c b/net/wireless/nl80211.c index 0f1b18f209d6..c0833830cfe7 100644 --- a/net/wireless/nl80211.c +++ b/net/wireless/nl80211.c | |||
@@ -970,8 +970,10 @@ static int nl80211_put_iface_combinations(struct wiphy *wiphy, | |||
970 | c->max_interfaces)) | 970 | c->max_interfaces)) |
971 | goto nla_put_failure; | 971 | goto nla_put_failure; |
972 | if (large && | 972 | if (large && |
973 | nla_put_u32(msg, NL80211_IFACE_COMB_RADAR_DETECT_WIDTHS, | 973 | (nla_put_u32(msg, NL80211_IFACE_COMB_RADAR_DETECT_WIDTHS, |
974 | c->radar_detect_widths)) | 974 | c->radar_detect_widths) || |
975 | nla_put_u32(msg, NL80211_IFACE_COMB_RADAR_DETECT_REGIONS, | ||
976 | c->radar_detect_regions))) | ||
975 | goto nla_put_failure; | 977 | goto nla_put_failure; |
976 | 978 | ||
977 | nla_nest_end(msg, nl_combi); | 979 | nla_nest_end(msg, nl_combi); |