diff options
author | Luis R. Rodriguez <mcgrof@qca.qualcomm.com> | 2011-10-11 13:59:02 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-11-21 16:20:41 -0500 |
commit | 8b60b07805d557542160d852874fa6a1b969184e (patch) | |
tree | 74b96b63c62cf7cef9684c19bda8f8d51ceabe0d /include/linux/nl80211.h | |
parent | 4713e962c5d98901890c446843ae4e0a9d37b7b3 (diff) |
cfg80211: process regulatory DFS region for countries
The wireless-regdb now has support for mapping a country to
one DFS region. CRDA sends this to us now so process it
so we can provide that hint to drivers. This will later be
used by code for processing DFS in a way that meets the
criteria for the DFS region the country belongs to.
Signed-off-by: Luis R. Rodriguez <mcgrof@qca.qualcomm.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'include/linux/nl80211.h')
-rw-r--r-- | include/linux/nl80211.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/include/linux/nl80211.h b/include/linux/nl80211.h index f9261c253735..6396819a7e41 100644 --- a/include/linux/nl80211.h +++ b/include/linux/nl80211.h | |||
@@ -1170,6 +1170,10 @@ enum nl80211_commands { | |||
1170 | * probe-response frame. The DA field in the 802.11 header is zero-ed out, | 1170 | * probe-response frame. The DA field in the 802.11 header is zero-ed out, |
1171 | * to be filled by the FW. | 1171 | * to be filled by the FW. |
1172 | * | 1172 | * |
1173 | * @NL80211_ATTR_DFS_REGION: region for regulatory rules which this country | ||
1174 | * abides to when initiating radiation on DFS channels. A country maps | ||
1175 | * to one DFS region. | ||
1176 | * | ||
1173 | * @NL80211_ATTR_MAX: highest attribute number currently defined | 1177 | * @NL80211_ATTR_MAX: highest attribute number currently defined |
1174 | * @__NL80211_ATTR_AFTER_LAST: internal use | 1178 | * @__NL80211_ATTR_AFTER_LAST: internal use |
1175 | */ | 1179 | */ |
@@ -1408,6 +1412,8 @@ enum nl80211_attrs { | |||
1408 | 1412 | ||
1409 | NL80211_ATTR_PROBE_RESP, | 1413 | NL80211_ATTR_PROBE_RESP, |
1410 | 1414 | ||
1415 | NL80211_ATTR_DFS_REGION, | ||
1416 | |||
1411 | /* add attributes here, update the policy in nl80211.c */ | 1417 | /* add attributes here, update the policy in nl80211.c */ |
1412 | 1418 | ||
1413 | __NL80211_ATTR_AFTER_LAST, | 1419 | __NL80211_ATTR_AFTER_LAST, |
@@ -1917,6 +1923,21 @@ enum nl80211_reg_rule_flags { | |||
1917 | }; | 1923 | }; |
1918 | 1924 | ||
1919 | /** | 1925 | /** |
1926 | * enum nl80211_dfs_regions - regulatory DFS regions | ||
1927 | * | ||
1928 | * @NL80211_DFS_UNSET: Country has no DFS master region specified | ||
1929 | * @NL80211_DFS_FCC_: Country follows DFS master rules from FCC | ||
1930 | * @NL80211_DFS_FCC_: Country follows DFS master rules from ETSI | ||
1931 | * @NL80211_DFS_JP_: Country follows DFS master rules from JP/MKK/Telec | ||
1932 | */ | ||
1933 | enum nl80211_dfs_regions { | ||
1934 | NL80211_DFS_UNSET = 0, | ||
1935 | NL80211_DFS_FCC = 1, | ||
1936 | NL80211_DFS_ETSI = 2, | ||
1937 | NL80211_DFS_JP = 3, | ||
1938 | }; | ||
1939 | |||
1940 | /** | ||
1920 | * enum nl80211_survey_info - survey information | 1941 | * enum nl80211_survey_info - survey information |
1921 | * | 1942 | * |
1922 | * These attribute types are used with %NL80211_ATTR_SURVEY_INFO | 1943 | * These attribute types are used with %NL80211_ATTR_SURVEY_INFO |