iwlwifi: mvm: don't send RFH_QUEUE_CONFIG_CMD with no queues
authorLuca Coelho <luciano.coelho@intel.com>
Thu, 8 Oct 2020 15:09:43 +0000 (18:09 +0300)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 8 Oct 2020 17:09:32 +0000 (20:09 +0300)
commit64f55156f7adedb1ac5bb9cdbcbc9ac05ff5a724
treefe73f6c872065688754f48d481de17ecb63c4936
parent43dc85b5ec5485e0364483a073cf8d6c9250ff4d
iwlwifi: mvm: don't send RFH_QUEUE_CONFIG_CMD with no queues

If we have only a single RX queue, such as when MSI-X is not
available, we should not send the RFH_QUEUEU_CONFIG_CMD, because our
only queue is the same as the command queue and will be configured as
part of the context info.  Our code was actually trying to send the
command with 0 queues, which caused UMAC assert 0x1D04.

Fix that by not sending the command when we have a single queue.

Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/iwlwifi.20201008180656.c35eeb3299f8.I08f79a6ebe150a7d180b7005b24504bfdba6d8b5@changeid
drivers/net/wireless/intel/iwlwifi/mvm/fw.c