From 3a1059e43b8fc3e51dfdb22ee38e1bb99f71aeea Mon Sep 17 00:00:00 2001 From: gaurank kathpalia Date: Mon, 7 May 2018 09:51:05 +0530 Subject: [PATCH] qcacld-3.0: Add break statement in switch case The API wma_inc_wow_stats lacks a break in switch case after WOW_REASON_OEM_RESPONSE_EVENT. Due to this execution falls through to the next case statement or default. Fix is to add a break after WOW_REASON_OEM_RESPONSE_EVENT Change-Id: I0b95fd55403b29d74a471f038e518c58c81cfcf7 CRs-Fixed: 2233189 --- core/wma/src/wma_features.c | 1 + 1 file changed, 1 insertion(+) diff --git a/core/wma/src/wma_features.c b/core/wma/src/wma_features.c index 1f0559eb2a5b..b3f8ab0ef6ae 100644 --- a/core/wma/src/wma_features.c +++ b/core/wma/src/wma_features.c @@ -1847,6 +1847,7 @@ static void wma_inc_wow_stats(t_wma_handle *wma, break; case WOW_REASON_OEM_RESPONSE_EVENT: stats->oem_response++; + break; case WOW_REASON_11D_SCAN: stats->scan_11d++; break;