xref: /wlan-driver/qcacld-3.0/components/umac/twt/dispatcher/inc/wlan_twt_ext_defs.h (revision 5113495b16420b49004c444715d2daae2066e7dc)
1 /*
2  * Copyright (c) 2022-2023 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: wlan_twt_ext_defs.h
21  *
22  * This file provide definition for structure/enums/defines related to
23  * twt component
24  */
25 
26 #ifndef __WLAN_TWT_EXT_DEFS_H__
27 #define __WLAN_TWT_EXT_DEFS_H__
28 
29 /*
30  * struct twt_mc_cfg_params - All twt related cfg items
31  * @enable_twt: global twt configuration
32  * @twt_responder: twt responder enable/disable
33  * @twt_requestor: twt requestor enable/disable
34  * @twt_congestion_timeout: congestion timeout value
35  * @bcast_requestor_enabled: bcast requestor enable/disable
36  * @bcast_responder_enabled: bcast responder enable/disable
37  * @enable_twt_24ghz: Enable/disable host TWT when STA is connected in
38  * 2.4Ghz
39  * @flex_twt_sched: flex twt scheduling enable/disable
40  * @req_flag: requestor flag enable/disable
41  * @res_flag: responder flag enable/disable
42  * @is_twt_enabled_in_11n: Enable TWT support in 11n mode
43  * @rtwt_requestor_enabled: Restricted TWT requestor enable or disable
44  * @rtwt_responder_enabled: Restricted TWT responder enable or disable
45  */
46 struct twt_mc_cfg_params {
47 	bool enable_twt;
48 	bool twt_responder;
49 	bool twt_requestor;
50 	uint32_t twt_congestion_timeout;
51 	bool bcast_requestor_enabled;
52 	bool bcast_responder_enabled;
53 	bool enable_twt_24ghz;
54 	bool flex_twt_sched;
55 	bool req_flag;
56 	bool res_flag;
57 	bool is_twt_enabled_in_11n;
58 	bool rtwt_requestor_enabled;
59 	bool rtwt_responder_enabled;
60 };
61 
62 #endif /* __WLAN_TWT_EXT_DEFS_H__ */
63 
64