[ofono-autoconnect PATCH 0/7]

Pekka.Pessi at nokia.com Pekka.Pessi at nokia.com
Mon Jan 24 09:55:33 PST 2011


From: Pekka Pessi <Pekka.Pessi at nokia.com>

Hi all,

Here are the ofono-autoconnect patches, with fixes suggested by Marcel.

I've also added some proactive error checking in ofono plugin, the ofono
check the modem state before trying to activating the connection.

Currently ofono plugin removes the gprs connections / cellular
services when the modem detaches itself from the network. The cellular
connections are added back when modem attaches.

The intention is to clear the errors and make ConnMan to retry
autoconnect services.

In the patches below I introduce connman_network_clear_error() which
basically resets the failed state of the corresponding service and
triggers autoconnect if needed.

I try also make the autoconnect feature more robust. Reconnect flag is
now persistent (when loading a service, it gets set if favorite has been
set). The patch "Mark service as failed if connect fails" allows
autoconnect to continue even if some autoconnect service behaves badly.

--Pekka

Pekka Pessi (7):
  include: declare connman_network_clear_error()
  Add connman_network_clear_error()
  Set reconnect when loading a favorite service
  ofono: retry autoconnect when gprs gets attached
  Mark service as failed if connect fails
  ofono: be proactive when connecting
  ofono: be proactive with registration status

 include/network.h |    1 +
 plugins/ofono.c   |  215 ++++++++++++++++++++++++++++++++++++++++++-----------
 src/connman.h     |    1 +
 src/network.c     |   16 ++++
 src/service.c     |   84 ++++++++++++++++-----
 5 files changed, 256 insertions(+), 61 deletions(-)




More information about the connman mailing list