qcacmn: Properly set WDI version for WIN chipset

Set WDI version based on SOC architecture, set WDI
version to IPA_WDI_4 for QCA_WIFI_QCN9224 chipset,
else IPA_WDI_3.

Change-Id: Ib80435e5098cfbcb9f90d4ac9cfe81ea183f308a
CRs-Fixed: 3383949
This commit is contained in:
Devender Kumar
2023-01-17 16:26:01 +05:30
committed by Madan Koyyalamudi
parent d20a5a657c
commit f230d96802
8 changed files with 81 additions and 3 deletions

View File

@@ -4009,4 +4009,23 @@ QDF_STATUS dp_ipa_txrx_get_peer_stats(struct cdp_soc_t *soc, uint8_t vdev_id,
return QDF_STATUS_SUCCESS;
}
#endif
/**
* dp_ipa_get_wdi_version() - Get WDI version
* @soc_hdl: data path soc handle
* @wdi_ver: Out parameter for wdi version
*
* Get WDI version based on soc arch
*
* Return: None
*/
void dp_ipa_get_wdi_version(struct cdp_soc_t *soc_hdl, uint8_t *wdi_ver)
{
struct dp_soc *soc = cdp_soc_t_to_dp_soc(soc_hdl);
if (soc->arch_ops.ipa_get_wdi_ver)
soc->arch_ops.ipa_get_wdi_ver(wdi_ver);
else
*wdi_ver = IPA_WDI_3;
}
#endif