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
This commit is contained in:
Will Huang 2017-06-22 10:42:01 +08:00 • committed by snandini
commit 03cb2ab6ff

View file

@ -148,6 +148,7 @@ enum tx_peer_level {
TXRX_IEEE11_A_G,
TXRX_IEEE11_N,
TXRX_IEEE11_AC,
TXRX_IEEE11_AX,
TXRX_IEEE11_MAX,
};