qcacmn: Add MCC Quota event handler

Handle WMI event WMI_RESMGR_CHAN_TIME_QUOTA_CHANGED_EVENTID
and indicate to protocol layer.

Change-Id: Ie842998ed50a52351dd24857c0565c535a2edca1
CRs-Fixed: 3101765
This commit is contained in:
Liangwei Dong
2021-12-13 14:52:30 +08:00
committed by Madan Koyyalamudi
parent 8d0d85c7e4
commit 29ffc29223
8 changed files with 179 additions and 9 deletions

View File

@@ -1,5 +1,6 @@
/*
* Copyright (c) 2013-2019 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
@@ -36,6 +37,20 @@ QDF_STATUS wmi_unified_set_mcc_channel_time_quota_cmd(
uint32_t adapter_1_chan_freq,
uint32_t adapter_1_quota, uint32_t adapter_2_chan_freq);
#ifdef WLAN_FEATURE_MCC_QUOTA
/**
* wmi_extract_mcc_quota_ev_param() - extract mcc_quota param from wmi event
* @wmi_handle: wmi handle
* @evt_buf: pointer to event buffer
* @param: Pointer to hold mcc_quota param
*
* Return: QDF_STATUS_SUCCESS on success or error code
*/
QDF_STATUS wmi_extract_mcc_quota_ev_param(wmi_unified_t wmi_handle,
void *evt_buf,
struct mcc_quota_info *param);
#endif
/**
* wmi_unified_set_mcc_channel_time_latency_cmd() - set MCC channel time latency
* @wmi_handle: wmi handle