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
This commit is contained in:
hqu
2017-06-26 17:14:37 +08:00
committed by snandini
parent 4099f0858c
commit c7f560cb21
2 changed files with 20 additions and 3 deletions

View File

@@ -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;

View File

@@ -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
};