diff --git a/dp/wifi3.0/dp_main.c b/dp/wifi3.0/dp_main.c index 0010d2e897..bd4b707f3b 100644 --- a/dp/wifi3.0/dp_main.c +++ b/dp/wifi3.0/dp_main.c @@ -892,6 +892,7 @@ static void dp_print_ast_stats(struct dp_soc *soc) " is_active = %d" " is_bss = %d" " ast_idx = %d" + " ast_hash = %d" " pdev_id = %d" " vdev_id = %d", ++num_entries, @@ -902,6 +903,7 @@ static void dp_print_ast_stats(struct dp_soc *soc) ase->is_active, ase->is_bss, ase->ast_idx, + ase->ast_hash_value, ase->pdev_id, ase->vdev_id); } @@ -2951,6 +2953,7 @@ static struct cdp_pdev *dp_pdev_attach_wifi3(struct cdp_soc_t *txrx_soc, pdev->soc = soc; pdev->ctrl_pdev = ctrl_pdev; pdev->pdev_id = pdev_id; + pdev->lmac_id = wlan_cfg_get_hw_mac_idx(soc->wlan_cfg_ctx, pdev_id); soc->pdev_list[pdev_id] = pdev; soc->pdev_count++; diff --git a/dp/wifi3.0/dp_tx.c b/dp/wifi3.0/dp_tx.c index 0d17ac700b..78a88f1d4a 100644 --- a/dp/wifi3.0/dp_tx.c +++ b/dp/wifi3.0/dp_tx.c @@ -935,8 +935,7 @@ static QDF_STATUS dp_tx_hw_enqueue(struct dp_soc *soc, struct dp_vdev *vdev, hal_tx_desc_set_buf_offset(hal_tx_desc_cached, tx_desc->pkt_offset); hal_tx_desc_set_encap_type(hal_tx_desc_cached, tx_desc->tx_encap_type); hal_tx_desc_set_lmac_id(soc->hal_soc, hal_tx_desc_cached, - vdev->pdev->pdev_id); - + vdev->pdev->lmac_id); hal_tx_desc_set_search_type(soc->hal_soc, hal_tx_desc_cached, vdev->search_type); hal_tx_desc_set_search_index(soc->hal_soc, hal_tx_desc_cached, diff --git a/dp/wifi3.0/dp_types.h b/dp/wifi3.0/dp_types.h index 7b56c175ae..b5ee817c7e 100644 --- a/dp/wifi3.0/dp_types.h +++ b/dp/wifi3.0/dp_types.h @@ -1043,6 +1043,9 @@ struct dp_pdev { /* PDEV Id */ int pdev_id; + /* LMAC Id */ + int lmac_id; + /* TXRX SOC handle */ struct dp_soc *soc; diff --git a/hal/wifi3.0/hal_tx.h b/hal/wifi3.0/hal_tx.h index 3f5d77c762..b66f3bebe8 100644 --- a/hal/wifi3.0/hal_tx.h +++ b/hal/wifi3.0/hal_tx.h @@ -461,7 +461,7 @@ static inline void hal_tx_desc_sync(void *hal_tx_desc_cached, void *hw_desc) { qdf_mem_copy((hw_desc + sizeof(struct tlv_32_hdr)), - hal_tx_desc_cached, 20); + hal_tx_desc_cached, HAL_TX_DESC_LEN_BYTES); } /*---------------------------------------------------------------------------