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:

committed by
snandini

parent
e12be3323f
commit
7ddad6e2cb
1
Kbuild
1
Kbuild
@@ -3739,6 +3739,7 @@ ccflags-$(CONFIG_FOURTH_CONNECTION_AUTO) += -DFOURTH_CONNECTION_AUTO
|
|||||||
ccflags-$(CONFIG_WMI_SEND_RECV_QMI) += -DWLAN_FEATURE_WMI_SEND_RECV_QMI
|
ccflags-$(CONFIG_WMI_SEND_RECV_QMI) += -DWLAN_FEATURE_WMI_SEND_RECV_QMI
|
||||||
|
|
||||||
cppflags-$(CONFIG_WDI3_STATS_UPDATE) += -DWDI3_STATS_UPDATE
|
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_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
|
cppflags-$(CONFIG_WLAN_SEND_DSCP_UP_MAP_TO_FW) += -DWLAN_SEND_DSCP_UP_MAP_TO_FW
|
||||||
|
@@ -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);
|
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)
|
static void wlan_ipa_uc_bw_monitor(struct wlan_ipa_priv *ipa_ctx, bool stop)
|
||||||
{
|
{
|
||||||
qdf_ipa_wdi_bw_info_t bw_info;
|
qdf_ipa_wdi_bw_info_t bw_info;
|
||||||
|
@@ -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
|
* Permission to use, copy, modify, and/or distribute this software for
|
||||||
* any purpose with or without fee is hereby granted, provided that the
|
* 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 FEATURE_METERING
|
||||||
|
|
||||||
#ifdef WDI3_STATS_UPDATE
|
#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.
|
* IPA calls to get WLAN stats or set quota limit.
|
||||||
* @priv: pointer to private data registered with IPA (we register a
|
* @priv: pointer to private data registered with IPA (we register a
|
||||||
* pointer to the IPA context)
|
* 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);
|
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,
|
void wlan_ipa_update_tx_stats(struct wlan_ipa_priv *ipa_ctx, uint64_t sta_tx,
|
||||||
uint64_t ap_tx)
|
uint64_t ap_tx)
|
||||||
{
|
{
|
||||||
|
@@ -283,6 +283,9 @@ endif
|
|||||||
ifeq ($(CONFIG_ARCH_KONA), y)
|
ifeq ($(CONFIG_ARCH_KONA), y)
|
||||||
CONFIG_QCACLD_FEATURE_METERING := y
|
CONFIG_QCACLD_FEATURE_METERING := y
|
||||||
CONFIG_WDI3_STATS_UPDATE := 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
|
CONFIG_WLAN_SYNC_TSF_TIMER := y
|
||||||
endif
|
endif
|
||||||
|
|
||||||
@@ -294,6 +297,9 @@ CONFIG_WBM_IDLE_LSB_WR_CNF_WAR := y
|
|||||||
CONFIG_WLAN_FEATURE_RX_BUFFER_POOL := y
|
CONFIG_WLAN_FEATURE_RX_BUFFER_POOL := y
|
||||||
CONFIG_DP_RX_BUFFER_POOL_SIZE := 128
|
CONFIG_DP_RX_BUFFER_POOL_SIZE := 128
|
||||||
CONFIG_DP_RX_BUFFER_POOL_ALLOC_THRES := 5
|
CONFIG_DP_RX_BUFFER_POOL_ALLOC_THRES := 5
|
||||||
|
ifeq ($(CONFIG_WDI3_STATS_UPDATE), y)
|
||||||
|
CONFIG_WDI3_STATS_BW_MONITOR := y
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user