qcacmn: Framework to use pdev_id to lmac_id mapping from FW

FW assigns the pdev_id to lmac_id mapping for each platform(HK, CYP, etc).
This information is passed on to host via WMI_MAC_PHY_CAPABILITIES tlv.

Instead of hard-coding the mapping again in host, use the info sent by FW.

Change-Id: I01ad81e97a1b4aa1f0fea3951f6e8285a0f0c039
This commit is contained in:
Padma Raghunathan
2019-02-28 14:30:55 +05:30
committed by nshrivas
父節點 69e39d9aa8
當前提交 93549e15a1
共有 5 個文件被更改,包括 53 次插入0 次删除

查看文件

@@ -1880,6 +1880,33 @@ cdp_soc_set_dp_txrx_handle(ol_txrx_soc_handle soc, void *dp_handle)
dp_handle);
}
/**
* cdp_soc_map_pdev_to_lmac() - Save pdev_id to lmac_id mapping
* @soc: opaque soc handle
* @pdev_handle: data path pdev handle
* @lmac_id: lmac id
*
* Return: void
*/
static inline void
cdp_soc_map_pdev_to_lmac(ol_txrx_soc_handle soc, void *pdev_handle,
uint32_t lmac_id)
{
if (!soc || !soc->ops) {
QDF_TRACE(QDF_MODULE_ID_CDP, QDF_TRACE_LEVEL_DEBUG,
"%s: Invalid Instance:", __func__);
QDF_BUG(0);
return;
}
if (!soc->ops->cmn_drv_ops ||
!soc->ops->cmn_drv_ops->map_pdev_to_lmac)
return;
soc->ops->cmn_drv_ops->map_pdev_to_lmac((struct cdp_pdev *)pdev_handle,
lmac_id);
}
/**
* cdp_tx_send() - enqueue frame for transmission
* @soc: soc opaque handle