From 5cc176837df8c554a8e40451fdf4b4b53e09209b Mon Sep 17 00:00:00 2001 From: Rakesh Pillai Date: Mon, 3 Jan 2022 12:49:43 +0530 Subject: [PATCH] qcacmn: Fix compilation error in FSE entry access FISA is not supported by qca6390 and hence there are compilation failure in FSE access. Fix these compilation issues for qca6390. Change-Id: I611b7e2068ad260a41add9b8bd5ab7a5345e8152 CRs-Fixed: 3103337 --- hal/wifi3.0/li/hal_li_generic_api.h | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/hal/wifi3.0/li/hal_li_generic_api.h b/hal/wifi3.0/li/hal_li_generic_api.h index 81a06215fa..5a6f42071a 100644 --- a/hal/wifi3.0/li/hal_li_generic_api.h +++ b/hal/wifi3.0/li/hal_li_generic_api.h @@ -1,6 +1,6 @@ /* * Copyright (c) 2016-2021 The Linux Foundation. All rights reserved. - * Copyright (c) 2021 Qualcomm Innovation Center, Inc. All rights reserved. + * Copyright (c) 2021-2022 Qualcomm Innovation Center, Inc. All rights reserved. * * Permission to use, copy, modify, and/or distribute this software for * any purpose with or without fee is hereby granted, provided that the @@ -2386,6 +2386,7 @@ void hal_tx_desc_set_cache_set_num_generic_li(void *desc, uint8_t cache_num) } #endif +#ifdef WLAN_SUPPORT_RX_FISA /** * hal_rx_flow_get_tuple_info_li() - Setup a flow search entry in HW FST * @fst: Pointer to the Rx Flow Search Table @@ -2487,4 +2488,24 @@ hal_rx_fst_get_fse_size_li(void) { return HAL_RX_FST_ENTRY_SIZE; } +#else +static void * +hal_rx_flow_get_tuple_info_li(uint8_t *rx_fst, uint32_t hal_hash, + uint8_t *flow_tuple_info) +{ + return NULL; +} + +static QDF_STATUS +hal_rx_flow_delete_entry_li(uint8_t *rx_fst, void *hal_rx_fse) +{ + return QDF_STATUS_SUCCESS; +} + +static inline uint32_t +hal_rx_fst_get_fse_size_li(void) +{ + return 0; +} +#endif /* WLAN_SUPPORT_RX_FISA */ #endif /* _HAL_LI_GENERIC_API_H_ */