qcacmn: Change search type to HAL_TX_ADDR_INDEX_SEARCH for sawf

Firmware expects search type to be 1 in
per packet path when sawf is enabled.

Change-Id: I6d7e5cae9b46f5a15eb0a53eefb9534ccb36ef64
CRs-Fixed: 3138558
This commit is contained in:
Vivek
2022-03-04 14:12:13 +05:30
committed by Madan Koyyalamudi
parent 3407f05fb7
commit f8beed3fc7
2 changed files with 5 additions and 4 deletions

View File

@@ -37,7 +37,7 @@
#include "dp_ratetable.h" #include "dp_ratetable.h"
#endif #endif
#include <qdf_module.h> #include <qdf_module.h>
#ifdef CONFIG_SAWF_DEF_QUEUEUS #ifdef CONFIG_SAWF_DEF_QUEUES
#include <dp_sawf_htt.h> #include <dp_sawf_htt.h>
#endif #endif
@@ -2422,7 +2422,7 @@ static void dp_vdev_txrx_hw_stats_handler(struct htt_soc *soc,
{} {}
#endif #endif
#ifdef CONFIG_SAWF_DEF_QEUEUES #ifdef CONFIG_SAWF_DEF_QUEUES
static void dp_sawf_def_queues_update_map_report_conf(struct htt_soc *soc, static void dp_sawf_def_queues_update_map_report_conf(struct htt_soc *soc,
uint32_t *msg_word, uint32_t *msg_word,
qdf_nbuf_t htt_t2h_msg) qdf_nbuf_t htt_t2h_msg)

View File

@@ -346,7 +346,7 @@ void dp_sawf_config_li(struct dp_soc *soc, uint32_t *hal_tx_desc_cached,
uint8_t q_id = 0; uint8_t q_id = 0;
uint32_t search_index; uint32_t search_index;
if (wlan_cfg_get_sawf_config(soc->wlan_cfg_ctx)) if (!wlan_cfg_get_sawf_config(soc->wlan_cfg_ctx))
return; return;
dp_sawf_tcl_cmd(fw_metadata, nbuf); dp_sawf_tcl_cmd(fw_metadata, nbuf);
@@ -358,7 +358,8 @@ void dp_sawf_config_li(struct dp_soc *soc, uint32_t *hal_tx_desc_cached,
search_index = dp_sawf_get_search_index(soc, nbuf, vdev_id, search_index = dp_sawf_get_search_index(soc, nbuf, vdev_id,
q_id); q_id);
hal_tx_desc_set_hlos_tid(hal_tx_desc_cached, (q_id & 0x7)); hal_tx_desc_set_hlos_tid(hal_tx_desc_cached, (q_id & 0x7));
hal_tx_desc_set_search_type_li(soc->hal_soc, hal_tx_desc_cached, 2); hal_tx_desc_set_search_type_li(soc->hal_soc, hal_tx_desc_cached,
HAL_TX_ADDR_INDEX_SEARCH);
hal_tx_desc_set_search_index_li(soc->hal_soc, hal_tx_desc_cached, hal_tx_desc_set_search_index_li(soc->hal_soc, hal_tx_desc_cached,
search_index); search_index);
} }