Forráskód Böngészése

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
Keyur Parekh 6 éve
szülő
commit
25ee316744
2 módosított fájl, 6 hozzáadás és 4 törlés
  1. 4 4
      hal/wifi3.0/hal_api_mon.h
  2. 2 0
      hal/wifi3.0/hal_generic_api.h

+ 4 - 4
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
 

+ 2 - 0
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,