qcacmn: Initialize txrx_ref_handle for whunt bypass

Initialize txrx_ref_handle for whunt bypass,
Which is complaining use of uninitialized txrx_ref_handle,
as it is not able to detect that txrx_ref_handle is
populated from another API.

Change-Id: I0f69cf4c8442a5655559622a5825d7af35b9ae5e
CRs-Fixed: 3127788
This commit is contained in:
Pavankumar Nandeshwar
2022-01-13 21:30:37 -08:00
committed by Madan Koyyalamudi
parent bdbcc9ddf0
commit 9979d1a189
7 changed files with 14 additions and 14 deletions

View File

@@ -153,7 +153,7 @@ uint32_t dp_rx_process_be(struct dp_intr *int_ctx,
uint16_t peer_id;
uint8_t vdev_id;
struct dp_txrx_peer *txrx_peer;
dp_txrx_ref_handle txrx_ref_handle;
dp_txrx_ref_handle txrx_ref_handle = NULL;
struct dp_vdev *vdev;
uint32_t pkt_len = 0;
struct hal_rx_mpdu_desc_info mpdu_desc_info;
@@ -1223,7 +1223,7 @@ dp_rx_intrabss_ucast_check_be(qdf_nbuf_t nbuf,
{
uint16_t da_peer_id;
struct dp_txrx_peer *da_peer;
dp_txrx_ref_handle txrx_ref_handle;
dp_txrx_ref_handle txrx_ref_handle = NULL;
if (!qdf_nbuf_is_intra_bss(nbuf))
return false;
@@ -1253,7 +1253,7 @@ dp_rx_intrabss_ucast_check_be(qdf_nbuf_t nbuf,
bool ret = false;
uint8_t dest_chip_id;
uint8_t soc_idx;
dp_txrx_ref_handle txrx_ref_handle;
dp_txrx_ref_handle txrx_ref_handle = NULL;
struct dp_vdev_be *be_vdev =
dp_get_be_vdev_from_dp_vdev(ta_peer->vdev);
struct dp_soc_be *be_soc =
@@ -1328,7 +1328,7 @@ dp_rx_intrabss_ucast_check_be(qdf_nbuf_t nbuf,
uint16_t da_peer_id;
struct dp_txrx_peer *da_peer;
bool ret = false;
dp_txrx_ref_handle txrx_ref_handle;
dp_txrx_ref_handle txrx_ref_handle = NULL;
if (!qdf_nbuf_is_da_valid(nbuf) || qdf_nbuf_is_da_mcbc(nbuf))
return false;

View File

@@ -183,7 +183,7 @@ void dp_tx_process_htt_completion_be(struct dp_soc *soc,
struct hal_tx_completion_status ts = {0};
uint32_t *htt_desc = (uint32_t *)status;
struct dp_txrx_peer *txrx_peer;
dp_txrx_ref_handle txrx_ref_handle;
dp_txrx_ref_handle txrx_ref_handle = NULL;
struct cdp_tid_tx_stats *tid_stats = NULL;
struct htt_soc *htt_handle;
uint8_t vdev_id;

View File

@@ -179,7 +179,7 @@ void dp_rx_defrag_waitlist_flush(struct dp_soc *soc)
struct dp_rx_tid_defrag *tmp;
uint32_t now_ms = qdf_system_ticks_to_msecs(qdf_system_ticks());
TAILQ_HEAD(, dp_rx_tid_defrag) temp_list;
dp_txrx_ref_handle txrx_ref_handle;
dp_txrx_ref_handle txrx_ref_handle = NULL;
TAILQ_INIT(&temp_list);
@@ -1699,7 +1699,7 @@ dp_rx_defrag_store_fragment(struct dp_soc *soc,
struct dp_rx_reorder_array_elem *rx_reorder_array_elem;
struct dp_pdev *pdev;
struct dp_txrx_peer *txrx_peer = NULL;
dp_txrx_ref_handle txrx_ref_handle;
dp_txrx_ref_handle txrx_ref_handle = NULL;
uint16_t peer_id;
uint8_t fragno, more_frag, all_frag_present = 0;
uint16_t rxseq = mpdu_desc_info->mpdu_seq;

View File

@@ -444,7 +444,7 @@ dp_rx_pn_error_handle(struct dp_soc *soc, hal_ring_desc_t ring_desc,
uint32_t rx_bufs_used = 0;
struct dp_txrx_peer *txrx_peer;
bool peer_pn_policy = false;
dp_txrx_ref_handle txrx_ref_handle;
dp_txrx_ref_handle txrx_ref_handle = NULL;
peer_id = dp_rx_peer_metadata_peer_id_get(soc,
mpdu_desc_info->peer_meta_data);
@@ -497,7 +497,7 @@ dp_rx_oor_handle(struct dp_soc *soc,
uint32_t frame_mask = FRAME_MASK_IPV4_ARP | FRAME_MASK_IPV4_DHCP |
FRAME_MASK_IPV4_EAPOL | FRAME_MASK_IPV6_DHCP;
struct dp_txrx_peer *txrx_peer = NULL;
dp_txrx_ref_handle txrx_ref_handle;
dp_txrx_ref_handle txrx_ref_handle = NULL;
txrx_peer = dp_tgt_txrx_peer_get_ref_by_id(soc, peer_id,
&txrx_ref_handle,
@@ -2711,7 +2711,7 @@ done:
uint8_t err_code;
uint8_t *tlv_hdr;
uint32_t peer_meta_data;
dp_txrx_ref_handle txrx_ref_handle;
dp_txrx_ref_handle txrx_ref_handle = NULL;
rx_tlv_hdr = qdf_nbuf_data(nbuf);
/*

View File

@@ -4635,7 +4635,7 @@ dp_tx_comp_process_desc_list(struct dp_soc *soc,
struct dp_txrx_peer *txrx_peer = NULL;
uint16_t peer_id = DP_INVALID_PEER;
qdf_nbuf_t netbuf;
dp_txrx_ref_handle txrx_ref_handle;
dp_txrx_ref_handle txrx_ref_handle = NULL;
desc = comp_head;

View File

@@ -94,7 +94,7 @@ dp_rx_intrabss_ucast_check_li(struct dp_soc *soc, qdf_nbuf_t nbuf,
uint16_t da_peer_id;
struct dp_txrx_peer *da_peer;
struct dp_ast_entry *ast_entry;
dp_txrx_ref_handle txrx_ref_handle;
dp_txrx_ref_handle txrx_ref_handle = NULL;
if (!qdf_nbuf_is_da_valid(nbuf) || qdf_nbuf_is_da_mcbc(nbuf))
return false;
@@ -219,7 +219,7 @@ uint32_t dp_rx_process_li(struct dp_intr *int_ctx,
uint16_t peer_id;
uint8_t vdev_id;
struct dp_txrx_peer *txrx_peer;
dp_txrx_ref_handle txrx_ref_handle;
dp_txrx_ref_handle txrx_ref_handle = NULL;
struct dp_vdev *vdev;
uint32_t pkt_len = 0;
struct hal_rx_mpdu_desc_info mpdu_desc_info;

View File

@@ -95,7 +95,7 @@ void dp_tx_process_htt_completion_li(struct dp_soc *soc,
struct hal_tx_completion_status ts = {0};
uint32_t *htt_desc = (uint32_t *)status;
struct dp_txrx_peer *txrx_peer;
dp_txrx_ref_handle txrx_ref_handle;
dp_txrx_ref_handle txrx_ref_handle = NULL;
struct cdp_tid_tx_stats *tid_stats = NULL;
struct htt_soc *htt_handle;
uint8_t vdev_id;