All of lore.kernel.org
 help / color / mirror / Atom feed
* [gprs-provision PATCHv4 0/8] plugin API for provisioning of GPRS context settings
@ 2011-01-18  8:09 Jukka Saunamaki
  2011-01-18  8:09 ` [PATCH 1/8] gprs-provision: add driver API header Jukka Saunamaki
                   ` (7 more replies)
  0 siblings, 8 replies; 13+ messages in thread
From: Jukka Saunamaki @ 2011-01-18  8:09 UTC (permalink / raw)
  To: ofono

[-- Attachment #1: Type: text/plain, Size: 2586 bytes --]

Hello

Here is a new patchset about implementing automatic provisioning of GPRS context settings. ("Internet Access Provider database" TODO item).

Compared to last one, this makes gprs-provision a "pseudo" atom similar to nettime. And possible races caused by a removed gprs-atom, while it is running asyncronous provisioning, should hopefully be fixed now.

Provisioning data for gprs contexts is returned by gprs-provisioning plugins/drivers. Different kind of provisioning modules may be created for different platforms or use cases.
It is up to the module what settings database it uses, and how many, and what type of contexts (with settings) it returns.
Several plugins may be loaded in oFono, and they will be called in priority order until first plugin returns non-empty result.

Provisioning modules are called in case there are no previously configured contexts found during gprs atom registration.
 
These patches add new gprs-provision.[hc] API for provisioning plugins to register into, and __ofono_gprs_provision_get_settings for gprs.c to call when needed.
gprs.c is modified to use provisioning if reading existing context settings fails.

A dummy example provisioning plugin is included. In case it is called when using phonesim with default.xml configuration, the plugin returns dummy settings for two contexts, one type Internet and one type MMS. 

Patches also add new functions ofono_sim_get_mcc/mnc to SIM atom API (typically needed by provisioning plugins).

--Jukka Saunamäki

Jukka Saunamaki (8):
      gprs-provision: add driver API header
      gprs-provision: add new atom type
      gprs-provision: add driver API sources
      gprs-provision: probe gprs_provision drivers
      gprs: add gprs context provisioning
      sim: getters for mcc and mnc definition
      sim: getters for mcc and mnc implementation
      gprs-provision: add example context provisioning driver

 Makefile.am              |    7 +-
 examples/provision.c     |  206 ++++++++++++++++++++++++++++++++++++++++
 include/gprs-provision.h |   80 ++++++++++++++++
 include/sim.h            |    2 +
 src/gprs-provision.c     |  236 ++++++++++++++++++++++++++++++++++++++++++++++
 src/gprs.c               |  147 ++++++++++++++++++++++++++---
 src/modem.c              |    1 +
 src/ofono.h              |    9 ++
 src/sim.c                |   50 ++++++----
 9 files changed, 703 insertions(+), 35 deletions(-)
 create mode 100644 examples/provision.c
 create mode 100644 include/gprs-provision.h
 create mode 100644 src/gprs-provision.c



^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2011-01-19  5:58 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-18  8:09 [gprs-provision PATCHv4 0/8] plugin API for provisioning of GPRS context settings Jukka Saunamaki
2011-01-18  8:09 ` [PATCH 1/8] gprs-provision: add driver API header Jukka Saunamaki
2011-01-18 14:48   ` Marcel Holtmann
2011-01-19  5:58     ` Jukka Saunamaki
2011-01-18  8:09 ` [PATCH 2/8] gprs-provision: add new atom type Jukka Saunamaki
2011-01-18  8:09 ` [PATCH 3/8] gprs-provision: add driver API sources Jukka Saunamaki
2011-01-18 14:55   ` Marcel Holtmann
2011-01-18  8:09 ` [PATCH 4/8] gprs-provision: probe gprs_provision drivers Jukka Saunamaki
2011-01-18  8:09 ` [PATCH 5/8] gprs: add gprs context provisioning Jukka Saunamaki
2011-01-18  8:09 ` [PATCH 6/8] sim: getters for mcc and mnc definition Jukka Saunamaki
2011-01-18  8:09 ` [PATCH 7/8] sim: getters for mcc and mnc implementation Jukka Saunamaki
2011-01-18 14:44   ` Marcel Holtmann
2011-01-18  8:09 ` [PATCH 8/8] gprs-provision: add example context provisioning driver Jukka Saunamaki

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.