xref: /wlan-driver/qcacld-3.0/components/mlme/dispatcher/inc/cfg_mlme_threshold.h (revision 5113495b16420b49004c444715d2daae2066e7dc)
1 /*
2  * Copyright (c) 2012-2018 The Linux Foundation. All rights reserved.
3  * Copyright (c) 2022 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_THRESHOLD_H
25 #define __CFG_MLME_THRESHOLD_H
26 
27 #include "wni_cfg.h"
28 
29 /*
30  * <ini>
31  * RTSThreshold - Will provide RTSThreshold
32  * @Min: 0
33  * @Max: 1048576
34  * @Default: 2347
35  *
36  * This ini is used to set default RTSThreshold
37  * If minimum value 0 is selected then it will use always RTS
38  * max is the max frame size
39  *
40  * Related: None
41  *
42  * Supported Feature: STA
43  *
44  * Usage: Internal/External
45  *
46  * </ini>
47  */
48 
49 #define CFG_RTS_THRESHOLD CFG_INI_UINT( \
50 		"RTSThreshold", \
51 		0, \
52 		1048576, \
53 		2347, \
54 		CFG_VALUE_OR_DEFAULT, \
55 		"Default RTS Threshold")
56 
57 /*
58  * <ini>
59  * gFragmentationThreshold - It will set fragmentation threshold
60  * @Min: 256
61  * @Max: 8000
62  * @Default: 8000
63  *
64  * This ini is used to indicate default fragmentation threshold
65  *
66  * Related: None
67  *
68  * Supported Feature: STA
69  *
70  * Usage: Internal/External
71  *
72  * </ini>
73  */
74 
75 #define CFG_FRAG_THRESHOLD CFG_INI_UINT( \
76 		"gFragmentationThreshold", \
77 		256, \
78 		8000, \
79 		8000, \
80 		CFG_VALUE_OR_DEFAULT, \
81 		"Default Fragmentation Threshold")
82 
83 #define CFG_THRESHOLD_ALL \
84 	CFG(CFG_RTS_THRESHOLD) \
85 	CFG(CFG_FRAG_THRESHOLD)
86 
87 #endif /* __CFG_MLME_MAIN_H */
88