From cfb3bdddfc43532b7ad8473426162b0487f90d9f Mon Sep 17 00:00:00 2001 From: Luis R. Rodriguez Date: Mon, 14 Jul 2008 00:14:16 -0700 Subject: [PATCH] Add prototypes for register_regulatory_notifier() and unregister_regulatory_notifier() To: johannes@sipsolutions.net, linville@tuxdriver.com Cc: linux-wireless@vger.kernel.org Signed-off-by: Luis R. Rodriguez --- include/net/wireless.h | 2 ++ net/wireless/reg.c | 2 +- 2 files changed, 3 insertions(+), 1 deletions(-) diff --git a/include/net/wireless.h b/include/net/wireless.h index 60be012..5e7d25c 100644 --- a/include/net/wireless.h +++ b/include/net/wireless.h @@ -323,6 +323,8 @@ extern struct ieee80211_channel *__ieee80211_get_channel(struct wiphy *wiphy, int freq); extern int regulatory_hint(char *alpha2, struct wiphy *wiphy); +extern int register_regulatory_notifier(struct notifier_block *nb); +extern int unregister_regulatory_notifier(struct notifier_block *nb); /** * ieee80211_get_channel - get channel struct from wiphy for specified frequency diff --git a/net/wireless/reg.c b/net/wireless/reg.c index b62d8e8..65d9421 100644 --- a/net/wireless/reg.c +++ b/net/wireless/reg.c @@ -154,7 +154,7 @@ EXPORT_SYMBOL(register_regulatory_notifier); * Wireles drivers use this function to unregister with cfg80211 * their notifier callback. */ -static int unregister_regulatory_notifier(struct notifier_block *nb) +int unregister_regulatory_notifier(struct notifier_block *nb) { return blocking_notifier_chain_unregister(®ulatory_chain, nb); } -- 1.5.4.3