summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaveendra Chennakesavulu <rchennak@codeaurora.org>2017-07-06 22:58:58 +0530
committersnandini <snandini@codeaurora.org>2017-07-11 00:17:55 -0700
commit7490e6a0dfdf8ad166cdf67fde42e53facb36843 (patch)
tree520443e0e5e9c71f335b961bb56dd664f63b9884
parent14b11bca29dce50a24f537f7717f06057e5c0b64 (diff)
qcacld-2.0: Remove unnecessary assertion in SAP callback
In random testing cases, the SAP close may be called even before the BSS is started. In such cases the SAP callback may not have been registered and such scenarios may lead to unnecessary assertion. Just returning an errror should do. Remove the assert but retain the error notification. Change-Id: Ief9ea45d2d7f3d910766e73a9e0dca5e34c85905 CRs-Fixed: 2053618
-rw-r--r--CORE/SAP/src/sapFsm.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/CORE/SAP/src/sapFsm.c b/CORE/SAP/src/sapFsm.c
index f60928eb7c1e..641845e7aa88 100644
--- a/CORE/SAP/src/sapFsm.c
+++ b/CORE/SAP/src/sapFsm.c
@@ -3240,7 +3240,6 @@ sapSignalHDDevent
/* Format the Start BSS Complete event to return... */
if (NULL == sapContext->pfnSapEventCallback)
{
- VOS_ASSERT(0);
return VOS_STATUS_E_FAILURE;
}
if (NULL == hHal)