qcacld-3.0: decouple bw monitor from WDI3_STATS_UPDATE

Decouple BW monitor from WDI3_STATS_UPDATE and add as a
separate feature flag WDI3_STATS_BW_MONITOR.

Change-Id: I77fb5658d995daceaada6a7d64f669da706ead9c
CRs-Fixed: 2868582
This commit is contained in:
Vevek Venkatesan 2021-02-01 17:59:16 +05:30 committed by snandini
parent e12be3323f
commit 7ddad6e2cb
4 changed files with 18 additions and 3 deletions

1
Kbuild
View File

@ -3739,6 +3739,7 @@ ccflags-$(CONFIG_FOURTH_CONNECTION_AUTO) += -DFOURTH_CONNECTION_AUTO
ccflags-$(CONFIG_WMI_SEND_RECV_QMI) += -DWLAN_FEATURE_WMI_SEND_RECV_QMI
cppflags-$(CONFIG_WDI3_STATS_UPDATE) += -DWDI3_STATS_UPDATE
cppflags-$(CONFIG_WDI3_STATS_BW_MONITOR) += -DWDI3_STATS_BW_MONITOR
cppflags-$(CONFIG_WLAN_CUSTOM_DSCP_UP_MAP) += -DWLAN_CUSTOM_DSCP_UP_MAP
cppflags-$(CONFIG_WLAN_SEND_DSCP_UP_MAP_TO_FW) += -DWLAN_SEND_DSCP_UP_MAP_TO_FW

View File

@ -1951,7 +1951,7 @@ static void wlan_ipa_uc_offload_enable_disable(struct wlan_ipa_priv *ipa_ctx,
wlan_ipa_intrabss_enable_disable(ipa_ctx, session_id, enable);
}
#ifdef WDI3_STATS_UPDATE
#ifdef WDI3_STATS_BW_MONITOR
static void wlan_ipa_uc_bw_monitor(struct wlan_ipa_priv *ipa_ctx, bool stop)
{
qdf_ipa_wdi_bw_info_t bw_info;

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2013-2020 The Linux Foundation. All rights reserved.
* Copyright (c) 2013-2021 The Linux Foundation. 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
@ -750,8 +750,9 @@ void wlan_ipa_uc_stat(struct wlan_ipa_priv *ipa_ctx)
#ifdef FEATURE_METERING
#ifdef WDI3_STATS_UPDATE
#ifdef WDI3_STATS_BW_MONITOR
/**
* wlan_ipa_wdi_meter_notifier_cb() - WLAN to IPA callback handler.
* __wlan_ipa_wdi_meter_notifier_cb() - WLAN to IPA callback handler.
* IPA calls to get WLAN stats or set quota limit.
* @priv: pointer to private data registered with IPA (we register a
* pointer to the IPA context)
@ -799,6 +800,13 @@ static void __wlan_ipa_wdi_meter_notifier_cb(qdf_ipa_wdi_meter_evt_type_t evt,
ipa_debug("Requested BW level: %d", ipa_ctx->curr_bw_level);
}
#else
static void __wlan_ipa_wdi_meter_notifier_cb(qdf_ipa_wdi_meter_evt_type_t evt,
void *data)
{
}
#endif
void wlan_ipa_update_tx_stats(struct wlan_ipa_priv *ipa_ctx, uint64_t sta_tx,
uint64_t ap_tx)
{

View File

@ -283,6 +283,9 @@ endif
ifeq ($(CONFIG_ARCH_KONA), y)
CONFIG_QCACLD_FEATURE_METERING := y
CONFIG_WDI3_STATS_UPDATE := y
ifeq ($(CONFIG_WDI3_STATS_UPDATE), y)
CONFIG_WDI3_STATS_BW_MONITOR := y
endif
CONFIG_WLAN_SYNC_TSF_TIMER := y
endif
@ -294,6 +297,9 @@ CONFIG_WBM_IDLE_LSB_WR_CNF_WAR := y
CONFIG_WLAN_FEATURE_RX_BUFFER_POOL := y
CONFIG_DP_RX_BUFFER_POOL_SIZE := 128
CONFIG_DP_RX_BUFFER_POOL_ALLOC_THRES := 5
ifeq ($(CONFIG_WDI3_STATS_UPDATE), y)
CONFIG_WDI3_STATS_BW_MONITOR := y
endif
endif
endif