summaryrefslogtreecommitdiff
path: root/ipacm/inc/IPACM_Wan.h
diff options
context:
space:
mode:
authorSkylar Chang <chiaweic@codeaurora.org>2017-08-14 16:59:13 -0700
committerSkylar Chang <chiaweic@codeaurora.org>2017-09-12 11:30:36 -0700
commit08efbfecee0f8731f314f62d4566d76074456b5c (patch)
tree49d32a7d9938afa44c4b2fcac95bf45e4400eddc /ipacm/inc/IPACM_Wan.h
parent17b9f5c878c6dc434186b3f512e2ad2c8566a538 (diff)
downloadipacfg-mgr-08efbfecee0f8731f314f62d4566d76074456b5c.tar.gz
ipacm: fix the v6-offload issue on Android
Remove the check on how many ipv6 addresses are received from modem interface, fix the client prefix comparison logic which contradicts with MDM requirement to only offload tethered-clients who has same prefix as modem interface. Change-Id: Ib4b2f9e67f5c92021956c3ecb963cfed7f016959
Diffstat (limited to 'ipacm/inc/IPACM_Wan.h')
-rw-r--r--ipacm/inc/IPACM_Wan.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/ipacm/inc/IPACM_Wan.h b/ipacm/inc/IPACM_Wan.h
index a631f20..c60612c 100644
--- a/ipacm/inc/IPACM_Wan.h
+++ b/ipacm/inc/IPACM_Wan.h
@@ -130,7 +130,12 @@ public:
static bool isWanUP_V6(int ipa_if_num_tether)
{
#ifdef FEATURE_IPA_ANDROID
- int i;
+#ifdef FEATURE_IPACM_HAL
+ /*To avoid -Wall -Werror error */
+ IPACMDBG_H("ipa_if_num_tether: %d\n",ipa_if_num_tether);
+ return wan_up_v6;
+#else
+ uint32_t i;
for (i=0; i < ipa_if_num_tether_v6_total;i++)
{
if (ipa_if_num_tether_v6[i] == ipa_if_num_tether)
@@ -142,6 +147,7 @@ public:
}
}
return false;
+#endif
#else
return wan_up_v6;
#endif