aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/wireless/ath/regd.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/regd.c b/drivers/net/wireless/ath/regd.c
index 3f4244f56ce5..2b14775e6bc6 100644
--- a/drivers/net/wireless/ath/regd.c
+++ b/drivers/net/wireless/ath/regd.c
@@ -342,6 +342,14 @@ int ath_reg_notifier_apply(struct wiphy *wiphy,
342 /* We always apply this */ 342 /* We always apply this */
343 ath_reg_apply_radar_flags(wiphy); 343 ath_reg_apply_radar_flags(wiphy);
344 344
345 /*
346 * This would happen when we have sent a custom regulatory request
347 * a world regulatory domain and the scheduler hasn't yet processed
348 * any pending requests in the queue.
349 */
350 if (!request)
351 return 0;
352
345 switch (request->initiator) { 353 switch (request->initiator) {
346 case NL80211_REGDOM_SET_BY_DRIVER: 354 case NL80211_REGDOM_SET_BY_DRIVER:
347 case NL80211_REGDOM_SET_BY_CORE: 355 case NL80211_REGDOM_SET_BY_CORE: