From fedc5e32b890d75701ab6346d6df9af1f96f87a8 Mon Sep 17 00:00:00 2001 From: Vevek Venkatesan Date: Wed, 12 Aug 2020 19:16:28 +0530 Subject: [PATCH] qcacld-3.0: fix IPA stats set_quota failure Fixing the failure of set_quota feature for IPA stats, currently calling set_quota during resource_loading, but it is supposed to be called if resource_loading is false. This is causing IPA stats set_quota feature is getting failed for Adrestea targets and fixing the same. Change-Id: I95ad60a8e15f4faaea34093785422ad494ee1fb4 CRs-Fixed: 2730655 --- components/ipa/core/src/wlan_ipa_stats.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/ipa/core/src/wlan_ipa_stats.c b/components/ipa/core/src/wlan_ipa_stats.c index 9d8e133863ee..dc057a4f02d4 100644 --- a/components/ipa/core/src/wlan_ipa_stats.c +++ b/components/ipa/core/src/wlan_ipa_stats.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2013-2019 The Linux Foundation. All rights reserved. + * Copyright (c) 2013-2020 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 @@ -853,9 +853,9 @@ static void wlan_ipa_uc_set_quota(struct wlan_ipa_priv *ipa_ctx, qdf_mutex_acquire(&ipa_ctx->ipa_lock); if (false == ipa_ctx->resource_loading) { qdf_mutex_release(&ipa_ctx->ipa_lock); - } else { cdp_ipa_uc_set_quota(ipa_ctx->dp_soc, ipa_ctx->dp_pdev_id, quota_bytes); + } else { qdf_mutex_release(&ipa_ctx->ipa_lock); } }