technology: Recompute hardblocked state on rfkill remove event
authorTomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
Mon, 15 Oct 2012 12:35:22 +0000 (15:35 +0300)
committerPatrik Flykt <patrik.flykt@linux.intel.com>
Tue, 16 Oct 2012 12:07:14 +0000 (15:07 +0300)
commitbd3fe70bd9fadaa7bda00079822a8b7b75a76050
tree0f106c5f41519a5554907b66f314cc919518010e
parent47f491badb3abce50e805567974893f1e7af15bc
technology: Recompute hardblocked state on rfkill remove event

This fixes the case of cascading rfkill switches: if enabled, hard rfkilling
such technology might generate contradictory events.

1 - first all switches are hardblocked
2 - then one of these switch (usually: device's switch) gets fully unblocked
3 - then this same switch gets removed

Step 2 is in contradiction with step 1, so we need to care about such switch
getting removed by recomputing the hardblocked state.
src/technology.c