diff options
author | Antara Borwankar <antara.borwankar@intel.com> | 2019-02-12 17:21:35 +0530 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2019-02-13 08:33:58 -0600 |
commit | fae77b52c602f45b891d92c48888c665d1282c42 (patch) | |
tree | 8badce0edc574aed9514136bcfa6d2f1f5152340 /plugins/udevng.c | |
parent | 13c0e25eb22111ffa6af44d41c3d8d388538fdfb (diff) | |
download | ofono-fae77b52c602f45b891d92c48888c665d1282c42.tar.gz |
udevng: Detect multiple network interfaces for xmm7xxx
Diffstat (limited to 'plugins/udevng.c')
-rw-r--r-- | plugins/udevng.c | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/plugins/udevng.c b/plugins/udevng.c index ff6e1fc8..ce8cdee1 100644 --- a/plugins/udevng.c +++ b/plugins/udevng.c @@ -1179,7 +1179,7 @@ static gboolean setup_gemalto(struct modem_info* modem) static gboolean setup_xmm7xxx(struct modem_info *modem) { - const char *mdm = NULL, *net = NULL; + const char *mdm = NULL, *net = NULL, *net2 = NULL, *net3 = NULL; GSList *list; DBG("%s %s\n", __DATE__, __TIME__); @@ -1200,6 +1200,10 @@ static gboolean setup_xmm7xxx(struct modem_info *modem) } else if (g_strcmp0(info->subsystem, "net") == 0) { if (g_strcmp0(info->number, "06") == 0) net = info->devnode; + if (g_strcmp0(info->number, "08") == 0) + net2 = info->devnode; + if (g_strcmp0(info->number, "0a") == 0) + net3 = info->devnode; } } else { if (g_strcmp0(info->subsystem, "tty") == 0) { @@ -1220,6 +1224,15 @@ static gboolean setup_xmm7xxx(struct modem_info *modem) ofono_modem_set_string(modem->modem, "Modem", mdm); ofono_modem_set_string(modem->modem, "NetworkInterface", net); + if (net2) + ofono_modem_set_string(modem->modem, "NetworkInterface2", net2); + + if (net3) + ofono_modem_set_string(modem->modem, "NetworkInterface3", net3); + + ofono_modem_set_string(modem->modem, "CtrlPath", "/USBCDC/0"); + ofono_modem_set_string(modem->modem, "DataPath", "/USBHS/NCM/"); + return TRUE; } |