]> www.infradead.org Git - nvme.git/commit
wifi: iwlwifi: mvm: avoid link lookup in statistics
authorJohannes Berg <johannes.berg@intel.com>
Wed, 3 Jul 2024 03:43:14 +0000 (06:43 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 3 Jul 2024 14:06:05 +0000 (16:06 +0200)
commit28e02bc9f412c3344b0e1f0c657dc6305ac75b4c
treefd65f9a4e1c11e9626d1a6cf9b4273a03c57bed0
parente715c9302b1c6fae990b9898a80fac855549d1f0
wifi: iwlwifi: mvm: avoid link lookup in statistics

We already iterate the link bss_conf/link_info and have the
pointer, or know that deflink/bss_conf is used, so avoid an
extra lookup and just pass the pointer. This may also avoid
a crash when this is processed during restart, where the FW
to link conf array (link_id_to_link_conf) may be NULLed out.

Fixes: c1e458b987f2 ("wifi: iwlwifi: mvm: Move beacon filtering to be per link")
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Reviewed-by: Ilan Peer <ilan.peer@intel.com>
Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
Link: https://patch.msgid.link/20240703064026.346a6ef67a86.Iba5d65d728ca9f58518c88d029496c1250670544@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/rx.c