summaryrefslogtreecommitdiff
path: root/ipacm
diff options
context:
space:
mode:
authorPooja Kumari <kumarip@codeaurora.org>2020-08-19 13:29:26 +0530
committerGerrit - the friendly Code Review server <code-review@localhost>2020-08-26 01:03:41 -0700
commitbcdbbcfa0bb1fed621ad997e8e6cfaa2e5f1b50a (patch)
treea0bf3682d0216382ef9731beaaba63afa2dafd27 /ipacm
parent310e275fb2bd07777543b453fffa169a1f78aa81 (diff)
downloadipacfg-mgr-bcdbbcfa0bb1fed621ad997e8e6cfaa2e5f1b50a.tar.gz
ipacm: delete WAN iface if rx tx property is NULL
Delete Wan iface instance if rx tx property of the interface is NULL. Change-Id: Ib0ab2619fd5ae3596558007ab2d44a601fa73093
Diffstat (limited to 'ipacm')
-rw-r--r--ipacm/src/IPACM_IfaceManager.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/ipacm/src/IPACM_IfaceManager.cpp b/ipacm/src/IPACM_IfaceManager.cpp
index 2857f39..7ba5a80 100644
--- a/ipacm/src/IPACM_IfaceManager.cpp
+++ b/ipacm/src/IPACM_IfaceManager.cpp
@@ -450,6 +450,12 @@ int IPACM_IfaceManager::create_iface_instance(ipacm_ifacemgr_data *param)
else
{
w = new IPACM_Wan(ipa_interface_index, is_sta_mode, NULL);
+ if (w->rx_prop == NULL && w->tx_prop == NULL)
+ {
+ /* close the netdev instance if IPA not support*/
+ w->delete_iface();
+ return IPACM_FAILURE;
+ }
}
IPACM_EvtDispatcher::registr(IPA_ADDR_ADD_EVENT, w);
#ifdef FEATURE_IPA_ANDROID