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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 26 Jul 2019 07:14:22 +0000 (09:14 +0200)
commita32e2ceca0efd2dc5647debc0aaf1b37dc410a62
tree9376d756071fa8ee634d80f90142a9d6e622eb36
parentd9ce0788da91dc8a1afa00695462cd88b1987078
iwlwifi: don't WARN when calling iwl_get_shared_mem_conf with RF-Kill

commit 0d53cfd0cca3c729a089c39eef0e7d8ae7662974 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/wireless/intel/iwlwifi/fw/smem.c