|
@@ -1232,8 +1232,8 @@ static void wiphy_update_regulatory(struct wiphy *wiphy,
|
|
wiphy->reg_notifier(wiphy, last_request);
|
|
wiphy->reg_notifier(wiphy, last_request);
|
|
}
|
|
}
|
|
|
|
|
|
-void regulatory_update(struct wiphy *wiphy,
|
|
|
|
- enum nl80211_reg_initiator setby)
|
|
|
|
|
|
+static void regulatory_update(struct wiphy *wiphy,
|
|
|
|
+ enum nl80211_reg_initiator setby)
|
|
{
|
|
{
|
|
mutex_lock(®_mutex);
|
|
mutex_lock(®_mutex);
|
|
wiphy_update_regulatory(wiphy, setby);
|
|
wiphy_update_regulatory(wiphy, setby);
|
|
@@ -2388,6 +2388,8 @@ void wiphy_regulatory_register(struct wiphy *wiphy)
|
|
reg_num_devs_support_basehint++;
|
|
reg_num_devs_support_basehint++;
|
|
|
|
|
|
mutex_unlock(®_mutex);
|
|
mutex_unlock(®_mutex);
|
|
|
|
+
|
|
|
|
+ regulatory_update(wiphy, NL80211_REGDOM_SET_BY_CORE);
|
|
}
|
|
}
|
|
|
|
|
|
/* Caller must hold cfg80211_mutex */
|
|
/* Caller must hold cfg80211_mutex */
|