diff options
author | Mohammed Javid <mjavid@codeaurora.org> | 2018-05-10 15:11:17 +0530 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2018-05-17 12:41:14 -0700 |
commit | a7672c1e375d1119b363bf2ae3eb38e1ee0bbcfe (patch) | |
tree | 540b90ed71c67441dc9a6e20381bdc44a1e6e6d0 | |
parent | 0c86c05bdb83da5252807a1ea639cb6a9bef6141 (diff) | |
download | ipacfg-mgr-a7672c1e375d1119b363bf2ae3eb38e1ee0bbcfe.tar.gz |
ipacm: ignore iff_flags change for rmnet_data
For rmnet_data interfaces we expect only the IFF_UP flag to change.
Make a change to ignore any other flags.
Change-Id: I351fdfc98129965bdd81d4ae7aaf638995200080
-rw-r--r-- | ipacm/src/IPACM_Netlink.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/ipacm/src/IPACM_Netlink.cpp b/ipacm/src/IPACM_Netlink.cpp index e2ecd50..9c35497 100644 --- a/ipacm/src/IPACM_Netlink.cpp +++ b/ipacm/src/IPACM_Netlink.cpp @@ -710,7 +710,13 @@ static int ipa_nl_decode_nlmsg IPACMERR("Error while getting interface name\n"); return IPACM_FAILURE; } - IPACMDBG("Got a usb link_up event (Interface %s, %d) \n", dev_name, msg_ptr->nl_link_info.metainfo.ifi_index); + IPACMDBG_H("Got a usb link_up event (Interface %s, %d) \n", dev_name, msg_ptr->nl_link_info.metainfo.ifi_index); + /* We don't expect change in iff_flags for rmnet_data interfaces. */ + if (!strncmp(dev_name,"rmnet_data",strlen("rmnet_data"))) + { + IPACMERR("Don't expect iff_flags change for rmnet_data interface. IGNORE\n"); + return IPACM_FAILURE; + } /*-------------------------------------------------------------------------- Post LAN iface (ECM) link up event |