From 714d7d5bd7599cd4870b543b644402956dffa4ef Mon Sep 17 00:00:00 2001 From: Hanumanth Reddy Pothula Date: Thu, 5 Oct 2017 17:34:05 +0530 Subject: [PATCH] qcacld-3.0: Remove unnecessary assertion in SAP callback Propagation from qcacld-2.0 to qcacld-3.0 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: 2121720 --- core/sap/src/sap_fsm.c | 1 - 1 file changed, 1 deletion(-) diff --git a/core/sap/src/sap_fsm.c b/core/sap/src/sap_fsm.c index 50a5c0598376..7d88b6295926 100644 --- a/core/sap/src/sap_fsm.c +++ b/core/sap/src/sap_fsm.c @@ -2306,7 +2306,6 @@ QDF_STATUS sap_signal_hdd_event(struct sap_context *sap_ctx, /* Format the Start BSS Complete event to return... */ if (NULL == sap_ctx->pfnSapEventCallback) { - QDF_ASSERT(0); return QDF_STATUS_E_FAILURE; } if (NULL == hal) {