From: Arik Nemtsov Date: Sun, 11 May 2014 08:50:44 +0000 (+0300) Subject: cfg80211: don't set reg timeout for user-handled hint X-Git-Tag: v3.16~18^2~11^2~7^2~46^2~11 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4d3df547e836f9a75b8de2b788449823c8db1d6a;p=platform%2Fkernel%2Flinux-exynos.git cfg80211: don't set reg timeout for user-handled hint Otherwise every "indoor" setting by usermode will cause a regdomain reset. Acked-by: Luis R. Rodriguez Signed-off-by: Arik Nemtsov Signed-off-by: Emmanuel Grumbach Signed-off-by: Johannes Berg --- diff --git a/net/wireless/reg.c b/net/wireless/reg.c index e78f532..558b0e3 100644 --- a/net/wireless/reg.c +++ b/net/wireless/reg.c @@ -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, ®_timeout, msecs_to_jiffies(3142));