qcacld-3.0: Fix clang warnings in PE

Fix implicit conversion from enumeration type 'enum eSirMacStatusCodes'
to different enumeration type 'tSirResultCodes' (aka 'enum
eSirResultCodes')
Fix implicit conversion from enumeration type 'QDF_MODULE_ID' to
different enumeration type 'CDS_MQ_ID'
Fix implicit conversion from enumeration type 'enum eSirRetStatus' to
different enumeration type 'tSirResultCodes'
Fix implicit conversion from enumeration type 'QDF_STATUS' to different
enumeration type 'tSirResultCodes'
Fix implicit conversion from enumeration type 'tSirMacReasonCodes' (aka
'enum eSirMacReasonCodes') to different enumeration type
'tSirResultCodes'

Change-Id: I2e769dcf34a54959082d8154b1e9377b356d2f5e
CRs-Fixed: 2063149
This commit is contained in:
Varun Reddy Yeturu 2017-06-15 16:05:38 -07:00 • committed by snandini
commit 8c68b47fa6
5 changed files with 11 additions and 11 deletions

View file

@ -42,9 +42,9 @@
#include "sir_types.h"
tSirRetStatus mac_start(tHalHandle hHal, void *pHalMacStartParams);
tSirRetStatus mac_stop(tHalHandle hHal, tHalStopType stopType);
QDF_STATUS mac_stop(tHalHandle hHal, tHalStopType stopType);
tSirRetStatus mac_open(struct wlan_objmgr_psoc *psoc, tHalHandle *pHalHandle,
tHddHandle hHdd, struct cds_config_info *cds_cfg);
tSirRetStatus mac_close(tHalHandle hHal);
QDF_STATUS mac_close(tHalHandle hHal);
#endif /* __MAC_INIT_API_H */

View file

@ -479,7 +479,7 @@ static tSirRetStatus __lim_init_config(tpAniSirGlobal pMac)
*/
tSirRetStatus lim_start(tpAniSirGlobal pMac)
{
tSirResultCodes retCode = eSIR_SUCCESS;
tSirRetStatus retCode = eSIR_SUCCESS;
pe_debug("enter");

View file

@ -3205,7 +3205,7 @@ void lim_process_rx_scan_event(tpAniSirGlobal pMac, void *buf)
case SIR_SCAN_EVENT_START_FAILED:
if (ROC_SCAN_REQUESTOR_ID == pScanEvent->requestor) {
lim_send_sme_roc_rsp(pMac, eWNI_SME_REMAIN_ON_CHN_RSP,
QDF_STATUS_SUCCESS,
eSIR_SME_SUCCESS,
pScanEvent->sessionId,
pScanEvent->scanId);
qdf_mem_free(pMac->lim.gpLimRemainOnChanReq);
@ -3233,7 +3233,7 @@ void lim_process_rx_scan_event(tpAniSirGlobal pMac, void *buf)
if (pMac->lim.gpLimRemainOnChanReq) {
lim_send_sme_roc_rsp(pMac,
eWNI_SME_REMAIN_ON_CHN_RDY_IND,
QDF_STATUS_SUCCESS,
eSIR_SME_SUCCESS,
pScanEvent->sessionId,
pScanEvent->scanId);
} else {

View file

@ -3505,7 +3505,7 @@ void __lim_process_sme_assoc_cnf_new(tpAniSirGlobal mac_ctx, uint32_t msg_type,
sta_ds->mlmStaContext.subType,
true, sta_ds->mlmStaContext.authType,
sta_ds->assocId, true,
eSIR_MAC_UNSPEC_FAILURE_STATUS,
eSIR_SME_UNEXPECTED_REQ_RESULT_CODE,
session_entry);
}
end:

View file

@ -83,13 +83,13 @@ tSirRetStatus mac_start(tHalHandle hHal, void *pHalMacStartParams)
\return tSirRetStatus
-------------------------------------------------------------*/
tSirRetStatus mac_stop(tHalHandle hHal, tHalStopType stopType)
QDF_STATUS mac_stop(tHalHandle hHal, tHalStopType stopType)
{
tpAniSirGlobal pMac = (tpAniSirGlobal) hHal;
pe_stop(pMac);
cfg_cleanup(pMac);
return eSIR_SUCCESS;
return QDF_STATUS_SUCCESS;
}
/** -------------------------------------------------------------
@ -157,13 +157,13 @@ tSirRetStatus mac_open(struct wlan_objmgr_psoc *psoc, tHalHandle *pHalHandle,
\return none
-------------------------------------------------------------*/
tSirRetStatus mac_close(tHalHandle hHal)
QDF_STATUS mac_close(tHalHandle hHal)
{
tpAniSirGlobal pMac = (tpAniSirGlobal) hHal;
if (!pMac)
return eSIR_FAILURE;
return QDF_STATUS_E_FAILURE;
pe_close(pMac);
@ -177,5 +177,5 @@ tSirRetStatus mac_close(tHalHandle hHal)
wlan_objmgr_psoc_release_ref(pMac->psoc, WLAN_LEGACY_MAC_ID);
pMac->psoc = NULL;
return eSIR_SUCCESS;
return QDF_STATUS_SUCCESS;
}