aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuis R. Rodriguez <mcgrof@qca.qualcomm.com>2012-07-12 14:49:19 -0400
committerJohannes Berg <johannes.berg@intel.com>2012-07-17 06:16:39 -0400
commitbfead0808c3b1fff3b94daceef0a0a48e73c42a9 (patch)
tree573cfdf687ab8f07648bed96463710dba7547258
parent57b5ce072e7361218a8e2ea1d62960cbb71d9cff (diff)
cfg80211: rename reg_device_remove() to wiphy_regulatory_deregister()
This makes it clearer what we're doing. This now makes a bit more sense given that regardless of the wiphy if the cell base station hint feature is supported we will be modifying the way the regulatory core behaves. Signed-off-by: Luis R. Rodriguez <mcgrof@qca.qualcomm.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
-rw-r--r--net/wireless/core.c8
-rw-r--r--net/wireless/reg.c2
-rw-r--r--net/wireless/reg.h2
3 files changed, 7 insertions, 5 deletions
diff --git a/net/wireless/core.c b/net/wireless/core.c
index c0307b05986c..58485964e50b 100644
--- a/net/wireless/core.c
+++ b/net/wireless/core.c
@@ -653,9 +653,11 @@ void wiphy_unregister(struct wiphy *wiphy)
653 /* nothing */ 653 /* nothing */
654 cfg80211_unlock_rdev(rdev); 654 cfg80211_unlock_rdev(rdev);
655 655
656 /* If this device got a regulatory hint tell core its 656 /*
657 * free to listen now to a new shiny device regulatory hint */ 657 * If this device got a regulatory hint tell core its
658 reg_device_remove(wiphy); 658 * free to listen now to a new shiny device regulatory hint
659 */
660 wiphy_regulatory_deregister(wiphy);
659 661
660 cfg80211_rdev_list_generation++; 662 cfg80211_rdev_list_generation++;
661 device_del(&rdev->wiphy.dev); 663 device_del(&rdev->wiphy.dev);
diff --git a/net/wireless/reg.c b/net/wireless/reg.c
index 83583a9c15d9..50604fd14cd2 100644
--- a/net/wireless/reg.c
+++ b/net/wireless/reg.c
@@ -2391,7 +2391,7 @@ void wiphy_regulatory_register(struct wiphy *wiphy)
2391} 2391}
2392 2392
2393/* Caller must hold cfg80211_mutex */ 2393/* Caller must hold cfg80211_mutex */
2394void reg_device_remove(struct wiphy *wiphy) 2394void wiphy_regulatory_deregister(struct wiphy *wiphy)
2395{ 2395{
2396 struct wiphy *request_wiphy = NULL; 2396 struct wiphy *request_wiphy = NULL;
2397 2397
diff --git a/net/wireless/reg.h b/net/wireless/reg.h
index 519492fdda3c..f36b15fb4592 100644
--- a/net/wireless/reg.h
+++ b/net/wireless/reg.h
@@ -27,7 +27,7 @@ int regulatory_hint_user(const char *alpha2,
27 27
28int reg_device_uevent(struct device *dev, struct kobj_uevent_env *env); 28int reg_device_uevent(struct device *dev, struct kobj_uevent_env *env);
29void wiphy_regulatory_register(struct wiphy *wiphy); 29void wiphy_regulatory_register(struct wiphy *wiphy);
30void reg_device_remove(struct wiphy *wiphy); 30void wiphy_regulatory_deregister(struct wiphy *wiphy);
31 31
32int __init regulatory_init(void); 32int __init regulatory_init(void);
33void regulatory_exit(void); 33void regulatory_exit(void);