[PATCH] api: allow specifying the PDP CID to use

Aleksander Morgado aleksander at aleksander.es
Mon May 15 15:10:43 UTC 2017


On Mon, May 15, 2017 at 4:57 PM, Dan Williams <dcbw at redhat.com> wrote:
> If we really want to do this for QMI, we need to complicate the setup
> logic.  Maybe we should do it anyway.
>
> But whenever connecting with a pdp-cid, we'd need to WDSGetProfileList,
>  then for each profile we WDSGetProfileSettings for the given profile
> index (which isn't the same as PDP Context ID AFAIK), and look for the
> one with the given "WDS PDP Context Number" (TLV 0x25), and then verify
> the APN.
>
> If the APN doesn't match, we'd probably want to fail the connection.
> I'd rather have that operation fail, and add Create/Modify/Delete
> "Context" objects (eg, EPS or PDP contexts) functions to ModemManager
> than have the connect call overwrite some arbitrary context.  I feel
> like that's a lot clearer from an API perspective.
>

Yes, providing a full API to manage profiles is definitely the way to
go... will go on and start preparing this.

> And of course, I have no idea how we'd handle this with MBIM.  And
> obviously CDMA/3GPP2 devices wouldn't support this since they don't
> really do APNs.

Well, for these we would just not provide any profile management
implementation, and that's it.

-- 
Aleksander
https://aleksander.es


More information about the ModemManager-devel mailing list