wlan: correct symbol missing error for 32bit targets
For optimizing division, compiler replace '/' operator by
__aeabi_uldivmod() API, this API is not exported in 32 bit
targets and cause module loading error at run time.
Add changes to replace division operator by do_div() API.
CRs-Fixed: 1040602
Change-Id: I2ee99dcb96f4bda2d93d467200264334fa69bdf3
diff --git a/CORE/TL/src/wlan_qct_tl.c b/CORE/TL/src/wlan_qct_tl.c
index 77f7705..4f803a3 100644
--- a/CORE/TL/src/wlan_qct_tl.c
+++ b/CORE/TL/src/wlan_qct_tl.c
@@ -9013,7 +9013,7 @@
pTLCb->gDsRxRoamStats.rxRoamStats[pTLCb->gDsRxRoamStats.index].time;
if (timeDifference)
- incrementCnt = timeDifference / ROAM_PER_INDEX_TIME;
+ incrementCnt = do_div(timeDifference, ROAM_PER_INDEX_TIME);
/* More that ROAM_PER_INDEX_TIME has esclapsed,
* fill data at new index */
@@ -9053,9 +9053,9 @@
if ((pTLCb->gDsRxRoamStats.totalPkt != 0) &&
(pTLCb->gDsRxRoamStats.totalPkt >
pTLCb->gDsRxRoamStats.minPktRequired)&&
- (((pTLCb->gDsRxRoamStats.lowRatePkt * 100)/
- pTLCb->gDsRxRoamStats.totalPkt) >
- pTLCb->gDsRxRoamStats.minPercentage))
+ ((pTLCb->gDsRxRoamStats.lowRatePkt * 100) >
+ (pTLCb->gDsRxRoamStats.totalPkt *
+ pTLCb->gDsRxRoamStats.minPercentage)))
{
/* callback handler to trigger a roam scan */
if (pTLCb->gDsRxRoamStats.triggerRoamScanfn)