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>
This commit is contained in:

committed by
Johannes Berg

parent
2ae70efcea
commit
ad30ca2c03
@@ -252,7 +252,15 @@
|
||||
* %NL80211_ATTR_IFINDEX.
|
||||
*
|
||||
* @NL80211_CMD_GET_REG: ask the wireless core to send us its currently set
|
||||
* regulatory domain.
|
||||
* regulatory domain. If %NL80211_ATTR_WIPHY is specified and the device
|
||||
* has a private regulatory domain, it will be returned. Otherwise, the
|
||||
* global regdomain will be returned.
|
||||
* A device will have a private regulatory domain if it uses the
|
||||
* regulatory_hint() API. Even when a private regdomain is used the channel
|
||||
* information will still be mended according to further hints from
|
||||
* the regulatory core to help with compliance. A dump version of this API
|
||||
* is now available which will returns the global regdomain as well as
|
||||
* all private regdomains of present wiphys (for those that have it).
|
||||
* @NL80211_CMD_SET_REG: Set current regulatory domain. CRDA sends this command
|
||||
* after being queried by the kernel. CRDA replies by sending a regulatory
|
||||
* domain structure which consists of %NL80211_ATTR_REG_ALPHA set to our
|
||||
|
Reference in New Issue
Block a user