]> www.infradead.org Git - users/jedix/linux-maple.git/commit
wifi: iwlwifi: mvm: don't send an ROC command with max_delay = 0
authorEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Wed, 3 Jul 2024 03:43:17 +0000 (06:43 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 4 Jul 2024 11:49:17 +0000 (13:49 +0200)
commit187accaa328dc4de98064eef176841b8a4716f96
tree9f5a1e477cbd2e415182e8f3635c4558b8d765dc
parent4278d88fedcfde1b91a5cfa96acb0e06d7742e12
wifi: iwlwifi: mvm: don't send an ROC command with max_delay = 0

The firmware can't handle that (it will crash with ASSERT 300A).
This happened because we looked at vif->bss_conf which is not
the right bss_conf to look at in case of an MLD connection.
Fix iwl_mvm_roc_duration_and_delay to iterate on the active links to
get the right value for the dtim_interval.

Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
Reviewed-by: Johannes Berg <johannes.berg@intel.com>
Link: https://patch.msgid.link/20240703064027.e12f8d84c8fd.I3dd9f720c678c06ec7a5bf7ca56e21cf0b614c8c@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/time-event.c