diff --git a/components/ipa/core/inc/wlan_ipa_core.h b/components/ipa/core/inc/wlan_ipa_core.h index 2ce6ee6c340f..0a20a767f389 100644 --- a/components/ipa/core/inc/wlan_ipa_core.h +++ b/components/ipa/core/inc/wlan_ipa_core.h @@ -134,17 +134,6 @@ QDF_STATUS wlan_ipa_uc_enable_pipes(struct wlan_ipa_priv *ipa_ctx); */ QDF_STATUS wlan_ipa_uc_disable_pipes(struct wlan_ipa_priv *ipa_ctx); -/** - * wlan_ipa_set_perf_level() - Set IPA performance level - * @ipa_ctx: IPA context - * @tx_packets: Number of packets transmitted in the last sample period - * @rx_packets: Number of packets received in the last sample period - * - * Return: QDF STATUS - */ -QDF_STATUS wlan_ipa_set_perf_level(struct wlan_ipa_priv *ipa_ctx, - uint64_t tx_packets, uint64_t rx_packets); - /** * wlan_ipa_get_iface() - Get IPA interface * @ipa_ctx: IPA context @@ -156,6 +145,17 @@ struct wlan_ipa_iface_context *wlan_ipa_get_iface(struct wlan_ipa_priv *ipa_ctx, uint8_t mode); #ifndef CONFIG_IPA_WDI_UNIFIED_API +/** + * wlan_ipa_set_perf_level() - Set IPA performance level + * @ipa_ctx: IPA context + * @tx_packets: Number of packets transmitted in the last sample period + * @rx_packets: Number of packets received in the last sample period + * + * Return: QDF STATUS + */ +QDF_STATUS wlan_ipa_set_perf_level(struct wlan_ipa_priv *ipa_ctx, + uint64_t tx_packets, uint64_t rx_packets); + /** * wlan_ipa_wdi_rm_request_resource() - IPA WDI request resource * @ipa_ctx: IPA context @@ -220,6 +220,13 @@ void wlan_ipa_wdi_destroy_rm(struct wlan_ipa_priv *ipa_ctx); #else /* CONFIG_IPA_WDI_UNIFIED_API */ +static inline +QDF_STATUS wlan_ipa_set_perf_level(struct wlan_ipa_priv *ipa_ctx, + uint64_t tx_packets, uint64_t rx_packets) +{ + return QDF_STATUS_SUCCESS; +} + static inline int wlan_ipa_wdi_rm_request_resource( struct wlan_ipa_priv *ipa_ctx, qdf_ipa_rm_resource_name_t res_name) diff --git a/components/ipa/core/src/wlan_ipa_rm.c b/components/ipa/core/src/wlan_ipa_rm.c index ff603cc2d709..e761ea704eb6 100644 --- a/components/ipa/core/src/wlan_ipa_rm.c +++ b/components/ipa/core/src/wlan_ipa_rm.c @@ -31,6 +31,16 @@ #include "cdp_txrx_ipa.h" #include "host_diag_core_event.h" + +#ifdef FEATURE_METERING +void wlan_ipa_init_metering(struct wlan_ipa_priv *ipa_ctx) +{ + qdf_event_create(&ipa_ctx->ipa_uc_sharing_stats_comp); + qdf_event_create(&ipa_ctx->ipa_uc_set_quota_comp); +} +#endif + +#ifndef CONFIG_IPA_WDI_UNIFIED_API QDF_STATUS wlan_ipa_set_perf_level(struct wlan_ipa_priv *ipa_ctx, uint64_t tx_packets, uint64_t rx_packets) @@ -96,15 +106,6 @@ QDF_STATUS wlan_ipa_set_perf_level(struct wlan_ipa_priv *ipa_ctx, return QDF_STATUS_SUCCESS; } -#ifdef FEATURE_METERING -void wlan_ipa_init_metering(struct wlan_ipa_priv *ipa_ctx) -{ - qdf_event_create(&ipa_ctx->ipa_uc_sharing_stats_comp); - qdf_event_create(&ipa_ctx->ipa_uc_set_quota_comp); -} -#endif - -#ifndef CONFIG_IPA_WDI_UNIFIED_API /** * wlan_ipa_rm_cons_release() - WLAN consumer resource release handler *