aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--net/wireless/core.c1
-rw-r--r--net/wireless/reg.c6
-rw-r--r--net/wireless/reg.h1
3 files changed, 4 insertions, 4 deletions
diff --git a/net/wireless/core.c b/net/wireless/core.c
index 58485964e50b..31b40cc4a9c3 100644
--- a/net/wireless/core.c
+++ b/net/wireless/core.c
@@ -543,7 +543,6 @@ int wiphy_register(struct wiphy *wiphy)
543 543
544 /* set up regulatory info */ 544 /* set up regulatory info */
545 wiphy_regulatory_register(wiphy); 545 wiphy_regulatory_register(wiphy);
546 regulatory_update(wiphy, NL80211_REGDOM_SET_BY_CORE);
547 546
548 list_add_rcu(&rdev->list, &cfg80211_rdev_list); 547 list_add_rcu(&rdev->list, &cfg80211_rdev_list);
549 cfg80211_rdev_list_generation++; 548 cfg80211_rdev_list_generation++;
diff --git a/net/wireless/reg.c b/net/wireless/reg.c
index 50604fd14cd2..be6880fd1987 100644
--- a/net/wireless/reg.c
+++ b/net/wireless/reg.c
@@ -1232,8 +1232,8 @@ static void wiphy_update_regulatory(struct wiphy *wiphy,
1232 wiphy->reg_notifier(wiphy, last_request); 1232 wiphy->reg_notifier(wiphy, last_request);
1233} 1233}
1234 1234
1235void regulatory_update(struct wiphy *wiphy, 1235static void regulatory_update(struct wiphy *wiphy,
1236 enum nl80211_reg_initiator setby) 1236 enum nl80211_reg_initiator setby)
1237{ 1237{
1238 mutex_lock(&reg_mutex); 1238 mutex_lock(&reg_mutex);
1239 wiphy_update_regulatory(wiphy, setby); 1239 wiphy_update_regulatory(wiphy, setby);
@@ -2388,6 +2388,8 @@ void wiphy_regulatory_register(struct wiphy *wiphy)
2388 reg_num_devs_support_basehint++; 2388 reg_num_devs_support_basehint++;
2389 2389
2390 mutex_unlock(&reg_mutex); 2390 mutex_unlock(&reg_mutex);
2391
2392 regulatory_update(wiphy, NL80211_REGDOM_SET_BY_CORE);
2391} 2393}
2392 2394
2393/* Caller must hold cfg80211_mutex */ 2395/* Caller must hold cfg80211_mutex */
diff --git a/net/wireless/reg.h b/net/wireless/reg.h
index f36b15fb4592..f023c8a31c60 100644
--- a/net/wireless/reg.h
+++ b/net/wireless/reg.h
@@ -34,7 +34,6 @@ void regulatory_exit(void);
34 34
35int set_regdom(const struct ieee80211_regdomain *rd); 35int set_regdom(const struct ieee80211_regdomain *rd);
36 36
37void regulatory_update(struct wiphy *wiphy, enum nl80211_reg_initiator setby);
38bool reg_last_request_cell_base(void); 37bool reg_last_request_cell_base(void);
39 38
40/** 39/**