]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
wifi: iwlwifi: mvm: ensure offloading TID queue exists
authorBenjamin Berg <benjamin.berg@intel.com>
Sun, 18 Feb 2024 17:51:47 +0000 (19:51 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 21 Feb 2024 13:40:49 +0000 (14:40 +0100)
commit78f65fbf421a61894c14a1b91fe2fb4437b3fe5f
tree8125269426a068e3b6edb782f5d24ec29229dea6
parentf78c1375339a291cba492a70eaf12ec501d28a8e
wifi: iwlwifi: mvm: ensure offloading TID queue exists

The resume code path assumes that the TX queue for the offloading TID
has been configured. At resume time it then tries to sync the write
pointer as it may have been updated by the firmware.

In the unusual event that no packets have been send on TID 0, the queue
will not have been allocated and this causes a crash. Fix this by
ensuring the queue exist at suspend time.

Signed-off-by: Benjamin Berg <benjamin.berg@intel.com>
Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
Link: https://msgid.link/20240218194912.6632e6dc7b35.Ie6e6a7488c9c7d4529f13d48f752b5439d8ac3c4@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/d3.c
drivers/net/wireless/intel/iwlwifi/mvm/sta.c
drivers/net/wireless/intel/iwlwifi/mvm/sta.h