qcacmn: in tx path set the lmac_id from wlancfg

in tx path set the lmac_id in the tx descriptor
from wlancfg

Change-Id: Ib7f355983142564500a20daa1f0eef41808df449
CRs-fixed: 2320597
This commit is contained in:
Chaithanya Garrepalli
2018-09-21 22:50:23 +05:30
committed by nshrivas
parent 1de3d3ddf3
commit 1f64b2453e
4 changed files with 8 additions and 3 deletions

View File

@@ -892,6 +892,7 @@ static void dp_print_ast_stats(struct dp_soc *soc)
" is_active = %d" " is_active = %d"
" is_bss = %d" " is_bss = %d"
" ast_idx = %d" " ast_idx = %d"
" ast_hash = %d"
" pdev_id = %d" " pdev_id = %d"
" vdev_id = %d", " vdev_id = %d",
++num_entries, ++num_entries,
@@ -902,6 +903,7 @@ static void dp_print_ast_stats(struct dp_soc *soc)
ase->is_active, ase->is_active,
ase->is_bss, ase->is_bss,
ase->ast_idx, ase->ast_idx,
ase->ast_hash_value,
ase->pdev_id, ase->pdev_id,
ase->vdev_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->soc = soc;
pdev->ctrl_pdev = ctrl_pdev; pdev->ctrl_pdev = ctrl_pdev;
pdev->pdev_id = pdev_id; 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_list[pdev_id] = pdev;
soc->pdev_count++; soc->pdev_count++;

View File

@@ -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_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_encap_type(hal_tx_desc_cached, tx_desc->tx_encap_type);
hal_tx_desc_set_lmac_id(soc->hal_soc, hal_tx_desc_cached, 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, hal_tx_desc_set_search_type(soc->hal_soc, hal_tx_desc_cached,
vdev->search_type); vdev->search_type);
hal_tx_desc_set_search_index(soc->hal_soc, hal_tx_desc_cached, hal_tx_desc_set_search_index(soc->hal_soc, hal_tx_desc_cached,

View File

@@ -1043,6 +1043,9 @@ struct dp_pdev {
/* PDEV Id */ /* PDEV Id */
int pdev_id; int pdev_id;
/* LMAC Id */
int lmac_id;
/* TXRX SOC handle */ /* TXRX SOC handle */
struct dp_soc *soc; struct dp_soc *soc;

View File

@@ -461,7 +461,7 @@ static inline void hal_tx_desc_sync(void *hal_tx_desc_cached,
void *hw_desc) void *hw_desc)
{ {
qdf_mem_copy((hw_desc + sizeof(struct tlv_32_hdr)), qdf_mem_copy((hw_desc + sizeof(struct tlv_32_hdr)),
hal_tx_desc_cached, 20); hal_tx_desc_cached, HAL_TX_DESC_LEN_BYTES);
} }
/*--------------------------------------------------------------------------- /*---------------------------------------------------------------------------