summaryrefslogtreecommitdiff
path: root/ipacm/src/IPACM_Wlan.cpp
diff options
context:
space:
mode:
authorMohammed Javid <mjavid@codeaurora.org>2018-05-31 17:12:36 +0530
committerGerrit - the friendly Code Review server <code-review@localhost>2018-06-26 01:47:02 -0700
commit1578bb3cf0adc26b4bbbdc10110c8bfbd2b48e85 (patch)
tree3c229cb699de03052f0708f9b471baab897d256b /ipacm/src/IPACM_Wlan.cpp
parent7c82b07966b2d7a16243ab67c407e7c587751b69 (diff)
downloadipacfg-mgr-1578bb3cf0adc26b4bbbdc10110c8bfbd2b48e85.tar.gz
ipacm: For HAL feature, post wan_down event with 0 tether iface
Currently when WAN comes up, value of IPACM_Wan::ipa_if_num_tether_v4_total is incremented. But it is decremented in both case when WAN or LAN iface goes down. So if WAN is up but LAN tether iface goes down and comes up, value of IPACM_Wan::ipa_if_num_tether_v4_total is 0. In result later UL flt rules will not be deleted when wan goes down. In case of HAL post wan_down event with 0 if_num_tether and add condition to delete tether iface only if HAL feature is not defined. Change-Id: I3289cd89e2fd4de135ef44f402345644477e37b0
Diffstat (limited to 'ipacm/src/IPACM_Wlan.cpp')
-rw-r--r--ipacm/src/IPACM_Wlan.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/ipacm/src/IPACM_Wlan.cpp b/ipacm/src/IPACM_Wlan.cpp
index 090aee2..4678889 100644
--- a/ipacm/src/IPACM_Wlan.cpp
+++ b/ipacm/src/IPACM_Wlan.cpp
@@ -1754,9 +1754,11 @@ 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
+#ifndef FEATURE_IPACM_HAL
/* Clean-up tethered-iface list */
IPACM_Wan::delete_tether_iface(IPA_IP_v4, ipa_if_num);
#endif
+#endif
}
if (IPACM_Wan::isWanUP_V6(ipa_if_num) && rx_prop != NULL)