From ebe3fc868d73d32d3ce16fffc625d9cc0139ca7e Mon Sep 17 00:00:00 2001 From: gaurank kathpalia Date: Mon, 7 May 2018 09:39:46 +0530 Subject: [PATCH] qcacld-3.0: Add break statement in switch case The API sme_process_msg lacks a break in switch case after eWNI_SME_SET_DUAL_MAC_CFG_RESP. Due to this execution falls through to the next case statement or default. Fix is to add a break after eWNI_SME_SET_DUAL_MAC_CFG_RESP Change-Id: I7466dfdc8c8cbe186f61f47371137dca958e1d08 CRs-Fixed: 2233190 --- core/sme/src/common/sme_api.c | 1 + 1 file changed, 1 insertion(+) diff --git a/core/sme/src/common/sme_api.c b/core/sme/src/common/sme_api.c index 0966f4ba536c..360b7889c92c 100644 --- a/core/sme/src/common/sme_api.c +++ b/core/sme/src/common/sme_api.c @@ -2341,6 +2341,7 @@ QDF_STATUS sme_process_msg(tHalHandle hHal, struct scheduler_msg *pMsg) } else { sme_err("Empty message for: %d", pMsg->type); } + break; case eWNI_SME_SET_THERMAL_LEVEL_IND: if (pMac->sme.set_thermal_level_cb) pMac->sme.set_thermal_level_cb(pMac->hHdd,