diff options
author | Skylar Chang <chiaweic@codeaurora.org> | 2017-11-03 15:13:45 -0700 |
---|---|---|
committer | Skylar Chang <chiaweic@codeaurora.org> | 2017-11-08 12:15:10 -0800 |
commit | 3dc153cdd48e699d82ef94c7815d4706e87853e1 (patch) | |
tree | 0b0410a82e6715dc6f827ba6b5af7bbb5325ff86 /ipacm/src/IPACM_IfaceManager.cpp | |
parent | bad4d1f535707a060d0bcb330c97e4a1bbbacfde (diff) | |
download | ipacfg-mgr-3dc153cdd48e699d82ef94c7815d4706e87853e1.tar.gz |
IPACM: clean wlan NAT ifaces during modem SSR
Wlan-driver will disconnect/reconnect to IPA after modem
SSR and bootup again where framework already send
add_downstream to IPA and resulted in offload failed.
The workaround is to self delete NAT ifaces for wlan
related instances during SSR and cache the downstream
event before wlan restarts.
Change-Id: I178c418621862b19327f70a077623f14a69a56c6
Diffstat (limited to 'ipacm/src/IPACM_IfaceManager.cpp')
-rw-r--r-- | ipacm/src/IPACM_IfaceManager.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ipacm/src/IPACM_IfaceManager.cpp b/ipacm/src/IPACM_IfaceManager.cpp index 17f546d..85033a3 100644 --- a/ipacm/src/IPACM_IfaceManager.cpp +++ b/ipacm/src/IPACM_IfaceManager.cpp @@ -383,6 +383,7 @@ int IPACM_IfaceManager::create_iface_instance(ipacm_ifacemgr_data *param) #ifdef FEATURE_IPACM_HAL IPACM_EvtDispatcher::registr(IPA_DOWNSTREAM_ADD, wl); IPACM_EvtDispatcher::registr(IPA_DOWNSTREAM_DEL, wl); + IPACM_EvtDispatcher::registr(IPA_SSR_NOTICE, wl); #endif #else IPACM_EvtDispatcher::registr(IPA_HANDLE_WAN_UP, wl); @@ -449,6 +450,9 @@ int IPACM_IfaceManager::create_iface_instance(ipacm_ifacemgr_data *param) #ifndef FEATURE_IPA_ANDROID IPACM_EvtDispatcher::registr(IPA_WLAN_SWITCH_TO_SCC, w); IPACM_EvtDispatcher::registr(IPA_WLAN_SWITCH_TO_MCC, w); +#ifdef FEATURE_IPACM_HAL + IPACM_EvtDispatcher::registr(IPA_SSR_NOTICE, w); +#endif #endif } else |