summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMukul Sharma <mukul@codeaurora.org>2016-10-20 15:36:20 +0530
committerqcabuildsw <qcabuildsw@localhost>2016-11-10 06:46:42 -0800
commitc9e9eb92915126eecb9014929407c87a5b2cfb8d (patch)
treeb443a68f28f146f3f5ee5b0715bb7a95c3a353a9
parentbaebeed1654b165970ac05295d4d5022c53a511d (diff)
qcacld-3.0: Do not handle regdomain notifier after cfg80211 suspend
qcacld-2.0 to qcacld-3.0 propagation Currently, kernel invoke the regdomain notifier to host driver using registered callback. If kernel call this callback after cfg80211 aka system suspend, Then because of race condition host might send the PDEV SET REGDOMAIN/PARAM to fwr after WOW ENABLE cmd which is not correct cmd sequence. Change-Id: Ie3cd94d86345c9b6de0c5597d23e0b0dc6751937 CRs-Fixed: 1075079
-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;