Merge branch 'qcom/release/LA.UM.7.3.9.08.00.00.385.328' into pi-dev am: 88e98374cb
am: 58dc95d234
Change-Id: I9f43a55fc2b4722df4e17a172efcc5bca706b2b6
diff --git a/ipacm/src/IPACM_OffloadManager.cpp b/ipacm/src/IPACM_OffloadManager.cpp
index c0378de..5efe20f 100644
--- a/ipacm/src/IPACM_OffloadManager.cpp
+++ b/ipacm/src/IPACM_OffloadManager.cpp
@@ -366,6 +366,14 @@
if(upstream_name == NULL)
{
if (default_gw_index == INVALID_IFACE) {
+ for (index = 0; index < MAX_EVENT_CACHE; index++) {
+ if (event_cache[index].valid == true &&
+ event_cache[index ].event == IPA_WAN_UPSTREAM_ROUTE_ADD_EVENT) {
+ event_cache[index].valid = false;
+ memset(event_cache, 0, MAX_EVENT_CACHE*sizeof(framework_event_cache));
+ return SUCCESS;
+ }
+ }
IPACMERR("no previous upstream set before\n");
return FAIL_INPUT_CHECK;
}