[WCNCR00155320] misc: Fix FW log to host timestamp is not align issue
[Description]
Fix FW log to host timestamp is not align issue,
which is caused by improper usage of do_div function.
Change-Id: I9f0d6aacdb164017bf74f1a5eebd0b353910e6d0
Signed-off-by: Glenn Tung <glenn.tung@mediatek.com>
CR-Id: WCNCR00155320
Feature: misc
Reviewed-on: http://gerrit.mediatek.inc:8080/1230878
CheckPatch: Check Patch <srv_checkpatch@mediatek.com>
Reviewed-by: Saker Hsia <saker.hsia@mediatek.com>
Reviewed-by: ZD Hu <zd.hu@mediatek.com>
Build: srv_neptune_adm <srv_neptune_adm@mediatek.com>
diff --git a/common/wlan_oid.c b/common/wlan_oid.c
index 204002f..53c36c7 100644
--- a/common/wlan_oid.c
+++ b/common/wlan_oid.c
@@ -12010,7 +12010,7 @@
OUT PUINT_32 pu4SetInfoLen)
{
P_CMD_FW_LOG_2_HOST_CTRL_T prFwLog2HostCtrl;
- u64 ts = KAL_GET_HOST_CLOCK();
+ UINT_64 ts = KAL_GET_HOST_CLOCK();
DEBUGFUNC("wlanoidSetFwLog2Host");
@@ -12033,8 +12033,8 @@
}
prFwLog2HostCtrl = (P_CMD_FW_LOG_2_HOST_CTRL_T)pvSetBuffer;
- prFwLog2HostCtrl->u4HostTimeSec = (UINT_32)ts;
prFwLog2HostCtrl->u4HostTimeMSec = (UINT_32)(do_div(ts, 1000000000) / 1000);
+ prFwLog2HostCtrl->u4HostTimeSec = (UINT_32)ts;
#if CFG_SUPPORT_FW_DBG_LEVEL_CTRL
DBGLOG(REQ, INFO, "McuDest %d, LogType %d, (FwLogLevel %d)\n", prFwLog2HostCtrl->ucMcuDest,