ipacm:Add check to configure default flt rule only once
If header_partial_default_wan_v4 flag is true
handle_route_add_evt method is getting called twice and
default filter rule is installed twice. Add check to
prevent it.
Change-Id: I9bae2952a63daad72fabc565ef29153a0c0e4c71
diff --git a/ipacm/src/IPACM_Wan.cpp b/ipacm/src/IPACM_Wan.cpp
index cf16c71..2967b50 100644
--- a/ipacm/src/IPACM_Wan.cpp
+++ b/ipacm/src/IPACM_Wan.cpp
@@ -756,7 +756,10 @@
#else
IPACMDBG_H("adding routing table(upstream), dev (%s) ip-type(%d)\n", dev_name,data->iptype);
#endif
- handle_route_add_evt(data->iptype); //sky
+ if (active_v4 == false)
+ {
+ handle_route_add_evt(data->iptype); //sky
+ }
}
#ifdef FEATURE_IPA_ANDROID
#ifdef FEATURE_IPACM_HAL
@@ -789,7 +792,10 @@
/* Check & construct STA header */
handle_sta_header_add_evt();
#endif
- handle_route_add_evt(data->iptype);
+ if (active_v6 == false)
+ {
+ handle_route_add_evt(data->iptype);
+ }
}
#ifdef FEATURE_IPA_ANDROID
#ifdef FEATURE_IPACM_HAL