mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
cfg80211: put core regulatory request into queue
This will simplify the synchronization for pending requests. Without this we have a race between the core and when we restore regulatory settings, although this is unlikely its best to just avoid that race altogether. Signed-off-by: Luis R. Rodriguez <[email protected]> Tested-by: Mark Mentovai <[email protected]> Tested-by: Bruno Randolf <[email protected]> Signed-off-by: John W. Linville <[email protected]>
This commit is contained in:
parent
8ce4699995
commit
31e99729ae
1 changed files with 1 additions and 6 deletions
|
|
@ -1530,12 +1530,7 @@ static int regulatory_hint_core(const char *alpha2)
|
|||
request->alpha2[1] = alpha2[1];
|
||||
request->initiator = NL80211_REGDOM_SET_BY_CORE;
|
||||
|
||||
/*
|
||||
* This ensures last_request is populated once modules
|
||||
* come swinging in and calling regulatory hints and
|
||||
* wiphy_apply_custom_regulatory().
|
||||
*/
|
||||
reg_process_hint(request);
|
||||
queue_regulatory_request(request);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue