Browse Source

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
Will Huang 7 years ago
parent
commit
03cb2ab6ff
1 changed files with 1 additions and 0 deletions
  1. 1 0
      core/dp/txrx/ol_txrx_types.h

+ 1 - 0
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,
 };