technology: Handle harblock if all of them have identical type
authorTomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
Tue, 2 Oct 2012 09:27:11 +0000 (12:27 +0300)
committerPatrik Flykt <patrik.flykt@linux.intel.com>
Wed, 3 Oct 2012 10:18:26 +0000 (13:18 +0300)
commitc57192242574cb314883c4837af0823aca6d435f
tree9e8a9b90be1bc633707ad18dd6ad01bd8920041c
parent2e592053410a01d4aa99366f81b8fc783ab03efb
technology: Handle harblock if all of them have identical type

On some hardware, there exist two rfkill entities for the same type
with a cascading issue: if one is soft blocked, the other one is
hardblocked. But if the hardblock switch is set, all are hardblocked.
This patch figures out that a technology is hardblocked only if all
related rkill events get the same hardblock value.
src/technology.c