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 <Inbal.Hacohen@intel.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:
parent
1bf4bbb402
commit
50c11eb998
1 changed files with 1 additions and 1 deletions
|
@ -1700,7 +1700,7 @@ static void reg_process_hint(struct regulatory_request *reg_request)
|
||||||
return;
|
return;
|
||||||
case NL80211_REGDOM_SET_BY_USER:
|
case NL80211_REGDOM_SET_BY_USER:
|
||||||
treatment = reg_process_hint_user(reg_request);
|
treatment = reg_process_hint_user(reg_request);
|
||||||
if (treatment == REG_REQ_OK ||
|
if (treatment == REG_REQ_IGNORE ||
|
||||||
treatment == REG_REQ_ALREADY_SET)
|
treatment == REG_REQ_ALREADY_SET)
|
||||||
return;
|
return;
|
||||||
schedule_delayed_work(®_timeout, msecs_to_jiffies(3142));
|
schedule_delayed_work(®_timeout, msecs_to_jiffies(3142));
|
||||||
|
|
Loading…
Reference in a new issue