From 03cb2ab6ff94e008ed7fe3542c22306eda5d88e6 Mon Sep 17 00:00:00 2001 From: Will Huang Date: Thu, 22 Jun 2017 10:42:01 +0800 Subject: [PATCH] qcacld-3.0: Add TXRX_IEEE11_AX for enum tx_peer_level It is reported by Static Analyze tool as buffer overflow when call into function ol_txrx_bad_peer_txctl_update_threshold, because WLAN_WMA_IEEE80211_MAX_LEVEL is defined as 5 but TXRX_IEEE11_MAX defined as 4, so level 4 will pass as max index value which is buffer overflow. Add TXRX_IEEE11_AX so TXRX_IEEE11_MAX aligns with WLAN_WMA_IEEE80211_MAX_LEVEL. Change-Id: I49fe348f1071648d86e456c6df63738ec507dd6c CRs-Fixed: 2058227 --- core/dp/txrx/ol_txrx_types.h | 1 + 1 file changed, 1 insertion(+) diff --git a/core/dp/txrx/ol_txrx_types.h b/core/dp/txrx/ol_txrx_types.h index c85598776d01..ae5e4806d3af 100644 --- a/core/dp/txrx/ol_txrx_types.h +++ b/core/dp/txrx/ol_txrx_types.h @@ -148,6 +148,7 @@ enum tx_peer_level { TXRX_IEEE11_A_G, TXRX_IEEE11_N, TXRX_IEEE11_AC, + TXRX_IEEE11_AX, TXRX_IEEE11_MAX, };