Browse Source

qcacmn: Increase max value of unit test arguments to 100

Increase the maximum value of unit test arguments to 100 to include
support DL OFDMA RU allocations for testing / debug.

Change-Id: I33ed8d53931e33cc00069653ea38b543339203c0
CRs-Fixed: 2175616
Shaakir Mohamed 7 years ago
parent
commit
a8489d50b9
2 changed files with 4 additions and 4 deletions
  1. 2 2
      wmi/inc/wmi_unified_param.h
  2. 2 2
      wmi/src/wmi_unified_tlv.c

+ 2 - 2
wmi/inc/wmi_unified_param.h

@@ -51,7 +51,7 @@
 #define WMI_SMPS_MASK_LOWER_16BITS 0xFF
 #define WMI_SMPS_MASK_UPPER_3BITS 0x7
 #define WMI_SMPS_PARAM_VALUE_S 29
-#define WMI_MAX_NUM_ARGS 8
+#define WMI_UNIT_TEST_MAX_NUM_ARGS 100
 /* The size of the utc time in bytes. */
 #define WMI_SIZE_UTC_TIME (10)
 /* The size of the utc time error in bytes. */
@@ -3576,7 +3576,7 @@ struct wmi_unit_test_cmd {
 	uint32_t module_id;
 	uint32_t num_args;
 	uint32_t diag_token;
-	uint32_t args[WMI_MAX_NUM_ARGS];
+	uint32_t args[WMI_UNIT_TEST_MAX_NUM_ARGS];
 };
 
 /**

+ 2 - 2
wmi/src/wmi_unified_tlv.c

@@ -15678,7 +15678,7 @@ static QDF_STATUS send_unit_test_cmd_tlv(wmi_unified_t wmi_handle,
 	WMI_LOGI("%s: MODULE ID: %d\n", __func__, cmd->module_id);
 	WMI_LOGI("%s: TOKEN: %d\n", __func__, cmd->diag_token);
 	WMI_LOGI("%s: %d num of args = ", __func__, wmi_utest->num_args);
-	for (i = 0; (i < wmi_utest->num_args && i < WMI_MAX_NUM_ARGS); i++) {
+	for (i = 0; (i < wmi_utest->num_args && i < WMI_UNIT_TEST_MAX_NUM_ARGS); i++) {
 		unit_test_cmd_args[i] = wmi_utest->args[i];
 		WMI_LOGI("%d,", wmi_utest->args[i]);
 	}
@@ -16558,7 +16558,7 @@ static QDF_STATUS send_power_dbg_cmd_tlv(wmi_unified_t wmi_handle,
 		       (param->num_args * sizeof(uint32_t)));
 	cmd_args = (uint32_t *) (buf_ptr + WMI_TLV_HDR_SIZE);
 	WMI_LOGI("%s: %d num of args = ", __func__, param->num_args);
-	for (i = 0; (i < param->num_args && i < WMI_MAX_NUM_ARGS); i++) {
+	for (i = 0; (i < param->num_args && i < WMI_UNIT_TEST_MAX_NUM_ARGS); i++) {
 		cmd_args[i] = param->args[i];
 		WMI_LOGI("%d,", param->args[i]);
 	}