wlan: SAP set TX power bug fix
SAP mode set TX power command has data type casting problem.
As a result, invalid argument passed to FW.
This problem happen during integration process.
Change-Id: Ia2e75236325eab7cb8d3867eb0f302fbe2232d85
CRs-fixed: 451750
diff --git a/CORE/WDI/CP/src/wlan_qct_wdi.c b/CORE/WDI/CP/src/wlan_qct_wdi.c
index f549a20..a429692 100644
--- a/CORE/WDI/CP/src/wlan_qct_wdi.c
+++ b/CORE/WDI/CP/src/wlan_qct_wdi.c
@@ -12063,7 +12063,7 @@
wpt_uint8* pSendBuffer = NULL;
wpt_uint16 usDataOffset = 0;
wpt_uint16 usSendSize = 0;
- tSetTxPwrReqMsg *halSetTxPower = NULL;;
+ tSetTxPwrReqParams *halSetTxPower = NULL;
/*- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
/*-------------------------------------------------------------------------
@@ -12100,11 +12100,9 @@
return WDI_STATUS_E_FAILURE;
}
- halSetTxPower = (tSetTxPwrReqMsg *)(pSendBuffer+usDataOffset);
- halSetTxPower->setTxPwrReqParams.txPower =
- pwdiSetTxPowerParams->wdiTxPowerInfo.ucPower;
- halSetTxPower->setTxPwrReqParams.bssIdx =
- pwdiSetTxPowerParams->wdiTxPowerInfo.bssIdx;
+ halSetTxPower = (tSetTxPwrReqParams *)(pSendBuffer + usDataOffset);
+ halSetTxPower->txPower = pwdiSetTxPowerParams->wdiTxPowerInfo.ucPower;
+ halSetTxPower->bssIdx = pwdiSetTxPowerParams->wdiTxPowerInfo.bssIdx;
pWDICtx->wdiReqStatusCB = pwdiSetTxPowerParams->wdiReqStatusCB;
pWDICtx->pReqStatusUserData = pwdiSetTxPowerParams->pUserData;