Process RFKILL events after opening device
authorMartin Xu <martin.xu@intel.com>
Tue, 19 Jan 2010 04:34:48 +0000 (12:34 +0800)
committerMarcel Holtmann <marcel@holtmann.org>
Tue, 19 Jan 2010 04:57:42 +0000 (20:57 -0800)
commitcfda513e5e25808537e362dd208716ed80cf6d63
treecfdd25e05d9309de53e92f8d5c1204a7976c213c
parent0935c628cf83b096d72ffba5e53a6d6e8029e7ef
Process RFKILL events after opening device

To avoid the case when RFKILL event happens in the device enable stage,
process the initial events after opening the device. The /dev/rfkill
sends out the current RFKIL states after open(). This fixes a race
condition between device enabling and initial RFKILL states.
src/rfkill.c