Made changes in xmm7modem plugin to allow mutiple PDP context
activation and to assign correct network interface to the
activated PDP context.
---
 plugins/udevng.c  |  2 ++
 plugins/xmm7xxx.c | 12 ++++++++++++
 2 files changed, 14 insertions(+)

diff --git a/plugins/udevng.c b/plugins/udevng.c
index ff6e1fc..353a7dd 100644
--- a/plugins/udevng.c
+++ b/plugins/udevng.c
@@ -1219,6 +1219,8 @@ static gboolean setup_xmm7xxx(struct modem_info *modem)
 
        ofono_modem_set_string(modem->modem, "Modem", mdm);
        ofono_modem_set_string(modem->modem, "NetworkInterface", net);
+       ofono_modem_set_string(modem->modem, "CtrlPath", "/USBCDC/0");
+       ofono_modem_set_string(modem->modem, "DataPath", "/USBHS/NCM/");
 
        return TRUE;
 }
diff --git a/plugins/xmm7xxx.c b/plugins/xmm7xxx.c
index 237c62c..8b775e0 100644
--- a/plugins/xmm7xxx.c
+++ b/plugins/xmm7xxx.c
@@ -1282,6 +1282,18 @@ static void xmm7xxx_post_online(struct ofono_modem 
*modem)
        if (gprs && gc)
                ofono_gprs_add_context(gprs, gc);
 
+       gc = ofono_gprs_context_create(modem, OFONO_VENDOR_XMM, "ifxmodem",
+                                       data->chat);
+
+       if (gprs && gc)
+               ofono_gprs_add_context(gprs, gc);
+
+       gc = ofono_gprs_context_create(modem, OFONO_VENDOR_XMM, "ifxmodem",
+                                       data->chat);
+
+       if (gprs && gc)
+               ofono_gprs_add_context(gprs, gc);
+
        ofono_ims_create(modem, "xmm7modem", data->chat);
        ofono_netmon_create(modem, 0, "xmm7modem", data->chat);
 }
-- 
1.9.1

_______________________________________________
ofono mailing list
[email protected]
https://lists.ofono.org/mailman/listinfo/ofono

Reply via email to