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

Commit 4d3df547 authored by Arik Nemtsov's avatar Arik Nemtsov Committed by Johannes Berg
Browse files

cfg80211: don't set reg timeout for user-handled hint



Otherwise every "indoor" setting by usermode will cause a regdomain reset.

Acked-by: default avatarLuis R. Rodriguez <mcgrof@suse.com>
Signed-off-by: default avatarArik Nemtsov <arikx.nemtsov@intel.com>
Signed-off-by: default avatarEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
parent 7406353d
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1876,7 +1876,8 @@ static void reg_process_hint(struct regulatory_request *reg_request)
	case NL80211_REGDOM_SET_BY_USER:
		treatment = reg_process_hint_user(reg_request);
		if (treatment == REG_REQ_IGNORE ||
		    treatment == REG_REQ_ALREADY_SET)
		    treatment == REG_REQ_ALREADY_SET ||
		    treatment == REG_REQ_USER_HINT_HANDLED)
			return;
		queue_delayed_work(system_power_efficient_wq,
				   &reg_timeout, msecs_to_jiffies(3142));