|
@@ -89,6 +89,14 @@ QDF_COMPILE_TIME_ASSERT(hif_event_history_size,
|
|
|
(HIF_EVENT_HIST_MAX & (HIF_EVENT_HIST_MAX - 1)) == 0);
|
|
|
#endif /* WLAN_FEATURE_DP_EVENT_HISTORY */
|
|
|
|
|
|
+/*
|
|
|
+ * If WLAN_CFG_INT_NUM_CONTEXTS is changed,
|
|
|
+ * WLAN_CFG_INT_NUM_CONTEXTS_MAX should also be updated
|
|
|
+ */
|
|
|
+QDF_COMPILE_TIME_ASSERT(wlan_cfg_num_int_ctxs,
|
|
|
+ WLAN_CFG_INT_NUM_CONTEXTS_MAX >=
|
|
|
+ WLAN_CFG_INT_NUM_CONTEXTS);
|
|
|
+
|
|
|
#ifdef WLAN_RX_PKT_CAPTURE_ENH
|
|
|
#include "dp_rx_mon_feature.h"
|
|
|
#else
|
|
@@ -216,37 +224,17 @@ static uint8_t default_pcp_tid_map[PCP_TID_MAP_MAX] = {
|
|
|
/**
|
|
|
* @brief Cpu to tx ring map
|
|
|
*/
|
|
|
-#ifdef CONFIG_WIN
|
|
|
-#ifdef WLAN_TX_PKT_CAPTURE_ENH
|
|
|
uint8_t
|
|
|
-dp_cpu_ring_map[DP_NSS_CPU_RING_MAP_MAX][WLAN_CFG_INT_NUM_CONTEXTS] = {
|
|
|
+dp_cpu_ring_map[DP_NSS_CPU_RING_MAP_MAX][WLAN_CFG_INT_NUM_CONTEXTS_MAX] = {
|
|
|
{0x0, 0x1, 0x2, 0x0, 0x0, 0x1, 0x2, 0x0, 0x0, 0x1, 0x2},
|
|
|
{0x1, 0x2, 0x1, 0x2, 0x1, 0x2, 0x1, 0x2, 0x1, 0x2, 0x1},
|
|
|
{0x0, 0x2, 0x0, 0x2, 0x0, 0x2, 0x0, 0x2, 0x0, 0x2, 0x0},
|
|
|
{0x2, 0x2, 0x2, 0x2, 0x2, 0x2, 0x2, 0x2, 0x2, 0x2, 0x2},
|
|
|
{0x3, 0x3, 0x3, 0x3, 0x3, 0x3, 0x3, 0x3, 0x3, 0x3, 0x3},
|
|
|
+#ifdef WLAN_TX_PKT_CAPTURE_ENH
|
|
|
{0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1}
|
|
|
-};
|
|
|
-#else
|
|
|
-static uint8_t
|
|
|
-dp_cpu_ring_map[DP_NSS_CPU_RING_MAP_MAX][WLAN_CFG_INT_NUM_CONTEXTS] = {
|
|
|
- {0x0, 0x1, 0x2, 0x0, 0x0, 0x1, 0x2, 0x0, 0x0, 0x1, 0x2},
|
|
|
- {0x1, 0x2, 0x1, 0x2, 0x1, 0x2, 0x1, 0x2, 0x1, 0x2, 0x1},
|
|
|
- {0x0, 0x2, 0x0, 0x2, 0x0, 0x2, 0x0, 0x2, 0x0, 0x2, 0x0},
|
|
|
- {0x2, 0x2, 0x2, 0x2, 0x2, 0x2, 0x2, 0x2, 0x2, 0x2, 0x2},
|
|
|
- {0x3, 0x3, 0x3, 0x3, 0x3, 0x3, 0x3, 0x3, 0x3, 0x3, 0x3}
|
|
|
-};
|
|
|
#endif
|
|
|
-#else
|
|
|
-static uint8_t
|
|
|
-dp_cpu_ring_map[DP_NSS_CPU_RING_MAP_MAX][WLAN_CFG_INT_NUM_CONTEXTS] = {
|
|
|
- {0x0, 0x1, 0x2, 0x0, 0x0, 0x1, 0x2},
|
|
|
- {0x1, 0x2, 0x1, 0x2, 0x1, 0x2, 0x1},
|
|
|
- {0x0, 0x2, 0x0, 0x2, 0x0, 0x2, 0x0},
|
|
|
- {0x2, 0x2, 0x2, 0x2, 0x2, 0x2, 0x2},
|
|
|
- {0x3, 0x3, 0x3, 0x3, 0x3, 0x3, 0x3}
|
|
|
};
|
|
|
-#endif
|
|
|
|
|
|
/**
|
|
|
* @brief Select the type of statistics
|