ofono: Don't set network index when device is removed
authorYu A Wang <arron.wang@intel.com>
Thu, 10 Nov 2011 05:08:34 +0000 (00:08 -0500)
committerSamuel Ortiz <sameo@linux.intel.com>
Fri, 18 Nov 2011 18:46:46 +0000 (19:46 +0100)
commitc87834a20c790b98fd76b02b0daf4f5105604164
treee1336b5829e8e5db9207596af02da758866cb13f
parent705c841667bd4ffefa270e1799cae13acec7e0c5
ofono: Don't set network index when device is removed

A NULL interface means the device is removed so there is no need for
setting the network index as it will eventually be removed.
Setting the network index to -1 prevents wpad or wispr to unreference
the service.

Fixes BMC#23979
plugins/ofono.c