diff options
| author | Arik Nemtsov <arik@wizery.com> | 2014-12-15 12:25:59 -0500 |
|---|---|---|
| committer | Johannes Berg <johannes.berg@intel.com> | 2014-12-17 05:49:55 -0500 |
| commit | ad30ca2c03cecfb1b0749874bdceead269542de6 (patch) | |
| tree | 72f6782278fd458c5d57b38123c2c8e74ec51eab /include/uapi/linux | |
| parent | 2ae70efcea7a695a62bb47170d3fb16674b8dbea (diff) | |
cfg80211: allow usermode to query wiphy specific regdom
If a wiphy-idx is specified, the kernel will return the wiphy specific
regdomain, if such exists. Otherwise return the global regdom.
When no wiphy-idx is specified, return the global regdomain as well as
all wiphy-specific regulatory domains in the system, via a new nested
list of attributes.
Add a new attribute for each wiphy-specific regdomain, for usermode to
identify it as such.
Signed-off-by: Arik Nemtsov <arikx.nemtsov@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'include/uapi/linux')
| -rw-r--r-- | include/uapi/linux/nl80211.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/include/uapi/linux/nl80211.h b/include/uapi/linux/nl80211.h index b37bd5a1cb82..2d384d041224 100644 --- a/include/uapi/linux/nl80211.h +++ b/include/uapi/linux/nl80211.h | |||
| @@ -252,7 +252,15 @@ | |||
| 252 | * %NL80211_ATTR_IFINDEX. | 252 | * %NL80211_ATTR_IFINDEX. |
| 253 | * | 253 | * |
| 254 | * @NL80211_CMD_GET_REG: ask the wireless core to send us its currently set | 254 | * @NL80211_CMD_GET_REG: ask the wireless core to send us its currently set |
| 255 | * regulatory domain. | 255 | * regulatory domain. If %NL80211_ATTR_WIPHY is specified and the device |
| 256 | * has a private regulatory domain, it will be returned. Otherwise, the | ||
| 257 | * global regdomain will be returned. | ||
| 258 | * A device will have a private regulatory domain if it uses the | ||
| 259 | * regulatory_hint() API. Even when a private regdomain is used the channel | ||
| 260 | * information will still be mended according to further hints from | ||
| 261 | * the regulatory core to help with compliance. A dump version of this API | ||
| 262 | * is now available which will returns the global regdomain as well as | ||
| 263 | * all private regdomains of present wiphys (for those that have it). | ||
| 256 | * @NL80211_CMD_SET_REG: Set current regulatory domain. CRDA sends this command | 264 | * @NL80211_CMD_SET_REG: Set current regulatory domain. CRDA sends this command |
| 257 | * after being queried by the kernel. CRDA replies by sending a regulatory | 265 | * after being queried by the kernel. CRDA replies by sending a regulatory |
| 258 | * domain structure which consists of %NL80211_ATTR_REG_ALPHA set to our | 266 | * domain structure which consists of %NL80211_ATTR_REG_ALPHA set to our |
