qcacmn: Define WMI_HOST_PEER_* for no host to target conversion

Currently if ENABLE_HOST_TO_TARGET_CONVERSION is defined, WMI_HOST_PEER_*
can be translated to WMI_PEER_* through API
convert_host_peer_param_id_to_target_id_tlv.

If ENABLE_HOST_TO_TARGET_CONVERSION is not defined, WMI_HOST_PEER_* in
common code is sent to firmware directly, which is incorrect.

Define WMI_HOST_PEER_* to WMI_PEER_* if ENABLE_HOST_TO_TARGET_CONVERSION
is not defined. Then WMI_HOST_PEER_* can be used in common code.

Change-Id: I50aa604d8822a81eed223c8551e542007929424e
CRs-Fixed: 3271470
This commit is contained in:
Bing Sun
2022-08-25 16:42:33 +08:00
committed by Madan Koyyalamudi
vanhempi cdc30dc279
commit fbcb2bb588
4 muutettua tiedostoa jossa 58 lisäystä ja 32 poistoa

Näytä tiedosto

@@ -32,7 +32,18 @@ QDF_STATUS son_ol_send_null(struct wlan_objmgr_pdev *pdev,
u_int8_t *macaddr,
struct wlan_objmgr_vdev *vdev);
#if defined(WMI_NON_TLV_SUPPORT) || defined(WMI_TLV_AND_NON_TLV_SUPPORT)
QDF_STATUS son_ol_peer_ext_stats_enable(struct wlan_objmgr_pdev *pdev,
uint8_t *peer_addr,
struct wlan_objmgr_vdev *vdev,
uint32_t stats_count, uint32_t enable);
#else
static inline QDF_STATUS son_ol_peer_ext_stats_enable(
struct wlan_objmgr_pdev *pdev,
uint8_t *peer_addr,
struct wlan_objmgr_vdev *vdev,
uint32_t stats_count, uint32_t enable)
{
return QDF_STATUS_SUCCESS;
}
#endif

Näytä tiedosto

@@ -62,6 +62,7 @@ QDF_STATUS son_ol_send_null(struct wlan_objmgr_pdev *pdev,
return wmi_unified_stats_request_send(wmi_handle, macaddr, &param);
}
#if defined(WMI_NON_TLV_SUPPORT) || defined(WMI_TLV_AND_NON_TLV_SUPPORT)
QDF_STATUS son_ol_peer_ext_stats_enable(struct wlan_objmgr_pdev *pdev,
uint8_t *peer_addr,
struct wlan_objmgr_vdev *vdev,
@@ -98,6 +99,7 @@ QDF_STATUS son_ol_peer_ext_stats_enable(struct wlan_objmgr_pdev *pdev,
return wmi_set_peer_param_send(wmi_handle, peer_addr, &param);
}
#endif
void target_if_son_register_tx_ops(struct wlan_lmac_if_tx_ops *tx_ops)
{