summaryrefslogtreecommitdiff
path: root/ipacm/src/IPACM_Wlan.cpp
diff options
context:
space:
mode:
authorSkylar Chang <chiaweic@codeaurora.org>2017-05-25 12:04:24 -0700
committerGerrit - the friendly Code Review server <code-review@localhost>2017-07-22 12:51:20 -0700
commitdce23103b4e93cbeb3804ed47db5a177f4d3a689 (patch)
tree808e3f83b7be41f959ae0ae6f6827338faeac43b /ipacm/src/IPACM_Wlan.cpp
parent57c1cea0fbae5070864fff71edce30b8e5cc5bb0 (diff)
downloadipacfg-mgr-dce23103b4e93cbeb3804ed47db5a177f4d3a689.tar.gz
IPACM: handle the timing issue on upstream_del
When CNE send upstream_del event to IPACM after tethered iface down, WAN instance is unable to clean up its v4/v6 tethered list. Add the support to handle this timing issue. Change-Id: I7601c70749e0cd30ef951c99d2ea601ecc4c9201
Diffstat (limited to 'ipacm/src/IPACM_Wlan.cpp')
-rw-r--r--ipacm/src/IPACM_Wlan.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/ipacm/src/IPACM_Wlan.cpp b/ipacm/src/IPACM_Wlan.cpp
index 54a2e66..9188980 100644
--- a/ipacm/src/IPACM_Wlan.cpp
+++ b/ipacm/src/IPACM_Wlan.cpp
@@ -1697,12 +1697,20 @@ int IPACM_Wlan::handle_down_evt()
{
IPACMDBG_H("LAN IF goes down, backhaul type %d\n", IPACM_Wan::backhaul_is_sta_mode);
IPACM_Lan::handle_wan_down(IPACM_Wan::backhaul_is_sta_mode);
+#ifdef FEATURE_IPA_ANDROID
+ /* Clean-up tethered-iface list */
+ IPACM_Wan::delete_tether_iface(IPA_IP_v4, ipa_if_num);
+#endif
}
if (IPACM_Wan::isWanUP_V6(ipa_if_num) && rx_prop != NULL)
{
IPACMDBG_H("LAN IF goes down, backhaul type %d\n", IPACM_Wan::backhaul_is_sta_mode);
handle_wan_down_v6(IPACM_Wan::backhaul_is_sta_mode);
+#ifdef FEATURE_IPA_ANDROID
+ /* Clean-up tethered-iface list */
+ IPACM_Wan::delete_tether_iface(IPA_IP_v6, ipa_if_num);
+#endif
}
IPACMDBG_H("finished deleting wan filtering rules\n ");