qcacmn: Add API to send set TPC power command

Add new API to handle the logic of sending the WMI command,
WMI_SET_TPC_POWER_CMDID. Create the struct to hold this new
transmit power information.

Change-Id: Ibc7c6109176577f56d149baf87022de557e84445
CRs-fixed: 2841781
This commit is contained in:
Lincoln Tran
2020-12-09 18:00:20 -08:00
committed by snandini
parent c761e3e208
commit e9c3eda862
4 changed files with 97 additions and 2 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2016-2020 The Linux Foundation. All rights reserved.
* Copyright (c) 2016-2021 The Linux Foundation. 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
@@ -3393,3 +3393,15 @@ QDF_STATUS wmi_extract_pdev_csa_switch_count_status(
return QDF_STATUS_E_FAILURE;
}
QDF_STATUS wmi_unified_send_set_tpc_power_cmd(wmi_unified_t wmi_handle,
uint8_t vdev_id,
struct reg_tpc_power_info *param)
{
if (wmi_handle->ops->send_set_tpc_power_cmd)
return wmi_handle->ops->send_set_tpc_power_cmd(wmi_handle,
vdev_id,
param);
return QDF_STATUS_E_FAILURE;
}