ofono: Only register network when APN is set
authorJussi Kukkonen <jussi.kukkonen@intel.com>
Fri, 20 Apr 2012 13:54:21 +0000 (15:54 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Fri, 20 Apr 2012 14:03:54 +0000 (16:03 +0200)
commit209127678cedcc8bc52a4cc547fed95f07120a64
treef55009c111a0741f4a08d9645dc97d0f1246c6e5
parent339bb964398c427feb93ff6444010324e74901b7
ofono: Only register network when APN is set

Empty AccessPointName in a oFono internet context means it cannot
be activated: Don't create networks in this situation.

The conditions for adding a network are then
 a) modem supports NetworkRegistration
 b) modem has a context with a valid APN

Fixes BMC#24959
plugins/ofono.c