xref: /wlan-driver/qcacld-3.0/components/umac/twt/dispatcher/inc/wlan_twt_ext_defs.h (revision 5113495b16420b49004c444715d2daae2066e7dc)
1*5113495bSYour Name /*
2*5113495bSYour Name  * Copyright (c) 2022-2023 Qualcomm Innovation Center, Inc. All rights reserved.
3*5113495bSYour Name  *
4*5113495bSYour Name  * Permission to use, copy, modify, and/or distribute this software for
5*5113495bSYour Name  * any purpose with or without fee is hereby granted, provided that the
6*5113495bSYour Name  * above copyright notice and this permission notice appear in all
7*5113495bSYour Name  * copies.
8*5113495bSYour Name  *
9*5113495bSYour Name  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
10*5113495bSYour Name  * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
11*5113495bSYour Name  * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
12*5113495bSYour Name  * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
13*5113495bSYour Name  * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
14*5113495bSYour Name  * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
15*5113495bSYour Name  * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
16*5113495bSYour Name  * PERFORMANCE OF THIS SOFTWARE.
17*5113495bSYour Name  */
18*5113495bSYour Name 
19*5113495bSYour Name /**
20*5113495bSYour Name  * DOC: wlan_twt_ext_defs.h
21*5113495bSYour Name  *
22*5113495bSYour Name  * This file provide definition for structure/enums/defines related to
23*5113495bSYour Name  * twt component
24*5113495bSYour Name  */
25*5113495bSYour Name 
26*5113495bSYour Name #ifndef __WLAN_TWT_EXT_DEFS_H__
27*5113495bSYour Name #define __WLAN_TWT_EXT_DEFS_H__
28*5113495bSYour Name 
29*5113495bSYour Name /*
30*5113495bSYour Name  * struct twt_mc_cfg_params - All twt related cfg items
31*5113495bSYour Name  * @enable_twt: global twt configuration
32*5113495bSYour Name  * @twt_responder: twt responder enable/disable
33*5113495bSYour Name  * @twt_requestor: twt requestor enable/disable
34*5113495bSYour Name  * @twt_congestion_timeout: congestion timeout value
35*5113495bSYour Name  * @bcast_requestor_enabled: bcast requestor enable/disable
36*5113495bSYour Name  * @bcast_responder_enabled: bcast responder enable/disable
37*5113495bSYour Name  * @enable_twt_24ghz: Enable/disable host TWT when STA is connected in
38*5113495bSYour Name  * 2.4Ghz
39*5113495bSYour Name  * @flex_twt_sched: flex twt scheduling enable/disable
40*5113495bSYour Name  * @req_flag: requestor flag enable/disable
41*5113495bSYour Name  * @res_flag: responder flag enable/disable
42*5113495bSYour Name  * @is_twt_enabled_in_11n: Enable TWT support in 11n mode
43*5113495bSYour Name  * @rtwt_requestor_enabled: Restricted TWT requestor enable or disable
44*5113495bSYour Name  * @rtwt_responder_enabled: Restricted TWT responder enable or disable
45*5113495bSYour Name  */
46*5113495bSYour Name struct twt_mc_cfg_params {
47*5113495bSYour Name 	bool enable_twt;
48*5113495bSYour Name 	bool twt_responder;
49*5113495bSYour Name 	bool twt_requestor;
50*5113495bSYour Name 	uint32_t twt_congestion_timeout;
51*5113495bSYour Name 	bool bcast_requestor_enabled;
52*5113495bSYour Name 	bool bcast_responder_enabled;
53*5113495bSYour Name 	bool enable_twt_24ghz;
54*5113495bSYour Name 	bool flex_twt_sched;
55*5113495bSYour Name 	bool req_flag;
56*5113495bSYour Name 	bool res_flag;
57*5113495bSYour Name 	bool is_twt_enabled_in_11n;
58*5113495bSYour Name 	bool rtwt_requestor_enabled;
59*5113495bSYour Name 	bool rtwt_responder_enabled;
60*5113495bSYour Name };
61*5113495bSYour Name 
62*5113495bSYour Name #endif /* __WLAN_TWT_EXT_DEFS_H__ */
63*5113495bSYour Name 
64