Commit a2bff269 authored by Luis R. Rodriguez's avatar Luis R. Rodriguez Committed by John W. Linville

cfg80211: avoid flushing the global workqueue for core reg hints

When cfg80211 starts it will send a core regulatory hint. This is
sent to the global workqueue but we force processing of it by
flushing the global workqueue. The flushing was done since
cfg80211 needs last_request to always be populated.

Avoid flushing the global workqueue by processing the work
required immediately instead of putting it into a linked
list and processing it after the flush.
Signed-off-by: default avatarLuis R. Rodriguez <lrodriguez@atheros.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent ef5127a4
...@@ -1920,14 +1920,12 @@ static int regulatory_hint_core(const char *alpha2) ...@@ -1920,14 +1920,12 @@ static int regulatory_hint_core(const char *alpha2)
request->alpha2[1] = alpha2[1]; request->alpha2[1] = alpha2[1];
request->initiator = NL80211_REGDOM_SET_BY_CORE; request->initiator = NL80211_REGDOM_SET_BY_CORE;
queue_regulatory_request(request);
/* /*
* This ensures last_request is populated once modules * This ensures last_request is populated once modules
* come swinging in and calling regulatory hints and * come swinging in and calling regulatory hints and
* wiphy_apply_custom_regulatory(). * wiphy_apply_custom_regulatory().
*/ */
flush_scheduled_work(); reg_process_hint(request);
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment