xref: /wlan-driver/qcacld-3.0/components/mlme/dispatcher/inc/cfg_mlme_mbo.h (revision 5113495b16420b49004c444715d2daae2066e7dc)
1*5113495bSYour Name /*
2*5113495bSYour Name  * Copyright (c) 2012-2018 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 QOS related
21*5113495bSYour Name  * converged configurations.
22*5113495bSYour Name  */
23*5113495bSYour Name 
24*5113495bSYour Name #ifndef __CFG_MLME_MBO_H
25*5113495bSYour Name #define __CFG_MLME_MBO_H
26*5113495bSYour Name 
27*5113495bSYour Name /*
28*5113495bSYour Name  * <ini>
29*5113495bSYour Name  * g_mbo_candidate_rssi_thres - Candidate AP's minimum RSSI to accept
30*5113495bSYour Name  * @Min: -120
31*5113495bSYour Name  * @Max: 0
32*5113495bSYour Name  * @Default: -72
33*5113495bSYour Name  *
34*5113495bSYour Name  * This ini specifies the minimum RSSI value a candidate should have to accept
35*5113495bSYour Name  * it as a target for transition.
36*5113495bSYour Name  *
37*5113495bSYour Name  * Related: N/A
38*5113495bSYour Name  *
39*5113495bSYour Name  * Supported Feature: MBO
40*5113495bSYour Name  *
41*5113495bSYour Name  * Usage: Internal
42*5113495bSYour Name  *
43*5113495bSYour Name  * </ini>
44*5113495bSYour Name  */
45*5113495bSYour Name #define CFG_MBO_CANDIDATE_RSSI_THRESHOLD CFG_INI_INT( \
46*5113495bSYour Name 			"g_mbo_candidate_rssi_thres", \
47*5113495bSYour Name 			-120, \
48*5113495bSYour Name 			0, \
49*5113495bSYour Name 			-72, \
50*5113495bSYour Name 			CFG_VALUE_OR_DEFAULT, \
51*5113495bSYour Name 			"candidate AP rssi threshold")
52*5113495bSYour Name /*
53*5113495bSYour Name  * <ini>
54*5113495bSYour Name  * g_mbo_current_rssi_thres - Connected AP's RSSI threshold to consider a
55*5113495bSYour Name  * transition
56*5113495bSYour Name  * @Min: -120
57*5113495bSYour Name  * @Max: 0
58*5113495bSYour Name  * @Default: -65
59*5113495bSYour Name  *
60*5113495bSYour Name  * This ini is used to configure connected AP's RSSI threshold value to consider
61*5113495bSYour Name  * a transition.
62*5113495bSYour Name  *
63*5113495bSYour Name  * Related: N/A
64*5113495bSYour Name  *
65*5113495bSYour Name  * Supported Feature: MBO
66*5113495bSYour Name  *
67*5113495bSYour Name  * Usage: Internal
68*5113495bSYour Name  *
69*5113495bSYour Name  * </ini>
70*5113495bSYour Name  */
71*5113495bSYour Name #define CFG_MBO_CURRENT_RSSI_THRESHOLD CFG_INI_INT( \
72*5113495bSYour Name 			"g_mbo_current_rssi_thres", \
73*5113495bSYour Name 			-120, \
74*5113495bSYour Name 			0, \
75*5113495bSYour Name 			-65, \
76*5113495bSYour Name 			CFG_VALUE_OR_DEFAULT, \
77*5113495bSYour Name 			"current AP rssi threshold")
78*5113495bSYour Name 
79*5113495bSYour Name /*
80*5113495bSYour Name  * <ini>
81*5113495bSYour Name  * g_mbo_current_rssi_mcc_thres - connected AP's RSSI threshold value to prefer
82*5113495bSYour Name  * against a MCC
83*5113495bSYour Name  * @Min: -120
84*5113495bSYour Name  * @Max: 0
85*5113495bSYour Name  * @Default: -75
86*5113495bSYour Name  *
87*5113495bSYour Name  * This ini is used to configure connected AP's minimum RSSI threshold that is
88*5113495bSYour Name  * preferred against a MCC case, if the candidate can cause MCC.
89*5113495bSYour Name  *
90*5113495bSYour Name  * Related: N/A
91*5113495bSYour Name  *
92*5113495bSYour Name  * Supported Feature: MBO
93*5113495bSYour Name  *
94*5113495bSYour Name  * Usage: Internal
95*5113495bSYour Name  *
96*5113495bSYour Name  * </ini>
97*5113495bSYour Name  */
98*5113495bSYour Name #define CFG_MBO_CUR_RSSI_MCC_THRESHOLD CFG_INI_INT( \
99*5113495bSYour Name 		"g_mbo_current_rssi_mcc_thres", \
100*5113495bSYour Name 		-120, \
101*5113495bSYour Name 		0, \
102*5113495bSYour Name 		-75, \
103*5113495bSYour Name 		CFG_VALUE_OR_DEFAULT, \
104*5113495bSYour Name 		"current AP mcc rssi threshold")
105*5113495bSYour Name 
106*5113495bSYour Name /*
107*5113495bSYour Name  * <ini>
108*5113495bSYour Name  * g_mbo_candidate_rssi_btc_thres -  Candidate AP's minimum RSSI threshold to
109*5113495bSYour Name  * prefer it even in case of BT coex
110*5113495bSYour Name  * @Min: -120
111*5113495bSYour Name  * @Max: 0
112*5113495bSYour Name  * @Default: -70
113*5113495bSYour Name  *
114*5113495bSYour Name  * This ini is used to configure candidate AP's minimum RSSI threshold to prefer
115*5113495bSYour Name  * it for transition even in case of BT coex.
116*5113495bSYour Name  *
117*5113495bSYour Name  * Related: N/A
118*5113495bSYour Name  *
119*5113495bSYour Name  * Supported Feature: MBO
120*5113495bSYour Name  *
121*5113495bSYour Name  * Usage: Internal
122*5113495bSYour Name  *
123*5113495bSYour Name  * </ini>
124*5113495bSYour Name  */
125*5113495bSYour Name #define CFG_MBO_CAND_RSSI_BTC_THRESHOLD CFG_INI_INT( \
126*5113495bSYour Name 		"g_mbo_candidate_rssi_btc_thres", \
127*5113495bSYour Name 		-120, \
128*5113495bSYour Name 		0, \
129*5113495bSYour Name 		-70, \
130*5113495bSYour Name 		CFG_VALUE_OR_DEFAULT, \
131*5113495bSYour Name 		"candidate AP rssi threshold")
132*5113495bSYour Name 
133*5113495bSYour Name #define CFG_MBO_ALL \
134*5113495bSYour Name 	CFG(CFG_MBO_CANDIDATE_RSSI_THRESHOLD) \
135*5113495bSYour Name 	CFG(CFG_MBO_CURRENT_RSSI_THRESHOLD) \
136*5113495bSYour Name 	CFG(CFG_MBO_CUR_RSSI_MCC_THRESHOLD) \
137*5113495bSYour Name 	CFG(CFG_MBO_CAND_RSSI_BTC_THRESHOLD)
138*5113495bSYour Name 
139*5113495bSYour Name #endif /* __CFG_MLME_MBO_H */
140