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
This commit is contained in:
Vevek Venkatesan
2020-08-12 19:16:28 +05:30
committed by snandini
vanhempi 38888ae732
commit fedc5e32b8

Näytä tiedosto

@@ -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);
}
}