cfg80211: bugfix in regulatory user hint process
PATCH 1/1 cfg80211: bugfix in regulatory user hint process
From: Inbal Hacohen <[email protected]>
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".
--- net/wireless/reg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
net/wireless/reg.c +1 -1
@@ -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 ));
Signature · 1 line
1.8.3.2
Johannes Berg
maintainerQuoted 3 lines
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".
Luis, does this seem right to you? I looked at it but wasn't _entirely_ sure.
johannes
Quoted 11 lines
net/wireless/reg.c +1
-1@@ -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 ));
Quoted 6 lines · Johannes Berg
Quoted 3 lines
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".Luis, does this seem right to you? I looked at it but wasn't _entirely_ sure.
Looks good to me as well.
Luis
Quoted 5 lines · Emmanuel Grumbach
From: Inbal Hacohen <[email protected]>
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".
Applied.
johannes