diff options
-rw-r--r-- | net/wireless/reg.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/net/wireless/reg.c b/net/wireless/reg.c index 0ec40715a67b..074c1122ce42 100644 --- a/net/wireless/reg.c +++ b/net/wireless/reg.c | |||
@@ -2049,8 +2049,10 @@ static int __set_regdom(const struct ieee80211_regdomain *rd) | |||
2049 | } | 2049 | } |
2050 | 2050 | ||
2051 | request_wiphy = wiphy_idx_to_wiphy(last_request->wiphy_idx); | 2051 | request_wiphy = wiphy_idx_to_wiphy(last_request->wiphy_idx); |
2052 | if (!request_wiphy) { | 2052 | if (!request_wiphy && |
2053 | reg_set_request_processed(); | 2053 | (last_request->initiator == NL80211_REGDOM_SET_BY_DRIVER || |
2054 | last_request->initiator == NL80211_REGDOM_SET_BY_COUNTRY_IE)) { | ||
2055 | schedule_delayed_work(®_timeout, 0); | ||
2054 | return -ENODEV; | 2056 | return -ENODEV; |
2055 | } | 2057 | } |
2056 | 2058 | ||