aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--net/wireless/reg.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/net/wireless/reg.c b/net/wireless/reg.c
index 5f8071de7950..5dcda28b6f04 100644
--- a/net/wireless/reg.c
+++ b/net/wireless/reg.c
@@ -1920,14 +1920,12 @@ static int regulatory_hint_core(const char *alpha2)
1920 request->alpha2[1] = alpha2[1]; 1920 request->alpha2[1] = alpha2[1];
1921 request->initiator = NL80211_REGDOM_SET_BY_CORE; 1921 request->initiator = NL80211_REGDOM_SET_BY_CORE;
1922 1922
1923 queue_regulatory_request(request);
1924
1925 /* 1923 /*
1926 * This ensures last_request is populated once modules 1924 * This ensures last_request is populated once modules
1927 * come swinging in and calling regulatory hints and 1925 * come swinging in and calling regulatory hints and
1928 * wiphy_apply_custom_regulatory(). 1926 * wiphy_apply_custom_regulatory().
1929 */ 1927 */
1930 flush_scheduled_work(); 1928 reg_process_hint(request);
1931 1929
1932 return 0; 1930 return 0;
1933} 1931}