[PATCH] technology: Enable tech if device is already powered

alok barsode alokbarsode at gmail.com
Wed Feb 29 08:14:24 PST 2012

Hi Samuel,

On Wed, Feb 29, 2012 at 3:52 PM, Samuel Ortiz <sameo at linux.intel.com> wrote:

> Hi Alok,
> On Fri, Feb 24, 2012 at 04:17:59PM +0200, Alok Barsode wrote:
> > From: Alok Barsode <alok.barsode at linux.intel.com>
> >
> > connman_technology_add_device() calls __connman_device_enable()
> > but since the device is already enabled, the calls does not propagate
> > through to __connman_technology_enabled via connman_device_set_powered.
> I'm wondering here: Why do we have a device that's apparently been enabled
> without the corresponding technology being left disabled ?
> consider if the device gets enabled before the technology driver is loaded.
After the tech driver is loaded, this device is added to the technology and
is enabled/disabled according to the saved preference of the technology. If
the saved preference is enabled, the device is enabled via
__connman_device_enable(). but since its already enabled, it returns
-EALREADY and connman_device_set_powered() is never called. which in turn
does not call  __connman_technology_enabled().

This issue was reported on the ML some days ago by sameer naik. He is
running connman on a embedded device. attaching his log for reference.

> Samuel.
> --
> Intel Open Source Technology Centre
> http://oss.intel.com/

-------------- next part --------------
A non-text attachment was scrubbed...
Name: connman.log
Type: text/x-log
Size: 65617 bytes
Desc: not available
URL: <http://lists.01.org/pipermail/connman/attachments/20120229/f0f3397b/attachment.log>

More information about the connman mailing list