@@ -557,12 +557,10 @@ struct iwl_mvm_stat_data_all_macs {
557
557
};
558
558
559
559
static void iwl_mvm_update_link_sig (struct ieee80211_vif * vif , int sig ,
560
- struct iwl_mvm_vif_link_info * link_info )
560
+ struct iwl_mvm_vif_link_info * link_info ,
561
+ struct ieee80211_bss_conf * bss_conf )
561
562
{
562
563
struct iwl_mvm * mvm = iwl_mvm_vif_from_mac80211 (vif )-> mvm ;
563
- struct ieee80211_bss_conf * bss_conf =
564
- iwl_mvm_rcu_fw_link_id_to_link_conf (mvm , link_info -> fw_link_id ,
565
- false);
566
564
int thold = bss_conf -> cqm_rssi_thold ;
567
565
int hyst = bss_conf -> cqm_rssi_hyst ;
568
566
int last_event ;
@@ -670,7 +668,7 @@ static void iwl_mvm_stat_iterator(void *_data, u8 *mac,
670
668
mvmvif -> deflink .beacon_stats .num_beacons ;
671
669
672
670
/* This is used in pre-MLO API so use deflink */
673
- iwl_mvm_update_link_sig (vif , sig , & mvmvif -> deflink );
671
+ iwl_mvm_update_link_sig (vif , sig , & mvmvif -> deflink , & vif -> bss_conf );
674
672
}
675
673
676
674
static void iwl_mvm_stat_iterator_all_macs (void * _data , u8 * mac ,
@@ -705,7 +703,7 @@ static void iwl_mvm_stat_iterator_all_macs(void *_data, u8 *mac,
705
703
sig = - le32_to_cpu (mac_stats -> beacon_filter_average_energy );
706
704
707
705
/* This is used in pre-MLO API so use deflink */
708
- iwl_mvm_update_link_sig (vif , sig , & mvmvif -> deflink );
706
+ iwl_mvm_update_link_sig (vif , sig , & mvmvif -> deflink , & vif -> bss_conf );
709
707
}
710
708
711
709
static inline void
@@ -921,7 +919,8 @@ iwl_mvm_stat_iterator_all_links(struct iwl_mvm *mvm,
921
919
mvmvif -> link [link_id ]-> beacon_stats .num_beacons ;
922
920
923
921
sig = - le32_to_cpu (link_stats -> beacon_filter_average_energy );
924
- iwl_mvm_update_link_sig (bss_conf -> vif , sig , link_info );
922
+ iwl_mvm_update_link_sig (bss_conf -> vif , sig , link_info ,
923
+ bss_conf );
925
924
926
925
if (WARN_ONCE (mvmvif -> id >= MAC_INDEX_AUX ,
927
926
"invalid mvmvif id: %d" , mvmvif -> id ))
0 commit comments