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

Commit e2082402 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "regulatory: use correct regulatory initiator on wiphy register"

parents 9ca8bedb 5e499139
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -2304,12 +2304,15 @@ int reg_device_uevent(struct device *dev, struct kobj_uevent_env *env)

void wiphy_regulatory_register(struct wiphy *wiphy)
{
	struct regulatory_request *lr;

	mutex_lock(&reg_mutex);

	if (!reg_dev_ignore_cell_hint(wiphy))
		reg_num_devs_support_basehint++;

	wiphy_update_regulatory(wiphy, NL80211_REGDOM_SET_BY_CORE);
	lr = get_last_request();
	wiphy_update_regulatory(wiphy, lr->initiator);

	mutex_unlock(&reg_mutex);
}