Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7bb5a08d authored by Amar Singhal's avatar Amar Singhal
Browse files

Revert "reg: qcom: call regulatory callback for self managed hints"



This reverts commit 31e37a68. Upstream
commit aced43ce780d ("cfg80211: Call reg_notifier for self managed
hints conditionally") replaces this functionality.

Change-Id: Ic0c3a235aee2dc8ccb36014c60314217b98b5b97
CRs-Fixed: 2201959
Signed-off-by: default avatarAmar Singhal <asinghal@codeaurora.org>
parent 6e5dae3a
Loading
Loading
Loading
Loading
+4 −6
Original line number Diff line number Diff line
@@ -2257,7 +2257,7 @@ out_free:
	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;
@@ -2267,13 +2267,11 @@ static bool reg_only_self_managed_wiphys(struct regulatory_request *reg_request)

	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 */
	return self_managed_found;
@@ -2310,7 +2308,7 @@ static void reg_process_pending_hints(void)

	spin_unlock(&reg_requests_lock);

	if (reg_only_self_managed_wiphys(reg_request)) {
	if (reg_only_self_managed_wiphys()) {
		reg_free_request(reg_request);
		return;
	}