qcacld-3.0: Optimize pdev/vdev set param command

Currently host sends many pdev/vdev set param
commands separately to firmware from hdd.

Combine multiple pdev/vdev set params and
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: Ib76f5bd5f582a2c67486f6773ff6fd486b3d84cf
CRs-Fixed: 3333732
This commit is contained in:
Divyajyothi Goparaju
2022-08-18 01:28:16 +05:30
committed by Madan Koyyalamudi
parent fd4205850c
commit adfb3a43d6
5 changed files with 379 additions and 251 deletions

View File

@@ -1,5 +1,6 @@
/*
* Copyright (c) 2016-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
@@ -1167,7 +1168,7 @@ void target_if_nan_set_vdev_feature_config(struct wlan_objmgr_psoc *psoc,
target_if_debug("vdev_id:%d NAN features:0x%x", vdev_id, nan_features);
param.vdev_id = vdev_id;
param.param_id = WMI_VDEV_PARAM_ENABLE_DISABLE_NAN_CONFIG_FEATURES;
param.param_id = wmi_vdev_param_enable_disable_nan_config_features;
param.param_value = nan_features;
status = wmi_unified_vdev_set_param_send(wmi_handle, &param);