iwlwifi: don't return -ERFKILL if SEND_IF_RFKILL is set
authorEran Harary <eran.harary@intel.com>
Sun, 2 Jun 2013 09:40:34 +0000 (12:40 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 4 Jun 2013 11:14:46 +0000 (13:14 +0200)
commit1094fa2646385a3bdbcdac5f2f270836d998b255
tree36bd5412dd4278c749cf663fea772d9daa62f3e9
parent36946ce69abe8b5c7043708f832ca179dd6e4f64
iwlwifi: don't return -ERFKILL if SEND_IF_RFKILL is set

When CMD_SEND_IN_RFKILL is set, it is perfectly legitimate
to send a host command while RFKILL is asserted. In this
case, the host command sending functions should return 0
even if RFKILL is asserted.

Signed-off-by: Eran Harary <eran.harary@intel.com>
Reviewed-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/iwlwifi/pcie/tx.c