Hi,

Here a version 2 of the previous patchset. Same as the original with a 11th 
patch.

When adding an rfkill, it's no use to recompute the hardblocked state the same 
way
as in an rfkill update. At that point it's mandatory to follow whats the state 
of
each rfkill switch, so if one rfkill switch says it's not hardblocked: the 
technology
is not hardblocked.

Anyway, have been testing it for some days now, seems to work properly.

Please review,

Tomasz Bursztyka (11):
  technology: Refactor how technology is set to enable or disable
  technology: Add a marker to know if a technology is rfkill driven
  technology: Add and handle a marker for softblock status
  technology: Refactor rfkill event handling according to soft/hard
    block
  technology: Refactor and split functions setting enabled state
  technology: Change enabled as a boolean and refactor accordingly
  technology: Use the right method to enable or disable
  device: Add a getter for powered property
  technology: Handle fully and properly rfkill driven state
  technology: Recompute hardblocked state on rfkill remove event
  technology: Compute differently hardblocked state on rfkill add event

 include/device.h |   1 +
 src/device.c     |   5 +
 src/technology.c | 327 +++++++++++++++++++++++++++++++++----------------------
 3 files changed, 201 insertions(+), 132 deletions(-)

-- 
1.7.12

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

Reply via email to