summaryrefslogtreecommitdiff
path: root/net/wireless/reg.c
diff options
context:
space:
mode:
authorKiran Kumar Lokere <klokere@codeaurora.org>2018-01-19 23:46:53 -0800
committerGerrit - the friendly Code Review server <code-review@localhost>2018-02-19 22:39:51 -0800
commit98d5572dd2ec954f516f9fd5b55dcef2b09a1d7c (patch)
treeda9a67d1b64ab4252597aa1d497a321b358cd915 /net/wireless/reg.c
parenta961632a48ed39c18014debc4201e3ea5b6e3dd0 (diff)
cfg80211: Define new API to send reg change event
Define new exported cfg80211 api cfg80211_send_reg_change_event() to send regulatory update event to user-space. CRs-Fixed: 2183721 Change-Id: I32e12c8db22a63b9166481dfec937716fb15d855 Signed-off-by: Kiran Kumar Lokere <klokere@codeaurora.org>
Diffstat (limited to 'net/wireless/reg.c')
-rw-r--r--net/wireless/reg.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/net/wireless/reg.c b/net/wireless/reg.c
index 02177062f57a..970880924eca 100644
--- a/net/wireless/reg.c
+++ b/net/wireless/reg.c
@@ -1796,6 +1796,14 @@ static void update_all_wiphy_regulatory(enum nl80211_reg_initiator initiator)
reg_check_channels();
}
+void cfg80211_send_reg_change_event(struct regulatory_request *request,
+ struct wiphy *wiphy)
+{
+ request->wiphy_idx = get_wiphy_idx(wiphy);
+ nl80211_send_reg_change_event(request);
+}
+EXPORT_SYMBOL(cfg80211_send_reg_change_event);
+
static void handle_channel_custom(struct wiphy *wiphy,
struct ieee80211_channel *chan,
const struct ieee80211_regdomain *regd)