]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
wifi: ath11k: remove peer extra rssi update
authorNicolas Escande <nico.escande@gmail.com>
Fri, 17 Jan 2025 18:19:53 +0000 (19:19 +0100)
committerJeff Johnson <jeff.johnson@oss.qualcomm.com>
Wed, 29 Jan 2025 16:56:34 +0000 (08:56 -0800)
Commit b205ce4c266c ("ath11k: support avg signal in station dump") added an
extra assignment of arsta->rssi_comb in ath11k_dp_rx_update_peer_stats()
when it added the average rssi support. So let's keep only one by removing
the legacy assignment so the two statements about rssi stay next to each
other. Compile tested only.

Signed-off-by: Nicolas Escande <nico.escande@gmail.com>
Reviewed-by: Vasanthakumar Thiagarajan <quic_vthiagar@quicinc.com>
Link: https://patch.msgid.link/20250117181953.3375273-1-nico.escande@gmail.com
Signed-off-by: Jeff Johnson <jeff.johnson@oss.qualcomm.com>
drivers/net/wireless/ath/ath11k/dp_rx.c

index 5e71e5d9ecb7846eca9d9a9545208f7a696c9fdc..640d617a585afcaf55f5cc277fde606c0ac1df7c 100644 (file)
@@ -2822,8 +2822,6 @@ static void ath11k_dp_rx_update_peer_stats(struct ath11k_sta *arsta,
        rx_stats->dcm_count += ppdu_info->dcm;
        rx_stats->ru_alloc_cnt[ppdu_info->ru_alloc] += num_msdu;
 
-       arsta->rssi_comb = ppdu_info->rssi_comb;
-
        BUILD_BUG_ON(ARRAY_SIZE(arsta->chain_signal) >
                             ARRAY_SIZE(ppdu_info->rssi_chain_pri20));