summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSkylar Chang <chiaweic@codeaurora.org>2019-06-19 18:45:40 -0700
committerSkylar Chang <chiaweic@codeaurora.org>2019-06-19 18:45:40 -0700
commitd8e9f0b3fc92e26a726e5a5771816dab64a8a54e (patch)
tree20bc6133970e7c1839bc8237d98e602c17e98fca
parent2cba7556d7e620cc0e5904fef1a08e0017925ade (diff)
downloadandroid_vendor_qcom_opensource_data-ipa-cfg-mgr-d8e9f0b3fc92e26a726e5a5771816dab64a8a54e.tar.gz
android_vendor_qcom_opensource_data-ipa-cfg-mgr-d8e9f0b3fc92e26a726e5a5771816dab64a8a54e.tar.bz2
android_vendor_qcom_opensource_data-ipa-cfg-mgr-d8e9f0b3fc92e26a726e5a5771816dab64a8a54e.zip
ipacm: fix the total_num_offload_rules issue
Add the fix to decrease the total_num_offload_rules correctly when modem removes offload rules successfully. Change-Id: I451807090327658f942f71ec293ccd683ae87dbf
-rw-r--r--ipacm/src/IPACM_Filtering.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/ipacm/src/IPACM_Filtering.cpp b/ipacm/src/IPACM_Filtering.cpp
index cdb37b4..a65b769 100644
--- a/ipacm/src/IPACM_Filtering.cpp
+++ b/ipacm/src/IPACM_Filtering.cpp
@@ -659,6 +659,10 @@ bool IPACM_Filtering::DelOffloadFilteringRule(struct ipa_ioc_del_flt_rule const
goto fail;
}
}
+ /* update total_num_offload_rules */
+ total_num_offload_rules -= flt_rule_tbl->num_hdls;
+ IPACMDBG_H("total_num_offload_rules %d \n", total_num_offload_rules);
+
fail:
close(fd_wwan_ioctl);
return result;