[WCNCR00171557] driver: Sync ECN WCNCR00171937
[Description]
Change feature WCNCR00171937
Change-Id: I38bf7a4efecbb77e40c57dfe2fcedb00cc1eb36e
Signed-off-by: Jiehang Zheng <jiehang.zheng@mediatek.com>
CR-Id: WCNCR00171557
Feature: wifi
Reviewed-on: http://gerrit.mediatek.inc:8080/1383004
CheckPatch: Check Patch <srv_checkpatch@mediatek.com>
Reviewed-by: Shengxi xu <shengxi.xu@mediatek.com>
Tested-by: Shengxi xu <shengxi.xu@mediatek.com>
diff --git a/common/wlan_lib.c b/common/wlan_lib.c
index 4f2e7d2..8e83f76 100644
--- a/common/wlan_lib.c
+++ b/common/wlan_lib.c
@@ -632,11 +632,6 @@
prRegInfo->u4ArSysParam0,
prRegInfo->u4ArSysParam1, prRegInfo->u4ArSysParam2, prRegInfo->u4ArSysParam3);
#endif
-
-#if CFG_SUPPORT_DBDC
- /* Update DBDC default setting */
- cnmInitDbdcSetting(prAdapter);
-#endif /*CFG_SUPPORT_DBDC*/
} while (FALSE);
if (u4Status == WLAN_STATUS_SUCCESS) {
diff --git a/os/linux/gl_init.c b/os/linux/gl_init.c
index f0d4d98..a561c6f 100644
--- a/os/linux/gl_init.c
+++ b/os/linux/gl_init.c
@@ -2401,6 +2401,15 @@
#endif
#endif
+
+#if CFG_SUPPORT_DBDC
+ /* Buffer mode delay cal will init dbdc as disable. So that,
+ * we should setup dbdc after buffer mode process.
+ */
+ /* Update DBDC default setting */
+ cnmInitDbdcSetting(prAdapter);
+#endif /*CFG_SUPPORT_DBDC*/
+
/* send regulatory information to firmware */
rlmDomainSendInfoToFirmware(prAdapter);