From: Daniel Wagner <[email protected]>

Hi,

Okay here is my proposal to fix BMC#24432

Here is my resaoning. First thing is that we really want to
power off the modems if we disable the technology. Toggling just Online
is not sufficient because the modem will still drain the battery.

Second, we have chicken-egg situation for techonolgy.c. If there is
no connman_device object registered it wont enable/disable anything.
So we have first to create the connman_device object first but
we cant since there is no unique identifier.
To break this circle I suggest to introduce technogly->enable()/disable().
They will be called allong connman_rfkill_block() (I have only added the 
calls in __connman_technology_enabled()/disabled(), of course this thing
should be at all places where connam_rfkill_block() is called).

The oFono plugin now can power up and down from the from the callback.

cheers,
daniel

Daniel Wagner (4):
  technology: Add enable/disable definition
  technology: Call enable/disable technology drivers
  ofono: Add skeleton tech driver implementation
  ofono: Control Powered through technolgy enabled/disabled

 include/technology.h |    2 +
 plugins/ofono.c      |   76 +++++++++++++++++++++++++++++++++++++++++++++++--
 src/technology.c     |    6 ++++
 3 files changed, 80 insertions(+), 4 deletions(-)

-- 
1.7.8.110.g4cb5d1

_______________________________________________
connman mailing list
[email protected]
http://lists.connman.net/listinfo/connman

Reply via email to