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:10:54 +0000 (09:10 +0200)
commitce0b3a3fbb9d612ff3ffd8ee246fd7565838d4cd
tree6571822a9656a8ff186d3e199261373516ab8fe4
parent4c4359b4e264fd9dba5d57361c9e42d5d363b9ef
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