xref: /wlan-driver/qcacld-3.0/components/mlme/dispatcher/inc/cfg_mlme_stats.h (revision 5113495b16420b49004c444715d2daae2066e7dc)
1*5113495bSYour Name /*
2*5113495bSYour Name  * Copyright (c) 2012-2020 The Linux Foundation. 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: This file contains centralized definitions of converged configuration.
21*5113495bSYour Name  */
22*5113495bSYour Name 
23*5113495bSYour Name #ifndef __CFG_MLME_STATS_H
24*5113495bSYour Name #define __CFG_MLME_STATS_H
25*5113495bSYour Name 
26*5113495bSYour Name enum mlme_stats_link_speed_rpt_type {
27*5113495bSYour Name 	CFG_STATS_LINK_SPEED_REPORT_ACTUAL = 0,
28*5113495bSYour Name 	CFG_STATS_LINK_SPEED_REPORT_MAX = 1,
29*5113495bSYour Name 	CFG_STATS_LINK_SPEED_REPORT_MAX_SCALED = 2,
30*5113495bSYour Name };
31*5113495bSYour Name 
32*5113495bSYour Name /*
33*5113495bSYour Name  * <ini>
34*5113495bSYour Name  * periodic_stats_display_time - time(seconds) after which stats will be printed
35*5113495bSYour Name  * @Min: 0
36*5113495bSYour Name  * @Max: 256
37*5113495bSYour Name  * @Default: 10
38*5113495bSYour Name  *
39*5113495bSYour Name  * This values specifies the recurring time period after which stats will be
40*5113495bSYour Name  * printed in wlan driver logs.
41*5113495bSYour Name  *
42*5113495bSYour Name  * Usage: Internal / External
43*5113495bSYour Name  *
44*5113495bSYour Name  * </ini>
45*5113495bSYour Name  */
46*5113495bSYour Name #define CFG_PERIODIC_STATS_DISPLAY_TIME CFG_INI_UINT( \
47*5113495bSYour Name 		"periodic_stats_display_time", \
48*5113495bSYour Name 		0, \
49*5113495bSYour Name 		256, \
50*5113495bSYour Name 		10, \
51*5113495bSYour Name 		CFG_VALUE_OR_DEFAULT, \
52*5113495bSYour Name 		"time after which stats will be printed")
53*5113495bSYour Name 
54*5113495bSYour Name /*
55*5113495bSYour Name  * <ini>
56*5113495bSYour Name  * gLinkSpeedRssiMed - Used when eHDD_LINK_SPEED_REPORT_SCALED is selected
57*5113495bSYour Name  * @Min: -127
58*5113495bSYour Name  * @Max: 0
59*5113495bSYour Name  * @Default: -65
60*5113495bSYour Name  *
61*5113495bSYour Name  * This ini is used to set medium rssi link speed
62*5113495bSYour Name  *
63*5113495bSYour Name  * Related: None
64*5113495bSYour Name  *
65*5113495bSYour Name  * Supported Feature: STA
66*5113495bSYour Name  *
67*5113495bSYour Name  * Usage: Internal / External
68*5113495bSYour Name  *
69*5113495bSYour Name  * </ini>
70*5113495bSYour Name  */
71*5113495bSYour Name #define CFG_LINK_SPEED_RSSI_MID CFG_INI_INT( \
72*5113495bSYour Name 		"gLinkSpeedRssiMed", \
73*5113495bSYour Name 		-127, \
74*5113495bSYour Name 		0, \
75*5113495bSYour Name 		-65, \
76*5113495bSYour Name 		CFG_VALUE_OR_DEFAULT, \
77*5113495bSYour Name 		"medium rssi link speed")
78*5113495bSYour Name 
79*5113495bSYour Name /*
80*5113495bSYour Name  * <ini>
81*5113495bSYour Name  * gReportMaxLinkSpeed - Max link speed
82*5113495bSYour Name  * @Min: CFG_STATS_LINK_SPEED_REPORT_ACTUAL
83*5113495bSYour Name  * @Max: CFG_STATS_LINK_SPEED_REPORT_MAX_SCALED
84*5113495bSYour Name  * @Default: CFG_STATS_LINK_SPEED_REPORT_ACTUAL
85*5113495bSYour Name  *
86*5113495bSYour Name  * This ini is used to set Max link speed
87*5113495bSYour Name  *
88*5113495bSYour Name  * Related: None
89*5113495bSYour Name  *
90*5113495bSYour Name  * Supported Feature: STA
91*5113495bSYour Name  *
92*5113495bSYour Name  * Usage: Internal / External
93*5113495bSYour Name  *
94*5113495bSYour Name  * </ini>
95*5113495bSYour Name  */
96*5113495bSYour Name #define CFG_REPORT_MAX_LINK_SPEED CFG_INI_UINT( \
97*5113495bSYour Name 		"gReportMaxLinkSpeed", \
98*5113495bSYour Name 		CFG_STATS_LINK_SPEED_REPORT_ACTUAL, \
99*5113495bSYour Name 		CFG_STATS_LINK_SPEED_REPORT_MAX_SCALED, \
100*5113495bSYour Name 		CFG_STATS_LINK_SPEED_REPORT_ACTUAL, \
101*5113495bSYour Name 		CFG_VALUE_OR_DEFAULT, \
102*5113495bSYour Name 		"Max link speed")
103*5113495bSYour Name 
104*5113495bSYour Name /*
105*5113495bSYour Name  * <ini>
106*5113495bSYour Name  * gLinkSpeedRssiLow - Used when eHDD_LINK_SPEED_REPORT_SCALED is selected
107*5113495bSYour Name  * @Min: -127
108*5113495bSYour Name  * @Max: 0
109*5113495bSYour Name  * @Default: -80
110*5113495bSYour Name  *
111*5113495bSYour Name  * This ini is used to set low rssi link speed
112*5113495bSYour Name  *
113*5113495bSYour Name  * Related: None
114*5113495bSYour Name  *
115*5113495bSYour Name  * Supported Feature: STA
116*5113495bSYour Name  *
117*5113495bSYour Name  * Usage: Internal / External
118*5113495bSYour Name  *
119*5113495bSYour Name  * </ini>
120*5113495bSYour Name  */
121*5113495bSYour Name #define CFG_LINK_SPEED_RSSI_LOW CFG_INI_INT( \
122*5113495bSYour Name 		"gLinkSpeedRssiLow", \
123*5113495bSYour Name 		-127, \
124*5113495bSYour Name 		0, \
125*5113495bSYour Name 		-80, \
126*5113495bSYour Name 		CFG_VALUE_OR_DEFAULT, \
127*5113495bSYour Name 		"low rssi link speed")
128*5113495bSYour Name 
129*5113495bSYour Name /*
130*5113495bSYour Name  * <ini>
131*5113495bSYour Name  * gLinkSpeedRssiHigh - Report the max possible speed with RSSI scaling
132*5113495bSYour Name  * @Min: -127
133*5113495bSYour Name  * @Max: 0
134*5113495bSYour Name  * @Default: -55
135*5113495bSYour Name  *
136*5113495bSYour Name  * This ini is used to set default eHDD_LINK_SPEED_REPORT
137*5113495bSYour Name  * Used when eHDD_LINK_SPEED_REPORT_SCALED is selected
138*5113495bSYour Name  *
139*5113495bSYour Name  * Related: None
140*5113495bSYour Name  *
141*5113495bSYour Name  * Supported Feature: STA
142*5113495bSYour Name  *
143*5113495bSYour Name  * Usage: Internal / External
144*5113495bSYour Name  *
145*5113495bSYour Name  * </ini>
146*5113495bSYour Name  */
147*5113495bSYour Name #define CFG_LINK_SPEED_RSSI_HIGH CFG_INI_INT( \
148*5113495bSYour Name 		"gLinkSpeedRssiHigh", \
149*5113495bSYour Name 		-127, \
150*5113495bSYour Name 		0, \
151*5113495bSYour Name 		-55, \
152*5113495bSYour Name 		CFG_VALUE_OR_DEFAULT, \
153*5113495bSYour Name 		"max possible rssi link speed")
154*5113495bSYour Name 
155*5113495bSYour Name #define CFG_STATS_ALL \
156*5113495bSYour Name 	CFG(CFG_PERIODIC_STATS_DISPLAY_TIME) \
157*5113495bSYour Name 	CFG(CFG_LINK_SPEED_RSSI_HIGH) \
158*5113495bSYour Name 	CFG(CFG_LINK_SPEED_RSSI_MID) \
159*5113495bSYour Name 	CFG(CFG_LINK_SPEED_RSSI_LOW) \
160*5113495bSYour Name 	CFG(CFG_REPORT_MAX_LINK_SPEED)
161*5113495bSYour Name 
162*5113495bSYour Name #endif /* __CFG_MLME_STATS_H */
163