Skip to content

Commit 2f0c9ac

Browse files
Pradeep Kumar Chitrapukvalo
authored andcommitted
wifi: ath11k: Fix incorrect update of radiotap fields
Fix incorrect update of ppdu stats causing incorrect radiotap fields. Tested-on: QCN9074 hw1.0 PCI WLAN.HK.2.7.0.1-01744-QCAHKSWPL_SILICONZ-1 Signed-off-by: Pradeep Kumar Chitrapu <quic_pradeepc@quicinc.com> Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com> Link: https://lore.kernel.org/r/20230403195738.25367-3-quic_pradeepc@quicinc.com
1 parent 6257c70 commit 2f0c9ac

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

drivers/net/wireless/ath/ath11k/hal_rx.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1029,7 +1029,7 @@ ath11k_hal_rx_parse_mon_status_tlv(struct ath11k_base *ab,
10291029
info1 = __le32_to_cpu(vht_sig->info1);
10301030

10311031
ppdu_info->ldpc = FIELD_GET(HAL_RX_VHT_SIG_A_INFO_INFO1_SU_MU_CODING,
1032-
info0);
1032+
info1);
10331033
ppdu_info->mcs = FIELD_GET(HAL_RX_VHT_SIG_A_INFO_INFO1_MCS,
10341034
info1);
10351035
gi_setting = FIELD_GET(HAL_RX_VHT_SIG_A_INFO_INFO1_GI_SETTING,
@@ -1452,7 +1452,7 @@ ath11k_hal_rx_parse_mon_status_tlv(struct ath11k_base *ab,
14521452
* PHYRX_OTHER_RECEIVE_INFO TLV.
14531453
*/
14541454
ppdu_info->rssi_comb =
1455-
FIELD_GET(HAL_RX_PHYRX_RSSI_LEGACY_INFO_INFO1_RSSI_COMB,
1455+
FIELD_GET(HAL_RX_PHYRX_RSSI_LEGACY_INFO_INFO0_RSSI_COMB,
14561456
__le32_to_cpu(rssi->info0));
14571457

14581458
if (db2dbm) {

drivers/net/wireless/ath/ath11k/hal_rx.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ struct hal_rx_he_sig_b2_ofdma_info {
385385
__le32 info0;
386386
} __packed;
387387

388-
#define HAL_RX_PHYRX_RSSI_LEGACY_INFO_INFO1_RSSI_COMB GENMASK(15, 8)
388+
#define HAL_RX_PHYRX_RSSI_LEGACY_INFO_INFO0_RSSI_COMB GENMASK(15, 8)
389389

390390
#define HAL_RX_PHYRX_RSSI_PREAMBLE_PRI20 GENMASK(7, 0)
391391

0 commit comments

Comments
 (0)