bianbu-linux-6.6/drivers/net/wireless/intel/iwlwifi/fw/api
Johannes Berg e5b72e3bc4 iwlwifi: mvm: limit maximum queue appropriately
Due to some hardware issues, queue 31 isn't usable on devices that have
32 queues (7000, 8000, 9000 families), which is correctly reflected in
the configuration and TX queue initialization.

However, the firmware API and queue allocation code assumes that there
are 32 queues, and if something actually attempts to use #31 this leads
to a NULL-pointer dereference since it's not allocated.

Fix this by limiting to 31 in the IWL_MVM_DQA_MAX_DATA_QUEUE, and also
add some code to catch this earlier in the future, if the configuration
changes perhaps.

Cc: stable@vger.kernel.org # v4.9+
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/iwlwifi.20200417100405.98a79be2db6a.I3a4af6b03b87a6bc18db9b1ff9a812f397bee1fc@changeid
2020-04-21 15:39:03 +03:00
..
alive.h iwlwifi: add FW recovery flow 2019-02-14 11:29:45 +02:00
binding.h iwlwifi: mvm: Add new quota command API 2017-10-06 14:57:21 +03:00
cmdhdr.h
coex.h iwlwifi: mvm: support Coex Schema 2 2018-08-31 11:38:30 +03:00
commands.h iwlwifi: mvm: add soc latency support 2020-03-27 08:12:46 +02:00
config.h iwlwifi: remove unused and wrong PHY_CFG_* macros 2018-12-20 09:09:25 +02:00
context.h
d3.h iwlwifi: mvm: add support for new version for D0I3_END_CMD 2019-10-25 10:10:05 +03:00
datapath.h iwlwifi: mvm: implement CSI reporting 2019-01-29 16:10:32 +02:00
dbg-tlv.h iwlwifi: dbg_ini: remove old API and some related code 2019-10-25 10:09:56 +03:00
debug.h iwlwifi: fw api: add DRAM buffer allocation command 2019-09-06 15:52:06 +03:00
filter.h
led.h iwlwifi: mvm: use firmware LED command where applicable 2017-08-09 09:15:32 +03:00
location.h iwlwifi: mvm: add support for non EDCA based measurements 2020-03-27 08:12:49 +02:00
mac-cfg.h iwlwifi: mvm: add notification for missed VAP 2019-10-25 10:10:14 +03:00
mac.h iwlwifi: mvm: Block 26-tone RU OFDMA transmissions 2019-09-06 15:31:11 +03:00
nvm-reg.h iwlwifi: support new NVM response API 2019-03-22 12:59:40 +02:00
offload.h
paging.h iwlwifi: remove host assisted paging 2017-11-03 11:56:08 +02:00
phy-ctxt.h iwlwifi: mvm: Change FW channel info API 2019-01-29 16:10:32 +02:00
phy.h iwlwifi: support per-platform antenna gain 2019-09-06 15:31:20 +03:00
power.h iwlwifi: support per-platform antenna gain 2019-09-06 15:31:20 +03:00
rs.h iwlwifi: mvm: name magic numbers with enum 2019-09-06 15:31:15 +03:00
rx.h iwlwifi: rx: use new api to get band from rx mpdu 2019-10-25 10:10:28 +03:00
scan.h iwlwifi: scan: support FW APIs with variable number of profiles 2020-03-27 08:12:53 +02:00
sf.h
soc.h iwlwifi: add support for version 2 of SOC_CONFIGURATION_CMD 2020-03-27 08:12:49 +02:00
sta.h iwlwifi: FW API: reference enum in docs of modify_mask 2019-11-15 09:34:28 +02:00
stats.h iwlwifi: mvm: fix firmware statistics usage 2019-01-25 20:57:19 +02:00
tdls.h iwlwifi: mvm: Change FW channel info API 2019-01-29 16:10:32 +02:00
time-event.h iwlwifi: mvm: sync the iwl_mvm_session_prot_notif layout 2019-11-15 09:34:30 +02:00
tx.h iwlwifi: mvm: Update BEACON_TEMPLATE_CMD firmware API 2020-01-04 12:41:55 +02:00
txq.h iwlwifi: mvm: limit maximum queue appropriately 2020-04-21 15:39:03 +03:00