Content-Type: multipart/mixed; boundary="===============8780373686405104314==" MIME-Version: 1.0 From: Denis Kenzior Subject: Re: [PATCH 1/2] xmm7modem: Change in xmm7mode plugin for multi PDP handling Date: Thu, 31 Jan 2019 12:45:19 -0600 Message-ID: <8797a9c8-58ed-6107-5407-3568425526d1@gmail.com> In-Reply-To: <1548915527-4815-1-git-send-email-antara.borwankar@intel.com> List-Id: To: ofono@ofono.org --===============8780373686405104314== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Hi Antara, On 01/31/2019 12:18 AM, Antara Borwankar wrote: > 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 *mo= dem) > = > 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/"); These seem hard-coded. What happens if you plug in multiple XMM7xxx usb = modems into a system? > = > 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 =3D ofono_gprs_context_create(modem, OFONO_VENDOR_XMM, "ifxmodem", > + data->chat); > + > + if (gprs && gc) > + ofono_gprs_add_context(gprs, gc); > + > + gc =3D ofono_gprs_context_create(modem, OFONO_VENDOR_XMM, "ifxmodem", > + data->chat); > + > + if (gprs && gc) > + ofono_gprs_add_context(gprs, gc); > + Okay, but how does a context driver know which interface to use? For = ifxmodem we used a different DLC for each context driver for example. = It is unclear how things would work under your setup? > ofono_ims_create(modem, "xmm7modem", data->chat); > ofono_netmon_create(modem, 0, "xmm7modem", data->chat); > } > = Regards, -Denis --===============8780373686405104314==--