1 /*
2  * Copyright (c) 2011-2019, 2021 The Linux Foundation. All rights reserved.
3  * Copyright (c) 2022-2023 Qualcomm Innovation Center, Inc. All rights reserved.
4  *
5  * Permission to use, copy, modify, and/or distribute this software for
6  * any purpose with or without fee is hereby granted, provided that the
7  * above copyright notice and this permission notice appear in all
8  * copies.
9  *
10  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
11  * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
12  * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
13  * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
14  * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
15  * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
16  * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
17  * PERFORMANCE OF THIS SOFTWARE.
18  */
19 
20 /**
21  * DOC: This file contains centralized definitions of converged configuration.
22  */
23 
24 #ifndef __CFG_MLME_TIMEOUT_H
25 #define __CFG_MLME_TIMEOUT_H
26 
27 /*
28  * <ini>
29  * join_failure_timeout - Join failure timeout value
30  * @Min: 500
31  * @Max: 3000
32  * @Default: 3000
33  *
34  * This cfg is used to configure the join failure timeout.
35  *
36  * Usage: Internal
37  *
38  * </ini>
39  */
40 #define CFG_JOIN_FAILURE_TIMEOUT CFG_INI_UINT( \
41 		"join_failure_timeout", \
42 		500, \
43 		3000, \
44 		3000, \
45 		CFG_VALUE_OR_DEFAULT, \
46 		"Join failure timeout")
47 
48 /*
49  * <ini>
50  * auth_failure_timeout - Auth failure timeout value
51  * @Min: 500
52  * @Max: 5000
53  * @Default: 1000
54  *
55  * This cfg is used to configure the auth failure timeout.
56  *
57  * Usage: Internal
58  *
59  * </ini>
60  */
61 #define CFG_AUTH_FAILURE_TIMEOUT CFG_INI_UINT( \
62 		"auth_failure_timeout", \
63 		500, \
64 		5000, \
65 		1000, \
66 		CFG_VALUE_OR_DEFAULT, \
67 		"auth failure timeout")
68 
69 /*
70  * <ini>
71  * auth_rsp_timeout - Auth response timeout value
72  * @Min: 0
73  * @Max: 65535
74  * @Default: 1000
75  *
76  * This cfg is used to configure the auth response timeout.
77  *
78  * Usage: Internal
79  *
80  * </ini>
81  */
82 #define CFG_AUTH_RSP_TIMEOUT CFG_INI_UINT( \
83 		"auth_rsp_timeout", \
84 		0, \
85 		65535, \
86 		1000, \
87 		CFG_VALUE_OR_DEFAULT, \
88 		"auth rsp timeout")
89 
90 /*
91  * <ini>
92  * assoc_failure_timeout - Assoc failure timeout value
93  * @Min: 500
94  * @Max: 3000
95  * @Default: 2000
96  *
97  * This cfg is used to configure the assoc failure timeout.
98  *
99  * Usage: Internal
100  *
101  * </ini>
102  */
103 #define CFG_ASSOC_FAILURE_TIMEOUT CFG_INI_UINT( \
104 		"assoc_failure_timeout", \
105 		500, \
106 		3000, \
107 		2000, \
108 		CFG_VALUE_OR_DEFAULT, \
109 		"assoc failure timeout")
110 
111 /*
112  * <ini>
113  * reassoc_failure_timeout - Re-Assoc failure timeout value
114  * @Min: 0
115  * @Max: 65535
116  * @Default: 1000
117  *
118  * This cfg is used to configure the re-assoc failure timeout.
119  *
120  * Usage: Internal
121  *
122  * </ini>
123  */
124 #define CFG_REASSOC_FAILURE_TIMEOUT CFG_INI_UINT( \
125 		"reassoc_failure_timeout", \
126 		0, \
127 		65535, \
128 		1000, \
129 		CFG_VALUE_OR_DEFAULT, \
130 		"reassoc failure timeout")
131 
132 /*
133  * <ini>
134  * olbc_detect_timeout - olbc detect timeout value
135  * @Min: 1000
136  * @Max: 30000
137  * @Default: 10000
138  *
139  * This cfg is used to configure the olbc detect timeout.
140  *
141  * Usage: Internal
142  *
143  * </ini>
144  */
145 #define CFG_OLBC_DETECT_TIMEOUT CFG_INI_UINT( \
146 		"olbc_detect_timeout", \
147 		1000, \
148 		30000, \
149 		10000, \
150 		CFG_VALUE_OR_DEFAULT, \
151 		"OLBC detect timeout")
152 
153 /*
154  * <ini>
155  * addts_rsp_timeout - addts response timeout value
156  * @Min: 0
157  * @Max: 65535
158  * @Default: 1000
159  *
160  * This cfg is used to configure the addts response timeout.
161  *
162  * Usage: Internal
163  *
164  * </ini>
165  */
166 #define CFG_ADDTS_RSP_TIMEOUT CFG_INI_UINT( \
167 		"addts_rsp_timeout", \
168 		0, \
169 		65535, \
170 		1000, \
171 		CFG_VALUE_OR_DEFAULT, \
172 		"ADDTS RSP timeout")
173 
174 /*
175  * <ini>
176  * gHeartbeat24 - Heart beat threshold value
177  * @Min: 0
178  * @Max: 65535
179  * @Default: 40
180  *
181  * This cfg is used to configure the Heart beat threshold.
182  *
183  * Usage: Internal/External
184  *
185  * </ini>
186  */
187 #define CFG_HEART_BEAT_THRESHOLD CFG_INI_UINT( \
188 		"gHeartbeat24", \
189 		0, \
190 		65535, \
191 		40, \
192 		CFG_VALUE_OR_DEFAULT, \
193 		"Heart beat threshold")
194 
195 /*
196  * <ini>
197  * gApKeepAlivePeriod - AP keep alive period
198  * @Min: 1
199  * @Max: 65535
200  * @Default: 20
201  *
202  * This ini is used to set keep alive period(in seconds) of AP
203  *
204  * Related: None.
205  *
206  * Supported Feature: SAP
207  *
208  * Usage: Internal/External
209  *
210  * </ini>
211  */
212 #define CFG_AP_KEEP_ALIVE_TIMEOUT CFG_INI_UINT( \
213 		"gApKeepAlivePeriod", \
214 		1, \
215 		65535, \
216 		20, \
217 		CFG_VALUE_OR_DEFAULT, \
218 		"AP keep alive timeout")
219 
220 /*
221  * <ini>
222  * gApLinkMonitorPeriod - AP keep alive period
223  * @Min: 3
224  * @Max: 50
225  * @Default: 10
226  *
227  * This ini is used to configure AP link monitor timeout value
228  *
229  * Related: None.
230  *
231  * Supported Feature: SAP
232  *
233  * Usage: Internal/External
234  *
235  * </ini>
236  */
237 #define CFG_AP_LINK_MONITOR_TIMEOUT CFG_INI_UINT( \
238 		"gApLinkMonitorPeriod", \
239 		3, \
240 		50, \
241 		10, \
242 		CFG_VALUE_OR_DEFAULT, \
243 		"AP link monitor timeout")
244 
245 /*
246  * <ini>
247  * wmi_wq_watchdog - Sets timeout period for wmi watchdog bite.
248  * @Min: 0
249  * @Max: 30
250  * @Default: 20
251  *
252  * This ini is used to set timeout period for wmi watchdog bite. If it is
253  * 0 then wmi watchdog bite is disabled.
254  *
255  * Related: None
256  *
257  * Supported Feature: STA
258  *
259  * Usage: External
260  *
261  * </ini>
262  */
263 #define CFG_WMI_WQ_WATCHDOG CFG_INI_UINT( \
264 		"wmi_wq_watchdog", \
265 		0, \
266 		30, \
267 		20, \
268 		CFG_VALUE_OR_DEFAULT, \
269 		"timeout period for wmi watchdog bite")
270 
271 /*
272  * <ini>
273  * sae_auth_failure_timeout - SAE Auth failure timeout value in msec
274  * @Min: 100
275  * @Max: 1000
276  * @Default: 1000
277  *
278  * This cfg is used to configure the SAE auth failure timeout.
279  *
280  * Usage: External
281  *
282  * </ini>
283  */
284 #define CFG_SAE_AUTH_FAILURE_TIMEOUT CFG_INI_UINT( \
285 		"sae_auth_failure_timeout", \
286 		100, \
287 		1000, \
288 		1000, \
289 		CFG_VALUE_OR_DEFAULT, \
290 		"SAE auth failure timeout")
291 
292 #define CFG_TIMEOUT_ALL \
293 	CFG(CFG_JOIN_FAILURE_TIMEOUT) \
294 	CFG(CFG_AUTH_FAILURE_TIMEOUT) \
295 	CFG(CFG_AUTH_RSP_TIMEOUT) \
296 	CFG(CFG_ASSOC_FAILURE_TIMEOUT) \
297 	CFG(CFG_REASSOC_FAILURE_TIMEOUT) \
298 	CFG(CFG_OLBC_DETECT_TIMEOUT) \
299 	CFG(CFG_ADDTS_RSP_TIMEOUT) \
300 	CFG(CFG_HEART_BEAT_THRESHOLD) \
301 	CFG(CFG_AP_KEEP_ALIVE_TIMEOUT) \
302 	CFG(CFG_AP_LINK_MONITOR_TIMEOUT) \
303 	CFG(CFG_WMI_WQ_WATCHDOG) \
304 	CFG(CFG_SAE_AUTH_FAILURE_TIMEOUT)
305 
306 #endif /* __CFG_MLME_TIMEOUT_H */
307