瀏覽代碼

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
Mukul Sharma 8 年之前
父節點
當前提交
0c854a07a6
共有 1 個文件被更改,包括 5 次插入0 次删除
  1. 5 0
      core/hdd/src/wlan_hdd_regulatory.c

+ 5 - 0
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;