xref: /wlan-driver/qcacld-3.0/components/target_if/p2p/inc/target_if_p2p_mcc_quota.h (revision 5113495b16420b49004c444715d2daae2066e7dc)
1 /*
2  * Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
3  *
4  * Permission to use, copy, modify, and/or distribute this software for
5  * any purpose with or without fee is hereby granted, provided that the
6  * above copyright notice and this permission notice appear in all
7  * copies.
8  *
9  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
10  * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
11  * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
12  * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
13  * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
14  * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
15  * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
16  * PERFORMANCE OF THIS SOFTWARE.
17  */
18 
19 /**
20  * DOC: offload lmac interface APIs for P2P MCC quota event processing
21  */
22 
23 #ifndef _TARGET_IF_P2P_MCC_QUOTA_H_
24 #define _TARGET_IF_P2P_MCC_QUOTA_H_
25 
26 struct wlan_lmac_if_tx_ops;
27 
28 #ifdef WLAN_FEATURE_MCC_QUOTA
29 /**
30  * target_if_mcc_quota_register_tx_ops() - Register mcc quota TX OPS
31  * @tx_ops: lmac if transmit ops
32  *
33  * Return: None
34  */
35 void
36 target_if_mcc_quota_register_tx_ops(struct wlan_lmac_if_tx_ops *tx_ops);
37 #else
38 static inline void
target_if_mcc_quota_register_tx_ops(struct wlan_lmac_if_tx_ops * tx_ops)39 target_if_mcc_quota_register_tx_ops(struct wlan_lmac_if_tx_ops *tx_ops)
40 {
41 }
42 #endif
43 #endif /* _TARGET_IF_P2P_MCC_QUOTA_H_ */
44