iwlwifi: move RF/CT kill check to command wrapper
authorJohannes Berg <johannes.berg@intel.com>
Tue, 6 Mar 2012 21:30:40 +0000 (13:30 -0800)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 7 Mar 2012 18:51:49 +0000 (13:51 -0500)
commit721c32f72d8007dc0148ee88c046a4ade794a7b7
tree1914738c9506d958b75c3823702b4f77b858e248
parente10a0533a9172471b52bd9512838d766420a3baf
iwlwifi: move RF/CT kill check to command wrapper

Currently, we cannot send any commands when the
uCode is in RF or CT kill, but that will not be
true for all new uCode versions, so we need to
move the check into the uCode specific code.

Also remove the duplicate rfkill check.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/iwlwifi/iwl-agn-lib.c
drivers/net/wireless/iwlwifi/iwl-trans-pcie-tx.c