Commit 28e02bc
committed
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: c1e458b ("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>1 parent e715c93 commit 28e02bc
1 file changed
Lines changed: 6 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
557 | 557 | | |
558 | 558 | | |
559 | 559 | | |
560 | | - | |
| 560 | + | |
| 561 | + | |
561 | 562 | | |
562 | 563 | | |
563 | | - | |
564 | | - | |
565 | | - | |
566 | 564 | | |
567 | 565 | | |
568 | 566 | | |
| |||
670 | 668 | | |
671 | 669 | | |
672 | 670 | | |
673 | | - | |
| 671 | + | |
674 | 672 | | |
675 | 673 | | |
676 | 674 | | |
| |||
705 | 703 | | |
706 | 704 | | |
707 | 705 | | |
708 | | - | |
| 706 | + | |
709 | 707 | | |
710 | 708 | | |
711 | 709 | | |
| |||
921 | 919 | | |
922 | 920 | | |
923 | 921 | | |
924 | | - | |
| 922 | + | |
| 923 | + | |
925 | 924 | | |
926 | 925 | | |
927 | 926 | | |
| |||
0 commit comments