reg_free_request(reg_request);
}
-static bool reg_only_self_managed_wiphys(struct regulatory_request *reg_request)
+static bool reg_only_self_managed_wiphys(void)
{
struct cfg80211_registered_device *rdev;
struct wiphy *wiphy;
list_for_each_entry(rdev, &cfg80211_rdev_list, list) {
wiphy = &rdev->wiphy;
- if (wiphy->regulatory_flags & REGULATORY_WIPHY_SELF_MANAGED) {
+ if (wiphy->regulatory_flags & REGULATORY_WIPHY_SELF_MANAGED)
self_managed_found = true;
- reg_call_notifier(wiphy, reg_request);
- } else {
+ else
return false;
- }
}
/* make sure at least one self-managed wiphy exists */
spin_unlock(®_requests_lock);
- if (reg_only_self_managed_wiphys(reg_request)) {
+ if (reg_only_self_managed_wiphys()) {
reg_free_request(reg_request);
return;
}