diff options
Diffstat (limited to 'net/wireless')
-rw-r--r-- | net/wireless/reg.c | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/net/wireless/reg.c b/net/wireless/reg.c index be6880fd1987..dbb01df3aacb 100644 --- a/net/wireless/reg.c +++ b/net/wireless/reg.c | |||
@@ -1232,14 +1232,6 @@ 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 | ||
1235 | static void regulatory_update(struct wiphy *wiphy, | ||
1236 | enum nl80211_reg_initiator setby) | ||
1237 | { | ||
1238 | mutex_lock(®_mutex); | ||
1239 | wiphy_update_regulatory(wiphy, setby); | ||
1240 | mutex_unlock(®_mutex); | ||
1241 | } | ||
1242 | |||
1243 | static void update_all_wiphy_regulatory(enum nl80211_reg_initiator initiator) | 1235 | static void update_all_wiphy_regulatory(enum nl80211_reg_initiator initiator) |
1244 | { | 1236 | { |
1245 | struct cfg80211_registered_device *rdev; | 1237 | struct cfg80211_registered_device *rdev; |
@@ -2387,9 +2379,9 @@ void wiphy_regulatory_register(struct wiphy *wiphy) | |||
2387 | if (!reg_dev_ignore_cell_hint(wiphy)) | 2379 | if (!reg_dev_ignore_cell_hint(wiphy)) |
2388 | reg_num_devs_support_basehint++; | 2380 | reg_num_devs_support_basehint++; |
2389 | 2381 | ||
2390 | mutex_unlock(®_mutex); | 2382 | wiphy_update_regulatory(wiphy, NL80211_REGDOM_SET_BY_CORE); |
2391 | 2383 | ||
2392 | regulatory_update(wiphy, NL80211_REGDOM_SET_BY_CORE); | 2384 | mutex_unlock(®_mutex); |
2393 | } | 2385 | } |
2394 | 2386 | ||
2395 | /* Caller must hold cfg80211_mutex */ | 2387 | /* Caller must hold cfg80211_mutex */ |