]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
wifi: ath12k: Fix NSS value update in ext_rx_stats
authorThiraviyam Mariyappan <thiraviyam.mariyappan@oss.qualcomm.com>
Tue, 7 Oct 2025 13:33:32 +0000 (19:03 +0530)
committerJeff Johnson <jeff.johnson@oss.qualcomm.com>
Wed, 15 Oct 2025 23:37:54 +0000 (16:37 -0700)
commitb94f523cc5a19108ff4687a4bce9e5d484f0f9c5
tree5b98f94d7085f29bd2d838764ff743c2cba82877
parent6917e268c4338ceb5916c8695423597ed8c8b38e
wifi: ath12k: Fix NSS value update in ext_rx_stats

Currently, in ext_rx_stats, the NSS value is taken directly from
the firmware, which results in incorrect mapping:
        4x4, 3x3, 2x2, 1x1 SS are incorrectly updated as 3x3, 2x2,
1x1, 0x0 SS respectively.

Fix the issue by incrementing the NSS value by 1 while updating
the PPDU info to ensure accurate spatial stream statistics.

Remove the redundant +1 increment in the radiotap header when monitor
mode is enabled to prevent double counting.

Tested-on: QCN9274 hw2.0 PCI WLAN.WBE.1.5-01651-QCAHKSWPL_SILICONZ-1

Signed-off-by: Thiraviyam Mariyappan <thiraviyam.mariyappan@oss.qualcomm.com>
Reviewed-by: Vasanthakumar Thiagarajan <vasanthakumar.thiagarajan@oss.qualcomm.com>
Link: https://patch.msgid.link/20251007133332.1092178-1-thiraviyam.mariyappan@oss.qualcomm.com
Signed-off-by: Jeff Johnson <jeff.johnson@oss.qualcomm.com>
drivers/net/wireless/ath/ath12k/dp_mon.c