From: Emmanuel Grumbach Date: Thu, 25 Oct 2012 15:25:52 +0000 (+0200) Subject: iwlwifi: handle RFKILL logic in the transport layer X-Git-Tag: omap-for-v3.8/fixes-for-merge-window-v4-signed~45^2~17^2~1^2~38 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f946b529502399d09471c5d13845fefbfe8555a6;p=pandora-kernel.git iwlwifi: handle RFKILL logic in the transport layer No HCMD can be sent while RFKILL is asserted. If a SYNC command is running while RFKILL is asserted the fw will silently discard it. This means that the driver needs to wake the process that sleeps on the CMD_SYNC. Since the RFKILL interrupt is handled in the transport layer and the code that sleeps in CMD_SYNC is also in the transport layer, all this logic can be handled there. This simplifies the work of the op_mode. So the transport layer will now return -ERFKILL when a CMD is sent and RFKILL is asserted. This will be the case even when the CMD is SYNC. The transport layer will return -ERFKILL straight away. Signed-off-by: Emmanuel Grumbach Signed-off-by: Johannes Berg --- Reading git-diff-tree failed