From a8489d50b9f77ef4dc07e1211f04b0b074d5c777 Mon Sep 17 00:00:00 2001 From: Shaakir Mohamed Date: Fri, 19 Jan 2018 15:49:23 -0800 Subject: [PATCH] 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 --- wmi/inc/wmi_unified_param.h | 4 ++-- wmi/src/wmi_unified_tlv.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/wmi/inc/wmi_unified_param.h b/wmi/inc/wmi_unified_param.h index 9853b554fb1b..aeafeb6f004f 100644 --- a/wmi/inc/wmi_unified_param.h +++ b/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]; }; /** diff --git a/wmi/src/wmi_unified_tlv.c b/wmi/src/wmi_unified_tlv.c index 7e8f19041e6f..3d4ab8f338c6 100644 --- a/wmi/src/wmi_unified_tlv.c +++ b/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]); }