technology: Do not presume a technology being hardblocked when created
authorTomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
Thu, 25 Oct 2012 07:54:57 +0000 (10:54 +0300)
committerPatrik Flykt <patrik.flykt@linux.intel.com>
Thu, 25 Oct 2012 13:18:30 +0000 (16:18 +0300)
commit8ef63a778b0bef3e67c9d6e4cd22ea4061f8be64
tree1a8eaa6dfa474769b0278baf507a272b760bff1d
parent08efe8080a1ba9982dc40446ebacc68bfb668041
technology: Do not presume a technology being hardblocked when created

This fixes an issue with the TechnologyAdded signal when the first
un-hardblock event occurs:
- when a technology was created, D-Bus registration was done and hardblock
  was set to TRUE even if there was no evidence that the technology was
  rfkill driven
- when the technology was updated to be rfkill driven, hardblock was already
  set to TRUE and thus the technology was not unregistered
- when an rfkill event un-hardblocks the technology, the TechnologyAdded
  signal was not sent since the technology was already registered to D-Bus
src/technology.c