GPRS support for Ofono

Marcel Holtmann marcel at holtmann.org
Thu Dec 10 08:01:40 PST 2009


Hi Remi,

> >> > there has to be a mapping on some level. At least one driver has to do
> >> > some sort of mapping. If you have a better idea to handle it in the
> >> > core daemon, please propose something.
> >>
> >> Of course we have context ID. But we cannot manage them ourselves - the
> >> modem does it.
> > 
> > I did understand that part. What is your proposal to handle this better?
> > 
> > Problem is I don't know how the PDP context setup flow works in ISI and
> > so I would be wild guessing until you propose something.
> 
> It goes like this:
> 
> 1. Allocate context ID from the modem.
> 2. Configure context.
> 3. Authenticate. 
> 4. Setup local link.
> 5. Activate context.
> 6. Profit.
> 7. Deactivate context.
> 8. Tear down local link.
> 9. Delete context ID.

doesn't sound like a big problem to me at all. I think there are
multiple ways to solve this and make it simple for all drivers to
provide their own method of allocating context IDs.

One approach might be to add a callback to ofono_grps_context_driver to
allocate the context ID. If present then the modem driver is responsible
to allocate them. If not then the core will do it for you.

Essentially a way of overwriting gprs_cid_alloc() from within a driver.

Regards

Marcel




More information about the ofono mailing list