From 25ee316744f6ea31693aae97cbd07b196c740a90 Mon Sep 17 00:00:00 2001 From: Keyur Parekh Date: Fri, 8 Feb 2019 23:01:39 -0800 Subject: [PATCH] qcacmn: Modify HE GI enum values and populate ldpc for HE In PPDU Rx stats GI value for HE displaying wrong, because of wrong enum values. Corrected enum values to match GI values to Tx stats. Also LDPC shows always 0 in PPDU Rx stats for HE. Populated LDPC value for HE case as well to display in PPDU Rx stats. Change-Id: I6054d3e8c8e8672bcc2d43daa8a6e2a1bc859985 --- hal/wifi3.0/hal_api_mon.h | 8 ++++---- hal/wifi3.0/hal_generic_api.h | 2 ++ 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/hal/wifi3.0/hal_api_mon.h b/hal/wifi3.0/hal_api_mon.h index 9ca15af8886d..42662f0c7c6d 100644 --- a/hal/wifi3.0/hal_api_mon.h +++ b/hal/wifi3.0/hal_api_mon.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017-2018 The Linux Foundation. All rights reserved. + * Copyright (c) 2017-2019 The Linux Foundation. All rights reserved. * * Permission to use, copy, modify, and/or distribute this software for * any purpose with or without fee is hereby granted, provided that the @@ -119,9 +119,9 @@ #define HAL_LEGACY_MCS7 7 #define HE_GI_0_8 0 -#define HE_GI_1_6 1 -#define HE_GI_3_2 2 -#define HE_GI_0_4 3 +#define HE_GI_0_4 1 +#define HE_GI_1_6 2 +#define HE_GI_3_2 3 #define HT_SGI_PRESENT 0x80 diff --git a/hal/wifi3.0/hal_generic_api.h b/hal/wifi3.0/hal_generic_api.h index c7bcf2e82dfb..3363d3fdbe10 100644 --- a/hal/wifi3.0/hal_generic_api.h +++ b/hal/wifi3.0/hal_generic_api.h @@ -679,6 +679,8 @@ hal_rx_status_get_tlv_info_generic(void *rx_tlv_hdr, void *ppduinfo, ppdu_info->rx_status.he_data3 |= value; value = HAL_RX_GET(he_sig_a_su_info, HE_SIG_A_SU_INFO_1, CODING); + ppdu_info->rx_status.ldpc = (value == HAL_SU_MU_CODING_LDPC) ? + 1 : 0; value = value << QDF_MON_STATUS_CODING_SHIFT; ppdu_info->rx_status.he_data3 |= value; value = HAL_RX_GET(he_sig_a_su_info,