Commit f8a1c774570ab50f1657083c990b968d5f7f22cb
Committed by
Johannes Berg
1 parent
bfead0808c
Exists in
smarc-l5.0.0_1.0.0-ga
and in
5 other branches
cfg80211: make regulatory_update() static
Now that we have wiphy_regulatory_register() we can tuck away the core's regulatory_update() call there and make it static. Signed-off-by: Luis R. Rodriguez <mcgrof@qca.qualcomm.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Showing 3 changed files with 4 additions and 4 deletions Side-by-side Diff
net/wireless/core.c
net/wireless/reg.c
... | ... | @@ -1232,8 +1232,8 @@ |
1232 | 1232 | wiphy->reg_notifier(wiphy, last_request); |
1233 | 1233 | } |
1234 | 1234 | |
1235 | -void regulatory_update(struct wiphy *wiphy, | |
1236 | - enum nl80211_reg_initiator setby) | |
1235 | +static void regulatory_update(struct wiphy *wiphy, | |
1236 | + enum nl80211_reg_initiator setby) | |
1237 | 1237 | { |
1238 | 1238 | mutex_lock(®_mutex); |
1239 | 1239 | wiphy_update_regulatory(wiphy, setby); |
... | ... | @@ -2388,6 +2388,8 @@ |
2388 | 2388 | reg_num_devs_support_basehint++; |
2389 | 2389 | |
2390 | 2390 | mutex_unlock(®_mutex); |
2391 | + | |
2392 | + regulatory_update(wiphy, NL80211_REGDOM_SET_BY_CORE); | |
2391 | 2393 | } |
2392 | 2394 | |
2393 | 2395 | /* Caller must hold cfg80211_mutex */ |