From d97e8f8fd8bb9e5c2fcee91289ec742fc4ab744c Mon Sep 17 00:00:00 2001 From: Varun Reddy Yeturu Date: Wed, 5 Jul 2017 17:47:40 -0700 Subject: [PATCH] qcacld-3.0: Fix clang warnings in P2P Fix implicit conversion from enumeration type 'tSirResultCodes' (aka 'enum eSirResultCodes') to different enumeration type 'QDF_STATUS' Change-Id: I693a7cd5213b5dc58395bbeee04292cf4960c36e CRs-Fixed: 2063149 --- core/sme/src/p2p/p2p_api.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/core/sme/src/p2p/p2p_api.c b/core/sme/src/p2p/p2p_api.c index 710ec5d78474..3b998713d153 100644 --- a/core/sme/src/p2p/p2p_api.c +++ b/core/sme/src/p2p/p2p_api.c @@ -117,9 +117,12 @@ QDF_STATUS sme_remain_on_chn_rsp(tpAniSirGlobal pMac, uint8_t *pMsg) return status; callback = pCommand->u.remainChlCmd.callback; - if (callback) + if (callback && rsp) { + if (rsp->status != eSIR_SME_SUCCESS) + status = QDF_STATUS_E_FAILURE; callback(pMac, pCommand->u.remainChlCmd.callbackCtx, - rsp->status, rsp->scan_id); + status, rsp->scan_id); + } fFound = csr_scan_active_ll_remove_entry(pMac, pEntry, LL_ACCESS_LOCK);