summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--core/hdd/src/wlan_hdd_regulatory.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/core/hdd/src/wlan_hdd_regulatory.c b/core/hdd/src/wlan_hdd_regulatory.c
index 86850c6bbfe9..666bc778e6fc 100644
--- a/core/hdd/src/wlan_hdd_regulatory.c
+++ b/core/hdd/src/wlan_hdd_regulatory.c
@@ -629,6 +629,11 @@ void hdd_reg_notifier(struct wiphy *wiphy,
return;
}
+ if (hdd_ctx->isWiphySuspended == true) {
+ hdd_err("%s: system/cfg80211 is already suspend", __func__);
+ return;
+ }
+
if (('K' == request->alpha2[0]) &&
('R' == request->alpha2[1]))
request->dfs_region = DFS_KR_REGION;