From c7f560cb2194044b3196eb4146cfe4bc0b013a39 Mon Sep 17 00:00:00 2001 From: hqu Date: Mon, 26 Jun 2017 17:14:37 +0800 Subject: [PATCH] qcacld-3.0: Translate the AC enums defined in htt The AC values used by htt and txrx module are mismatch. Assertion is also added to confirm that the values are matching. The change is also to sync with CLD2.0. Change-Id: I011a6f2b78a6954863c99f9d3875b2c88d2b78b1 CRs-Fixed: 2065390 --- core/dp/txrx/ol_txrx_types.h | 17 +++++++++++++++++ core/dp/txrx/txrx.h | 6 +++--- 2 files changed, 20 insertions(+), 3 deletions(-) diff --git a/core/dp/txrx/ol_txrx_types.h b/core/dp/txrx/ol_txrx_types.h index f2488f3cbe..c948eaa366 100644 --- a/core/dp/txrx/ol_txrx_types.h +++ b/core/dp/txrx/ol_txrx_types.h @@ -256,6 +256,23 @@ enum { OL_TX_SCHED_WRR_ADV_NUM_CATEGORIES /* must be last */ }; +A_COMPILE_TIME_ASSERT(ol_tx_sched_htt_ac_values, + /* check that regular WMM AC enum values match */ + ((int)OL_TX_SCHED_WRR_ADV_CAT_VO == (int)HTT_AC_WMM_VO) && + ((int)OL_TX_SCHED_WRR_ADV_CAT_VI == (int)HTT_AC_WMM_VI) && + ((int)OL_TX_SCHED_WRR_ADV_CAT_BK == (int)HTT_AC_WMM_BK) && + ((int)OL_TX_SCHED_WRR_ADV_CAT_BE == (int)HTT_AC_WMM_BE) && + + /* check that extension AC enum values match */ + ((int)OL_TX_SCHED_WRR_ADV_CAT_NON_QOS_DATA + == (int)HTT_AC_EXT_NON_QOS) && + ((int)OL_TX_SCHED_WRR_ADV_CAT_UCAST_MGMT + == (int)HTT_AC_EXT_UCAST_MGMT) && + ((int)OL_TX_SCHED_WRR_ADV_CAT_MCAST_DATA + == (int)HTT_AC_EXT_MCAST_DATA) && + ((int)OL_TX_SCHED_WRR_ADV_CAT_MCAST_MGMT + == (int)HTT_AC_EXT_MCAST_MGMT)); + struct ol_tx_reorder_cat_timeout_t { TAILQ_HEAD(, ol_rx_reorder_timeout_list_elem_t) virtual_timer_list; qdf_timer_t timer; diff --git a/core/dp/txrx/txrx.h b/core/dp/txrx/txrx.h index 94271a3aa5..c0d053e7eb 100644 --- a/core/dp/txrx/txrx.h +++ b/core/dp/txrx/txrx.h @@ -38,10 +38,10 @@ #define PEER_DELETION_TIMEOUT 500 enum txrx_wmm_ac { - TXRX_WMM_AC_VO, - TXRX_WMM_AC_VI, - TXRX_WMM_AC_BK, TXRX_WMM_AC_BE, + TXRX_WMM_AC_BK, + TXRX_WMM_AC_VI, + TXRX_WMM_AC_VO, TXRX_NUM_WMM_AC };