From: Inbal Hacohen Date: Wed, 12 Feb 2014 07:32:27 +0000 (+0200) Subject: cfg80211: bugfix in regulatory user hint process X-Git-Tag: accepted/tizen/common/20141203.182822~411^2~21^2^2~6^2~9 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=50c11eb9982554e9f99b7bab322c517cbe5ce1a1;p=platform%2Fkernel%2Flinux-arm64.git cfg80211: bugfix in regulatory user hint process After processing hint_user, we would want to schedule the timeout work only if we are actually waiting to CRDA. This happens when the status is not "IGNORE" nor "ALREADY_SET". Signed-off-by: Inbal Hacohen Signed-off-by: Johannes Berg --- diff --git a/net/wireless/reg.c b/net/wireless/reg.c index 9b897fc..4c50c21 100644 --- a/net/wireless/reg.c +++ b/net/wireless/reg.c @@ -1700,7 +1700,7 @@ static void reg_process_hint(struct regulatory_request *reg_request) return; case NL80211_REGDOM_SET_BY_USER: treatment = reg_process_hint_user(reg_request); - if (treatment == REG_REQ_OK || + if (treatment == REG_REQ_IGNORE || treatment == REG_REQ_ALREADY_SET) return; schedule_delayed_work(®_timeout, msecs_to_jiffies(3142));