/* set up regulatory info */
wiphy_regulatory_register(wiphy);
- regulatory_update(wiphy, NL80211_REGDOM_SET_BY_CORE);
list_add_rcu(&rdev->list, &cfg80211_rdev_list);
cfg80211_rdev_list_generation++;
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);
wiphy_update_regulatory(wiphy, setby);
reg_num_devs_support_basehint++;
mutex_unlock(®_mutex);
+
+ regulatory_update(wiphy, NL80211_REGDOM_SET_BY_CORE);
}
/* Caller must hold cfg80211_mutex */
int set_regdom(const struct ieee80211_regdomain *rd);
-void regulatory_update(struct wiphy *wiphy, enum nl80211_reg_initiator setby);
bool reg_last_request_cell_base(void);
/**