From: Johannes Berg Date: Sun, 29 Dec 2024 14:44:41 +0000 (+0200) Subject: wifi: iwlwifi: mvm: fix AP STA comparison X-Git-Tag: v6.14-rc1~162^2~20^2~73 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=16b2092c4b26ddc266bf23f1d1c46cd032355b69;p=thirdparty%2Flinux.git wifi: iwlwifi: mvm: fix AP STA comparison This should be comparing the AP STA, not the deflink firmware STA ID. Correct the implementation so that statistics can be requested for the AP, but not for other stations that may end up with the firmware STA ID matching 0 in the deflink, or so. Signed-off-by: Johannes Berg Reviewed-by: Emmanuel Grumbach Signed-off-by: Miri Korenblit Link: https://patch.msgid.link/20241229164246.08b05aca37cf.Iba1a6a637a758691f710dc4f3f03bd1d960fb087@changeid Signed-off-by: Johannes Berg --- diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c b/drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c index 8da3616c9aeb4..5341e4ff5173a 100644 --- a/drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c +++ b/drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c @@ -6255,7 +6255,7 @@ void iwl_mvm_mac_sta_statistics(struct ieee80211_hw *hw, guard(mvm)(mvm); - if (mvmvif->deflink.ap_sta_id != mvmsta->deflink.sta_id) + if (sta != mvmvif->ap_sta) return; if (iwl_mvm_request_statistics(mvm, false))