xref: /wlan-driver/qca-wifi-host-cmn/wmi/inc/wmi_unified_cfr_param.h (revision 5113495b16420b49004c444715d2daae2066e7dc)
1 /*
2  * Copyright (c) 2019, The Linux Foundation. All rights reserved.
3  *
4  * Permission to use, copy, modify, and/or distribute this software for any
5  * purpose with or without fee is hereby granted, provided that the above
6  * copyright notice and this permission notice appear in all copies.
7  *
8  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9  * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10  * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
11  * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
13  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
14  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
15  */
16 
17 #ifndef _WMI_UNIFIED_CFR_PARAM_H_
18 #define _WMI_UNIFIED_CFR_PARAM_H_
19 
20 #ifdef WLAN_CFR_ENABLE
21 
22 #define WMI_HOST_PEER_CFR_TIMER_ENABLE   1
23 #define WMI_HOST_PEER_CFR_TIMER_DISABLE  0
24 
25 
26 /**
27  * struct peer_cfr_params - peer cfr capture cmd parameter
28  * @request: enable/disable cfr capture
29  * @macaddr: macaddr of the client
30  * @vdev_id: vdev id
31  * @periodicity: cfr capture period
32  * @bandwidth: bandwidth of cfr capture
33  * @capture_method: cfr capture method/type
34  */
35 struct peer_cfr_params {
36 	uint32_t request;
37 	uint8_t  *macaddr;
38 	uint32_t vdev_id;
39 	uint32_t periodicity;
40 	uint32_t bandwidth;
41 	uint32_t capture_method;
42 };
43 
44 
45 #endif /* WLAN_CFR_ENABLE */
46 #endif /* _WMI_UNIFIED_CFR_PARAM_H_ */
47