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

Commit 31e99729 authored by Luis R. Rodriguez's avatar Luis R. Rodriguez Committed by John W. Linville
Browse files

cfg80211: put core regulatory request into queue



This will simplify the synchronization for pending requests.
Without this we have a race between the core and when we
restore regulatory settings, although this is unlikely
its best to just avoid that race altogether.

Signed-off-by: default avatarLuis R. Rodriguez <lrodriguez@atheros.com>
Tested-by: default avatarMark Mentovai <mark@moxienet.com>
Tested-by: default avatarBruno Randolf <br1@einfach.org>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 8ce46999
Loading
Loading
Loading
Loading
+1 −6
Original line number Original line Diff line number Diff line
@@ -1530,12 +1530,7 @@ static int regulatory_hint_core(const char *alpha2)
	request->alpha2[1] = alpha2[1];
	request->alpha2[1] = alpha2[1];
	request->initiator = NL80211_REGDOM_SET_BY_CORE;
	request->initiator = NL80211_REGDOM_SET_BY_CORE;


	/*
	queue_regulatory_request(request);
	 * This ensures last_request is populated once modules
	 * come swinging in and calling regulatory hints and
	 * wiphy_apply_custom_regulatory().
	 */
	reg_process_hint(request);


	return 0;
	return 0;
}
}