qcacld-3.0: Combine process_rate_update set param

Currently wma_process_rate_update_indicate sends
two vdev set params separately to firmware.

Combine two vdev set params of
wma_process_rate_update_indicate,
send to WMI to reduce number of transactions.
Also replace target wmi pdev/vdev params with host wmi
pdev/vdev params to fix existing broken layering
violation.

Change-Id: Icc50569bcc851c5ee269558b80a560b03e1fdcee
CRs-Fixed: 3333758
This commit is contained in:
Divyajyothi Goparaju
2022-08-18 02:02:36 +05:30
committed by Madan Koyyalamudi
parent 5f85944f38
commit c9808c04b6
4 changed files with 39 additions and 26 deletions

View File

@@ -1,5 +1,6 @@
/*
* Copyright (c) 2017-2021 The Linux Foundation. All rights reserved.
* Copyright (c) 2022 Qualcomm Innovation Center, Inc. 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
@@ -62,16 +63,16 @@ QDF_STATUS target_if_pmo_send_vdev_update_param_req(
switch (param_id) {
case pmo_vdev_param_listen_interval:
param_id = WMI_VDEV_PARAM_LISTEN_INTERVAL;
param_id = wmi_vdev_param_listen_interval;
break;
case pmo_vdev_param_dtim_policy:
param_id = WMI_VDEV_PARAM_DTIM_POLICY;
param_id = wmi_vdev_param_dtim_policy;
break;
case pmo_vdev_param_forced_dtim_count:
param_id = WMI_VDEV_PARAM_FORCE_DTIM_CNT;
param_id = wmi_vdev_param_force_dtim_cnt;
break;
case pmo_vdev_param_moddtim:
param_id = WMI_VDEV_PARAM_MODDTIM_CNT;
param_id = wmi_vdev_param_moddtim_cnt;
break;
default:
target_if_err("invalid vdev param id %d", param_id);

View File

@@ -137,7 +137,7 @@ target_if_twt_ac_param_send(struct wlan_objmgr_psoc *psoc,
return QDF_STATUS_E_NULL_VALUE;
}
params.param_id = WMI_PDEV_PARAM_TWT_AC_CONFIG;
params.param_id = wmi_pdev_param_twt_ac_config;
params.param_value = target_if_twt_convert_ac_value(twt_ac);
return wmi_unified_pdev_param_send(wmi_handle, &params, mac_id);