From 8add0f7fbbf105324dfad8ec21bd1d394a81bd0a Mon Sep 17 00:00:00 2001 From: Arif Hussain Date: Mon, 30 Apr 2018 18:03:03 -0700 Subject: [PATCH] qcacmn: Fix validation in dfs_process_phyerr_owl() Fix validation in dfs_process_phyerr_owl function. Change-Id: I0c97e7c18e1e93a248f325ff6f9b477c4135c486 CRs-Fixed: 2233111 --- umac/dfs/core/src/filtering/dfs_process_phyerr.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/umac/dfs/core/src/filtering/dfs_process_phyerr.c b/umac/dfs/core/src/filtering/dfs_process_phyerr.c index f49e0dee9ce9..d5afc16935f0 100644 --- a/umac/dfs/core/src/filtering/dfs_process_phyerr.c +++ b/umac/dfs/core/src/filtering/dfs_process_phyerr.c @@ -137,9 +137,10 @@ int dfs_process_phyerr_owl(struct wlan_dfs *dfs, dur = ((uint8_t *) cbuf)[0]; /* This is a spurious event; toss. */ - if (rssi == 0 && dur == 0) + if (rssi == 0 && dur == 0) { dfs->wlan_dfs_stats.datalen_discards++; - return 0; + return 0; + } /* Fill out dfs_phy_err with the information we have at hand. */ qdf_mem_set(e, sizeof(*e), 0);