|
@@ -2526,6 +2526,7 @@ int q6lsm_get_one_param(struct lsm_client *client,
|
|
|
{
|
|
|
struct param_hdr_v3 param_info;
|
|
|
int rc = 0;
|
|
|
+ bool iid_supported = q6common_is_instance_id_supported();
|
|
|
|
|
|
memset(¶m_info, 0, sizeof(param_info));
|
|
|
|
|
@@ -2534,7 +2535,12 @@ int q6lsm_get_one_param(struct lsm_client *client,
|
|
|
param_info.module_id = p_info->module_id;
|
|
|
param_info.instance_id = p_info->instance_id;
|
|
|
param_info.param_id = p_info->param_id;
|
|
|
- param_info.param_size = p_info->param_size + sizeof(param_info);
|
|
|
+
|
|
|
+ if (iid_supported)
|
|
|
+ param_info.param_size = p_info->param_size + sizeof(struct param_hdr_v3);
|
|
|
+ else
|
|
|
+ param_info.param_size = p_info->param_size + sizeof(struct param_hdr_v2);
|
|
|
+
|
|
|
rc = q6lsm_get_params(client, NULL, ¶m_info);
|
|
|
if (rc) {
|
|
|
pr_err("%s: LSM_GET_CUSTOM_PARAMS failed, rc %d\n",
|