From a78f35577e0b82806276f0608670feba45093dee Mon Sep 17 00:00:00 2001 From: nobelj Date: Wed, 17 Jan 2018 14:12:07 -0800 Subject: [PATCH] qcacmn: Add support for sending bigger chunk CTL table bin file removing Length check temporarily as existing length check is not applicable for HK. In HK, CTL bin file size for 5G is 26556 bytes and for 2G is 5852 bytes. 1.7K is the maximum payload size supported by TLV. To support, we add header info: seq, endflag, total_len before each chunks. Total bin files are transferred as multiple chunks with header info on the top. Change-Id: I7aedf85d6ee66a99cb4b6dca464dbe02caec371b --- wmi/src/wmi_unified_tlv.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/wmi/src/wmi_unified_tlv.c b/wmi/src/wmi_unified_tlv.c index dcc2651db47b..d737ab56b829 100644 --- a/wmi/src/wmi_unified_tlv.c +++ b/wmi/src/wmi_unified_tlv.c @@ -11012,13 +11012,6 @@ send_set_ctl_table_cmd_tlv(wmi_unified_t wmi_handle, if (!param->ctl_array) return QDF_STATUS_E_FAILURE; - if (param->ctl_cmd_len != - WMI_HOST_NUM_CTLS_2G * WMI_HOST_NUM_BAND_EDGES_2G * 2 + - WMI_HOST_NUM_CTLS_5G * WMI_HOST_NUM_BAND_EDGES_5G * 2) { - qdf_print("CTL array len not correct\n"); - return QDF_STATUS_E_FAILURE; - } - ctl_tlv_len = WMI_TLV_HDR_SIZE + roundup(param->ctl_cmd_len, sizeof(A_UINT32)); len = sizeof(*cmd) + ctl_tlv_len;