iwlwifi: don't WARN when calling iwl_get_shared_mem_conf with RF-Kill
authorEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Wed, 22 May 2019 09:17:09 +0000 (12:17 +0300)
committerLuca Coelho <luciano.coelho@intel.com>
Sat, 29 Jun 2019 07:14:40 +0000 (10:14 +0300)
commit0d53cfd0cca3c729a089c39eef0e7d8ae7662974
treecd7864c06b6b181a52ebb0aa450681086855034b
parent3b57a10ca14c619707398dc58fe5ece18c95b20b
iwlwifi: don't WARN when calling iwl_get_shared_mem_conf with RF-Kill

iwl_mvm_send_cmd returns 0 when the command won't be sent
because RF-Kill is asserted. Do the same when we call
iwl_get_shared_mem_conf since it is not sent through
iwl_mvm_send_cmd but directly calls the transport layer.

Cc: stable@vger.kernel.org
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/fw/smem.c