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
Esse commit está contido em:
Devender Kumar
2023-01-17 16:26:01 +05:30
commit de Madan Koyyalamudi
commit f230d96802
8 arquivos alterados com 81 adições e 3 exclusões

Ver arquivo

@@ -940,5 +940,24 @@ cdp_ipa_opt_dp_enable_disable_low_power_mode(struct wlan_objmgr_pdev *pdev,
}
#endif /* IPA_OPT_WIFI_DP */
/**
* cdp_ipa_get_wdi_version - Get WDI version
* @soc: data path soc handle
* @wdi_ver: Out param for wdi version
*
* Return: None
*/
static inline void
cdp_ipa_get_wdi_version(ol_txrx_soc_handle soc, uint8_t *wdi_ver)
{
if (!soc || !soc->ops || !soc->ops->ipa_ops) {
QDF_TRACE(QDF_MODULE_ID_DP, QDF_TRACE_LEVEL_FATAL,
"%s invalid instance", __func__);
return;
}
if (soc->ops->ipa_ops->ipa_get_wdi_version)
soc->ops->ipa_ops->ipa_get_wdi_version(soc, wdi_ver);
}
#endif /* IPA_OFFLOAD */
#endif /* _CDP_TXRX_IPA_H_ */