aboutsummaryrefslogtreecommitdiff
path: root/include/net/cfg80211.h
diff options
context:
space:
mode:
authorGravatar Luis R. Rodriguez <mcgrof@do-not-panic.com> 2013-10-14 17:42:06 -0700
committerGravatar John W. Linville <linville@tuxdriver.com> 2013-10-18 14:04:40 -0400
commit03f27120fb935f2a7f1a7471acb6450dbc64e564 (patch)
tree8e8295e943dd1afb58acd782cbf1f6ad2efd14ae /include/net/cfg80211.h
parentrt2x00: rt2800lib: autodetect 5GHz band support (diff)
downloadlinux-03f27120fb935f2a7f1a7471acb6450dbc64e564.tar.gz
linux-03f27120fb935f2a7f1a7471acb6450dbc64e564.tar.bz2
linux-03f27120fb935f2a7f1a7471acb6450dbc64e564.zip
cfg80211: export reg_initiator_name()
Drivers can now use this to parse the regulatory request and be more verbose when needed. Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'include/net/cfg80211.h')
-rw-r--r--include/net/cfg80211.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/net/cfg80211.h b/include/net/cfg80211.h
index 45f6bf591104..419202ce3f95 100644
--- a/include/net/cfg80211.h
+++ b/include/net/cfg80211.h
@@ -3483,6 +3483,15 @@ void wiphy_apply_custom_regulatory(struct wiphy *wiphy,
const struct ieee80211_reg_rule *freq_reg_info(struct wiphy *wiphy,
u32 center_freq);
+/**
+ * reg_initiator_name - map regulatory request initiator enum to name
+ * @initiator: the regulatory request initiator
+ *
+ * You can use this to map the regulatory request initiator enum to a
+ * proper string representation.
+ */
+const char *reg_initiator_name(enum nl80211_reg_initiator initiator);
+
/*
* callbacks for asynchronous cfg80211 methods, notification
* functions and BSS handling helpers