summaryrefslogtreecommitdiff
path: root/ipacm/src/IPACM_Wlan.cpp
diff options
context:
space:
mode:
authorSkylar Chang <chiaweic@codeaurora.org>2015-07-25 14:14:22 -0700
committerSkylar Chang <chiaweic@codeaurora.org>2015-07-26 21:20:49 -0700
commitdb3f58142b9e8e88d5c7057c269ac9a5d2adf5fd (patch)
tree44cedee1ca4dff5524aa5715e85ff4d73b8208e9 /ipacm/src/IPACM_Wlan.cpp
parent3ca162709eb22e9cf3d652833a80a093d232db93 (diff)
downloadipacfg-mgr-db3f58142b9e8e88d5c7057c269ac9a5d2adf5fd.tar.gz
IPACM: fix icmpv4 filter rule not clean
When WLAN enable and disable in msm target, seeing icmpv4 filter rule still on wlan pipe which resulted in index mess up after wlan comes again. All the UL data will take SW-exception afterwards. The fix is to clean the icmpv4 rule for lan2lan feature completely. Change-Id: I8cbc68fa101c9a49aad8492d3deee4ab4774b143
Diffstat (limited to 'ipacm/src/IPACM_Wlan.cpp')
-rw-r--r--ipacm/src/IPACM_Wlan.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/ipacm/src/IPACM_Wlan.cpp b/ipacm/src/IPACM_Wlan.cpp
index 38f4308..dff2051 100644
--- a/ipacm/src/IPACM_Wlan.cpp
+++ b/ipacm/src/IPACM_Wlan.cpp
@@ -2344,10 +2344,9 @@ int IPACM_Wlan::handle_down_evt()
/* Delete v4 filtering rules */
if (ip_type != IPA_IP_v6 && rx_prop != NULL)
{
-#ifdef FEATURE_ETH_BRIDGE_LE
+ /* delete IPv4 icmp filter rules */
if(wlan_ap_index == 0)
{
- /* delete IPv4 icmp filter rules */
if(m_filtering.DeleteFilteringHdls(ipv4_icmp_flt_rule_hdl, IPA_IP_v4, NUM_IPV4_ICMP_FLT_RULE) == false)
{
IPACMERR("Error Deleting ICMPv4 Filtering Rule, aborting...\n");
@@ -2355,6 +2354,10 @@ int IPACM_Wlan::handle_down_evt()
goto fail;
}
IPACM_Iface::ipacmcfg->decreaseFltRuleCount(rx_prop->rx[0].src_pipe, IPA_IP_v4, NUM_IPV4_ICMP_FLT_RULE);
+ }
+#ifdef FEATURE_ETH_BRIDGE_LE
+ if(wlan_ap_index == 0)
+ {
/* delete default filter rules */
for(i=0; i<IPV4_DEFAULT_FILTERTING_RULES; i++)
{