xref: /wlan-driver/qcacld-3.0/components/mlme/dispatcher/inc/cfg_mlme_sap.h (revision 5113495b16420b49004c444715d2daae2066e7dc)
1*5113495bSYour Name /*
2*5113495bSYour Name  * Copyright (c) 2012-2021 The Linux Foundation. All rights reserved.
3*5113495bSYour Name  * Copyright (c) 2021-2023 Qualcomm Innovation Center, Inc. All rights reserved.
4*5113495bSYour Name  *
5*5113495bSYour Name  * Permission to use, copy, modify, and/or distribute this software for
6*5113495bSYour Name  * any purpose with or without fee is hereby granted, provided that the
7*5113495bSYour Name  * above copyright notice and this permission notice appear in all
8*5113495bSYour Name  * copies.
9*5113495bSYour Name  *
10*5113495bSYour Name  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
11*5113495bSYour Name  * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
12*5113495bSYour Name  * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
13*5113495bSYour Name  * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
14*5113495bSYour Name  * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
15*5113495bSYour Name  * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
16*5113495bSYour Name  * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
17*5113495bSYour Name  * PERFORMANCE OF THIS SOFTWARE.
18*5113495bSYour Name  */
19*5113495bSYour Name 
20*5113495bSYour Name /**
21*5113495bSYour Name  * DOC: This file contains centralized definitions of converged configuration.
22*5113495bSYour Name  */
23*5113495bSYour Name 
24*5113495bSYour Name #ifndef __CFG_MLME_SAP_H
25*5113495bSYour Name #define __CFG_MLME_SAP_H
26*5113495bSYour Name 
27*5113495bSYour Name #define CFG_BEACON_INTERVAL CFG_INI_UINT( \
28*5113495bSYour Name 			"gBeaconInterval", \
29*5113495bSYour Name 			0, \
30*5113495bSYour Name 			65535, \
31*5113495bSYour Name 			100, \
32*5113495bSYour Name 			CFG_VALUE_OR_DEFAULT, \
33*5113495bSYour Name 			"CFG_BEACON_INTERVAL")
34*5113495bSYour Name 
35*5113495bSYour Name #define CFG_DTIM_PERIOD CFG_UINT( \
36*5113495bSYour Name 			"cfg_dtim_period", \
37*5113495bSYour Name 			0, \
38*5113495bSYour Name 			65535, \
39*5113495bSYour Name 			1, \
40*5113495bSYour Name 			CFG_VALUE_OR_DEFAULT, \
41*5113495bSYour Name 			"CFG_DTIM_PERIOD")
42*5113495bSYour Name 
43*5113495bSYour Name #define CFG_LISTEN_INTERVAL CFG_UINT( \
44*5113495bSYour Name 			"cfg_listen_interval", \
45*5113495bSYour Name 			0, \
46*5113495bSYour Name 			65535, \
47*5113495bSYour Name 			1, \
48*5113495bSYour Name 			CFG_VALUE_OR_DEFAULT, \
49*5113495bSYour Name 			"CFG_LISTEN_INTERVAL")
50*5113495bSYour Name 
51*5113495bSYour Name #define CFG_11G_ONLY_POLICY CFG_UINT( \
52*5113495bSYour Name 			"cfg_11g_only_policy", \
53*5113495bSYour Name 			0, \
54*5113495bSYour Name 			1, \
55*5113495bSYour Name 			0, \
56*5113495bSYour Name 			CFG_VALUE_OR_DEFAULT, \
57*5113495bSYour Name 			"CFG_11G_ONLY_POLICY")
58*5113495bSYour Name 
59*5113495bSYour Name #define CFG_ASSOC_STA_LIMIT CFG_UINT( \
60*5113495bSYour Name 			"cfg_assoc_sta_limit", \
61*5113495bSYour Name 			1, \
62*5113495bSYour Name 			64, \
63*5113495bSYour Name 			10, \
64*5113495bSYour Name 			CFG_VALUE_OR_DEFAULT, \
65*5113495bSYour Name 			"CFG_ASSOC_STA_LIMIT")
66*5113495bSYour Name 
67*5113495bSYour Name /*
68*5113495bSYour Name  * <ini>
69*5113495bSYour Name  * cfg_enable_lte_coex - enable LTE COEX
70*5113495bSYour Name  * @Min: 0
71*5113495bSYour Name  * @Max: 1
72*5113495bSYour Name  * @Default: 0
73*5113495bSYour Name  *
74*5113495bSYour Name  * This ini is used to enable LTE COEX
75*5113495bSYour Name  *
76*5113495bSYour Name  * Related: None
77*5113495bSYour Name  *
78*5113495bSYour Name  * Supported Feature: STA
79*5113495bSYour Name  *
80*5113495bSYour Name  * Usage: Internal/External
81*5113495bSYour Name  *
82*5113495bSYour Name  * </ini>
83*5113495bSYour Name  */
84*5113495bSYour Name  #define CFG_ENABLE_LTE_COEX CFG_INI_BOOL( \
85*5113495bSYour Name 			"gEnableLTECoex", \
86*5113495bSYour Name 			0, \
87*5113495bSYour Name 			"enabled lte coex")
88*5113495bSYour Name 
89*5113495bSYour Name /*
90*5113495bSYour Name  * <ini>
91*5113495bSYour Name  * cfg_rate_for_tx_mgmt - Set rate for tx mgmt
92*5113495bSYour Name  * @Min: 0
93*5113495bSYour Name  * @Max: 0xFF
94*5113495bSYour Name  * @Default: 0xFF
95*5113495bSYour Name  *
96*5113495bSYour Name  * This ini is used to set rate for tx mgmt
97*5113495bSYour Name  *
98*5113495bSYour Name  * Related: None
99*5113495bSYour Name  *
100*5113495bSYour Name  * Supported Feature: STA
101*5113495bSYour Name  *
102*5113495bSYour Name  * Usage: Internal/External
103*5113495bSYour Name  *
104*5113495bSYour Name  * </ini>
105*5113495bSYour Name  */
106*5113495bSYour Name  #define CFG_RATE_FOR_TX_MGMT CFG_INI_UINT( \
107*5113495bSYour Name 			"gRateForTxMgmt", \
108*5113495bSYour Name 			0, \
109*5113495bSYour Name 			0xFF, \
110*5113495bSYour Name 			0xFF, \
111*5113495bSYour Name 			CFG_VALUE_OR_DEFAULT, \
112*5113495bSYour Name 			"set rate for mgmt tx")
113*5113495bSYour Name 
114*5113495bSYour Name /*
115*5113495bSYour Name  * <ini>
116*5113495bSYour Name  * cfg_rate_for_tx_mgmt_2g - Set rate for tx mgmt 2g
117*5113495bSYour Name  * @Min: 0
118*5113495bSYour Name  * @Max: 255
119*5113495bSYour Name  * @Default: 255
120*5113495bSYour Name  *
121*5113495bSYour Name  * This ini is used to set rate for tx mgmt 2g
122*5113495bSYour Name  * Related: None
123*5113495bSYour Name  *
124*5113495bSYour Name  * Supported Feature: STA
125*5113495bSYour Name  *
126*5113495bSYour Name  * Usage: Internal/External
127*5113495bSYour Name  *
128*5113495bSYour Name  * </ini>
129*5113495bSYour Name  */
130*5113495bSYour Name  #define CFG_RATE_FOR_TX_MGMT_2G CFG_INI_UINT( \
131*5113495bSYour Name 			"gRateForTxMgmt2G", \
132*5113495bSYour Name 			0, \
133*5113495bSYour Name 			255, \
134*5113495bSYour Name 			255, \
135*5113495bSYour Name 			CFG_VALUE_OR_DEFAULT, \
136*5113495bSYour Name 			"set rate for mgmt tx 2g")
137*5113495bSYour Name 
138*5113495bSYour Name /*
139*5113495bSYour Name  * <ini>
140*5113495bSYour Name  * cfg_rate_for_tx_mgmt_5g - Set rate for tx mgmt 5g
141*5113495bSYour Name  * @Min: 0
142*5113495bSYour Name  * @Max: 255
143*5113495bSYour Name  * @Default: 255
144*5113495bSYour Name  *
145*5113495bSYour Name  * This ini is used to set rate for tx mgmt 5g
146*5113495bSYour Name  *
147*5113495bSYour Name  * Related: None
148*5113495bSYour Name  *
149*5113495bSYour Name  * Supported Feature: STA
150*5113495bSYour Name  *
151*5113495bSYour Name  * Usage: Internal/External
152*5113495bSYour Name  *
153*5113495bSYour Name  * </ini>
154*5113495bSYour Name  */
155*5113495bSYour Name  #define CFG_RATE_FOR_TX_MGMT_5G CFG_INI_UINT( \
156*5113495bSYour Name 			"gRateForTxMgmt5G", \
157*5113495bSYour Name 			0, \
158*5113495bSYour Name 			255, \
159*5113495bSYour Name 			255, \
160*5113495bSYour Name 			CFG_VALUE_OR_DEFAULT, \
161*5113495bSYour Name 			"set rate for mgmt tx 5g")
162*5113495bSYour Name 
163*5113495bSYour Name /*
164*5113495bSYour Name  * <ini>
165*5113495bSYour Name  * gTelescopicBeaconWakeupEn - Set teles copic beacon wakeup
166*5113495bSYour Name  * @Min: 0
167*5113495bSYour Name  * @Max: 1
168*5113495bSYour Name  * @Default: 0
169*5113495bSYour Name  *
170*5113495bSYour Name  * This ini is used to set default teles copic beacon wakeup
171*5113495bSYour Name  *
172*5113495bSYour Name  * Related: None
173*5113495bSYour Name  *
174*5113495bSYour Name  * Supported Feature: STA
175*5113495bSYour Name  *
176*5113495bSYour Name  * Usage: Internal/External
177*5113495bSYour Name  *
178*5113495bSYour Name  * </ini>
179*5113495bSYour Name  */
180*5113495bSYour Name #define CFG_TELE_BCN_WAKEUP_EN CFG_INI_BOOL( \
181*5113495bSYour Name 			"gTelescopicBeaconWakeupEn", \
182*5113495bSYour Name 			0, \
183*5113495bSYour Name 			"set tescopic beacon wakeup")
184*5113495bSYour Name 
185*5113495bSYour Name /*
186*5113495bSYour Name  * <ini>
187*5113495bSYour Name  * telescopicBeaconMaxListenInterval - Set teles scopic beacon max listen value
188*5113495bSYour Name  * @Min: 0
189*5113495bSYour Name  * @Max: 7
190*5113495bSYour Name  * @Default: 5
191*5113495bSYour Name  *
192*5113495bSYour Name  * This ini is used to set teles scopic beacon max listen interval value
193*5113495bSYour Name  *
194*5113495bSYour Name  * Related: None
195*5113495bSYour Name  *
196*5113495bSYour Name  * Supported Feature: STA
197*5113495bSYour Name  *
198*5113495bSYour Name  * Usage: Internal/External
199*5113495bSYour Name  *
200*5113495bSYour Name  * </ini>
201*5113495bSYour Name  */
202*5113495bSYour Name  #define CFG_TELE_BCN_MAX_LI CFG_INI_UINT( \
203*5113495bSYour Name 			"telescopicBeaconMaxListenInterval", \
204*5113495bSYour Name 			0, \
205*5113495bSYour Name 			7, \
206*5113495bSYour Name 			5, \
207*5113495bSYour Name 			CFG_VALUE_OR_DEFAULT, \
208*5113495bSYour Name 			"set telescopic beacon max listen")
209*5113495bSYour Name 
210*5113495bSYour Name /*
211*5113495bSYour Name  * <ini>
212*5113495bSYour Name  * gSapGetPeerInfo - Enable/Disable remote peer info query support
213*5113495bSYour Name  * @Min: 0 - Disable remote peer info query support
214*5113495bSYour Name  * @Max: 1 - Enable remote peer info query support
215*5113495bSYour Name  * @Default: 1
216*5113495bSYour Name  *
217*5113495bSYour Name  * This ini is used to enable/disable remote peer info query support
218*5113495bSYour Name  *
219*5113495bSYour Name  * Usage: External
220*5113495bSYour Name  *
221*5113495bSYour Name  * </ini>
222*5113495bSYour Name  */
223*5113495bSYour Name  #define CFG_SAP_GET_PEER_INFO CFG_INI_BOOL( \
224*5113495bSYour Name 			"gSapGetPeerInfo", \
225*5113495bSYour Name 			1, \
226*5113495bSYour Name 			"sap get peer info")
227*5113495bSYour Name 
228*5113495bSYour Name /*
229*5113495bSYour Name  * <ini>
230*5113495bSYour Name  * gSapAllowAllChannel - Sap allow all channels
231*5113495bSYour Name  * @Min: 0
232*5113495bSYour Name  * @Max: 1
233*5113495bSYour Name  * @Default: 0
234*5113495bSYour Name  *
235*5113495bSYour Name  * This ini is used to allow all channels for SAP
236*5113495bSYour Name  *
237*5113495bSYour Name  * Related: None
238*5113495bSYour Name  *
239*5113495bSYour Name  * Supported Feature: SAP
240*5113495bSYour Name  *
241*5113495bSYour Name  * Usage: Internal/External
242*5113495bSYour Name  *
243*5113495bSYour Name  * </ini>
244*5113495bSYour Name  */
245*5113495bSYour Name  #define CFG_SAP_ALLOW_ALL_CHANNEL_PARAM CFG_INI_BOOL( \
246*5113495bSYour Name 			"gSapAllowAllChannel", \
247*5113495bSYour Name 			0, \
248*5113495bSYour Name 			"sap allow all channel params")
249*5113495bSYour Name 
250*5113495bSYour Name /*
251*5113495bSYour Name  * <ini>
252*5113495bSYour Name  * gSoftApMaxPeers - Set Max peers connected for SAP
253*5113495bSYour Name  * @Min: 1
254*5113495bSYour Name  * @Max: 64
255*5113495bSYour Name  * @Default: 10
256*5113495bSYour Name  *
257*5113495bSYour Name  * This ini is used to set Max peers connected for SAP
258*5113495bSYour Name  *
259*5113495bSYour Name  * Related: None
260*5113495bSYour Name  *
261*5113495bSYour Name  * Supported Feature: SAP
262*5113495bSYour Name  *
263*5113495bSYour Name  * Usage: Internal/External
264*5113495bSYour Name  *
265*5113495bSYour Name  * </ini>
266*5113495bSYour Name  */
267*5113495bSYour Name  #define CFG_SAP_MAX_NO_PEERS CFG_INI_UINT( \
268*5113495bSYour Name 			"gSoftApMaxPeers", \
269*5113495bSYour Name 			1, \
270*5113495bSYour Name 			64, \
271*5113495bSYour Name 			10, \
272*5113495bSYour Name 			CFG_VALUE_OR_DEFAULT, \
273*5113495bSYour Name 			"max no of peers")
274*5113495bSYour Name 
275*5113495bSYour Name /*
276*5113495bSYour Name  * <ini>
277*5113495bSYour Name  * gMaxOffloadPeers - Set max offload peers
278*5113495bSYour Name  * @Min: 2
279*5113495bSYour Name  * @Max: 5
280*5113495bSYour Name  * @Default: 2
281*5113495bSYour Name  *
282*5113495bSYour Name  * This ini is used to set default teles copic beacon wakeup
283*5113495bSYour Name  *
284*5113495bSYour Name  * Related: None
285*5113495bSYour Name  *
286*5113495bSYour Name  * Supported Feature: STA
287*5113495bSYour Name  *
288*5113495bSYour Name  * Usage: Internal/External
289*5113495bSYour Name  *
290*5113495bSYour Name  * </ini>
291*5113495bSYour Name  */
292*5113495bSYour Name  #define CFG_SAP_MAX_OFFLOAD_PEERS CFG_INI_UINT( \
293*5113495bSYour Name 			"gMaxOffloadPeers", \
294*5113495bSYour Name 			2, \
295*5113495bSYour Name 			5, \
296*5113495bSYour Name 			2, \
297*5113495bSYour Name 			CFG_VALUE_OR_DEFAULT, \
298*5113495bSYour Name 			"max offload peers")
299*5113495bSYour Name 
300*5113495bSYour Name /*
301*5113495bSYour Name  * <ini>
302*5113495bSYour Name  * gMaxOffloadReorderBuffs - Set max offload reorder buffs
303*5113495bSYour Name  * @Min: 0
304*5113495bSYour Name  * @Max: 3
305*5113495bSYour Name  * @Default: 2
306*5113495bSYour Name  *
307*5113495bSYour Name  * This ini is used to set max offload reorder buffs
308*5113495bSYour Name  *
309*5113495bSYour Name  * Related: None
310*5113495bSYour Name  *
311*5113495bSYour Name  * Supported Feature: STA
312*5113495bSYour Name  *
313*5113495bSYour Name  * Usage: Internal/External
314*5113495bSYour Name  *
315*5113495bSYour Name  * </ini>
316*5113495bSYour Name  */
317*5113495bSYour Name  #define CFG_SAP_MAX_OFFLOAD_REORDER_BUFFS CFG_INI_UINT( \
318*5113495bSYour Name 			"gMaxOffloadReorderBuffs", \
319*5113495bSYour Name 			0, \
320*5113495bSYour Name 			3, \
321*5113495bSYour Name 			2, \
322*5113495bSYour Name 			CFG_VALUE_OR_DEFAULT, \
323*5113495bSYour Name 			"sap max offload reorder buffs")
324*5113495bSYour Name 
325*5113495bSYour Name /*
326*5113495bSYour Name  * <ini>
327*5113495bSYour Name  * g_sap_chanswitch_beacon_cnt - Set channel switch beacon count
328*5113495bSYour Name  * @Min: 1
329*5113495bSYour Name  * @Max: 10
330*5113495bSYour Name  * @Default: 10
331*5113495bSYour Name  *
332*5113495bSYour Name  * This ini is used to set channel switch beacon count
333*5113495bSYour Name  *
334*5113495bSYour Name  * Related: None
335*5113495bSYour Name  *
336*5113495bSYour Name  * Supported Feature: STA
337*5113495bSYour Name  *
338*5113495bSYour Name  * Usage: Internal/External
339*5113495bSYour Name  *
340*5113495bSYour Name  * </ini>
341*5113495bSYour Name  */
342*5113495bSYour Name  #define CFG_SAP_CH_SWITCH_BEACON_CNT CFG_INI_UINT( \
343*5113495bSYour Name 			"g_sap_chanswitch_beacon_cnt", \
344*5113495bSYour Name 			1, \
345*5113495bSYour Name 			10, \
346*5113495bSYour Name 			10, \
347*5113495bSYour Name 			CFG_VALUE_OR_DEFAULT, \
348*5113495bSYour Name 			"set channel switch beacon count")
349*5113495bSYour Name 
350*5113495bSYour Name /*
351*5113495bSYour Name  * <ini>
352*5113495bSYour Name  * g_sap_chanswitch_mode - channel switch mode
353*5113495bSYour Name  * @Min: 0
354*5113495bSYour Name  * @Max: 1
355*5113495bSYour Name  * @Default: 1
356*5113495bSYour Name  *
357*5113495bSYour Name  * This ini is used to configure the value of channel switch mode, which is
358*5113495bSYour Name  * contained in the Channel Switch Announcement(CSA) information element sent
359*5113495bSYour Name  * by an SAP.
360*5113495bSYour Name  *
361*5113495bSYour Name  * 0 - CSA receiving STA doesn't need to do anything
362*5113495bSYour Name  * 1 - CSA receiving STA shall not transmit any more frames on the channel
363*5113495bSYour Name  *     until the scheduled channel switch occurs
364*5113495bSYour Name  *
365*5113495bSYour Name  * Related: none
366*5113495bSYour Name  *
367*5113495bSYour Name  * Supported Feature: SAP
368*5113495bSYour Name  *
369*5113495bSYour Name  * Usage: External
370*5113495bSYour Name  *
371*5113495bSYour Name  * </ini>
372*5113495bSYour Name  */
373*5113495bSYour Name #define CFG_SAP_CH_SWITCH_MODE CFG_INI_BOOL( \
374*5113495bSYour Name 			"g_sap_chanswitch_mode", \
375*5113495bSYour Name 			1, \
376*5113495bSYour Name 			"sap channel switch mode")
377*5113495bSYour Name 
378*5113495bSYour Name /*
379*5113495bSYour Name  * <ini>
380*5113495bSYour Name  * gEnableSapInternalRestart - Sap internal restart name
381*5113495bSYour Name  * @Min: 0
382*5113495bSYour Name  * @Max: 1
383*5113495bSYour Name  * @Default: 1
384*5113495bSYour Name  *
385*5113495bSYour Name  * This ini is used for sap internal restart name
386*5113495bSYour Name  *
387*5113495bSYour Name  * Related: None
388*5113495bSYour Name  *
389*5113495bSYour Name  * Supported Feature: SAP
390*5113495bSYour Name  *
391*5113495bSYour Name  * Usage: Internal/External
392*5113495bSYour Name  *
393*5113495bSYour Name  * </ini>
394*5113495bSYour Name  */
395*5113495bSYour Name  #define CFG_SAP_INTERNAL_RESTART CFG_INI_BOOL( \
396*5113495bSYour Name 			"gEnableSapInternalRestart", \
397*5113495bSYour Name 			1, \
398*5113495bSYour Name 			"sap internal restart")
399*5113495bSYour Name 
400*5113495bSYour Name /*
401*5113495bSYour Name  * <ini>
402*5113495bSYour Name  * gChanSwitchHostapdRateEnabled - Enable channale switch hostapd rate
403*5113495bSYour Name  * @Min: 0
404*5113495bSYour Name  * @Max: 1
405*5113495bSYour Name  * @Default: 0
406*5113495bSYour Name  *
407*5113495bSYour Name  * This ini is used to enable channale switch hostapd rate
408*5113495bSYour Name  *
409*5113495bSYour Name  * Related: None
410*5113495bSYour Name  *
411*5113495bSYour Name  * Supported Feature: SAP
412*5113495bSYour Name  *
413*5113495bSYour Name  * Usage: Internal/External
414*5113495bSYour Name  *
415*5113495bSYour Name  * </ini>
416*5113495bSYour Name  */
417*5113495bSYour Name  #define CFG_CHAN_SWITCH_HOSTAPD_RATE_ENABLED_NAME CFG_INI_BOOL( \
418*5113495bSYour Name 			"gChanSwitchHostapdRateEnabled", \
419*5113495bSYour Name 			0, \
420*5113495bSYour Name 			"chan switch hostapd rate enabled")
421*5113495bSYour Name 
422*5113495bSYour Name /*
423*5113495bSYour Name  * <ini>
424*5113495bSYour Name  * gReducedBeaconInterval - beacon interval reduced
425*5113495bSYour Name  * @Min: 0
426*5113495bSYour Name  * @Max: 100
427*5113495bSYour Name  * @Default: 0
428*5113495bSYour Name  *
429*5113495bSYour Name  * This ini is used to reduce beacon interval before channel
430*5113495bSYour Name  * switch (when val great than 0, or the feature is disabled).
431*5113495bSYour Name  * It would reduce the downtime on the STA side which is
432*5113495bSYour Name  * waiting for beacons from the AP to resume back transmission.
433*5113495bSYour Name  * Switch back the beacon_interval to its original value after
434*5113495bSYour Name  * channel switch based on the timeout.
435*5113495bSYour Name  *
436*5113495bSYour Name  * Related: none
437*5113495bSYour Name  *
438*5113495bSYour Name  * Usage: External
439*5113495bSYour Name  *
440*5113495bSYour Name  * </ini>
441*5113495bSYour Name  */
442*5113495bSYour Name #define CFG_REDUCED_BEACON_INTERVAL CFG_INI_UINT( \
443*5113495bSYour Name 			"gReducedBeaconInterval", \
444*5113495bSYour Name 			0, \
445*5113495bSYour Name 			100, \
446*5113495bSYour Name 			0, \
447*5113495bSYour Name 			CFG_VALUE_OR_DEFAULT, \
448*5113495bSYour Name 			"reduced beacon interval")
449*5113495bSYour Name 
450*5113495bSYour Name /*
451*5113495bSYour Name  * <ini>
452*5113495bSYour Name  * gCountryCodePriority - Priority to set country code
453*5113495bSYour Name  * @Min: 0
454*5113495bSYour Name  * @Max: 1
455*5113495bSYour Name  * @Default: 1
456*5113495bSYour Name  *
457*5113495bSYour Name  * This ini is used to set default gCountryCodePriority
458*5113495bSYour Name  *
459*5113495bSYour Name  * Related: None
460*5113495bSYour Name  *
461*5113495bSYour Name  * Supported Feature: SAP
462*5113495bSYour Name  *
463*5113495bSYour Name  * Usage: Internal
464*5113495bSYour Name  *
465*5113495bSYour Name  * </ini>
466*5113495bSYour Name  */
467*5113495bSYour Name #define CFG_COUNTRY_CODE_PRIORITY CFG_INI_BOOL( \
468*5113495bSYour Name 			"gCountryCodePriority", \
469*5113495bSYour Name 			1, \
470*5113495bSYour Name 			"Country code priority")
471*5113495bSYour Name 
472*5113495bSYour Name /*
473*5113495bSYour Name  * <ini>
474*5113495bSYour Name  * gSapPreferredChanLocation - Restrict channel switches between ondoor and
475*5113495bSYour Name  * outdoor.
476*5113495bSYour Name  * @Min: 0
477*5113495bSYour Name  * @Max: 2
478*5113495bSYour Name  * @Default: 0
479*5113495bSYour Name  *
480*5113495bSYour Name  * This ini is used for restricting channel switches between Indoor and outdoor
481*5113495bSYour Name  * channels after radar detection.
482*5113495bSYour Name  * 0- No preferred channel location
483*5113495bSYour Name  * 1- Use indoor channels only
484*5113495bSYour Name  * 2- Use outdoor channels only
485*5113495bSYour Name  * Related: NA.
486*5113495bSYour Name  *
487*5113495bSYour Name  * Supported Feature: DFS
488*5113495bSYour Name  *
489*5113495bSYour Name  * Usage: Internal/External
490*5113495bSYour Name  *
491*5113495bSYour Name  * </ini>
492*5113495bSYour Name  */
493*5113495bSYour Name #define CFG_SAP_PREF_CHANNEL_LOCATION CFG_INI_UINT( \
494*5113495bSYour Name 			"gSapPreferredChanLocation", \
495*5113495bSYour Name 			0, \
496*5113495bSYour Name 			2, \
497*5113495bSYour Name 			0, \
498*5113495bSYour Name 			CFG_VALUE_OR_DEFAULT, \
499*5113495bSYour Name 			"Sap preferred channel location")
500*5113495bSYour Name /*
501*5113495bSYour Name  * <ini>
502*5113495bSYour Name  * gSapForce11NFor11AC - Restrict SAP to 11n if set 1 even though
503*5113495bSYour Name  * hostapd.conf request for 11ac.
504*5113495bSYour Name  * @Min: 0
505*5113495bSYour Name  * @Max: 1
506*5113495bSYour Name  * @Default: 0
507*5113495bSYour Name  *
508*5113495bSYour Name  * Restrict SAP to 11n if set 1 even though hostapd.conf request for 11ac.
509*5113495bSYour Name  *
510*5113495bSYour Name  * 0- Do not force 11n for 11ac.
511*5113495bSYour Name  * 1- Force 11n for 11ac.
512*5113495bSYour Name  *
513*5113495bSYour Name  * Supported Feature: SAP
514*5113495bSYour Name  *
515*5113495bSYour Name  * Usage: Internal/External
516*5113495bSYour Name  *
517*5113495bSYour Name  * </ini>
518*5113495bSYour Name  */
519*5113495bSYour Name #define CFG_SAP_FORCE_11N_FOR_11AC CFG_INI_BOOL( \
520*5113495bSYour Name 			"gSapForce11NFor11AC", \
521*5113495bSYour Name 			0, \
522*5113495bSYour Name 			"Sap force 11n for 11ac")
523*5113495bSYour Name 
524*5113495bSYour Name /*
525*5113495bSYour Name  * <ini>
526*5113495bSYour Name  * gGoForce11NFor11AC - Restrict GO to 11n if set 1 even though
527*5113495bSYour Name  * hostapd.conf request for 11ac.
528*5113495bSYour Name  * @Min: 0
529*5113495bSYour Name  * @Max: 1
530*5113495bSYour Name  * @Default: 0
531*5113495bSYour Name  *
532*5113495bSYour Name  * Restrict GO to 11n if set 1 even though hostapd.conf request for 11ac.
533*5113495bSYour Name  *
534*5113495bSYour Name  * 0- Do not force 11n for 11ac.
535*5113495bSYour Name  * 1- Force 11n for 11ac.
536*5113495bSYour Name  *
537*5113495bSYour Name  * Supported Feature: GO
538*5113495bSYour Name  *
539*5113495bSYour Name  * Usage: Internal/External
540*5113495bSYour Name  *
541*5113495bSYour Name  * </ini>
542*5113495bSYour Name  */
543*5113495bSYour Name #define CFG_GO_FORCE_11N_FOR_11AC CFG_INI_BOOL( \
544*5113495bSYour Name 			"gGoForce11NFor11AC", \
545*5113495bSYour Name 			0, \
546*5113495bSYour Name 			"GO force 11n for 11ac")
547*5113495bSYour Name 
548*5113495bSYour Name 
549*5113495bSYour Name /*
550*5113495bSYour Name  * <ini>
551*5113495bSYour Name  * gEnableApRandomBssid - Create ramdom BSSID
552*5113495bSYour Name  * @Min: 0
553*5113495bSYour Name  * @Max: 1
554*5113495bSYour Name  * @Default: 0
555*5113495bSYour Name  *
556*5113495bSYour Name  * This ini is used to create a random BSSID in SoftAP mode to meet
557*5113495bSYour Name  * the Android requirement.
558*5113495bSYour Name  *
559*5113495bSYour Name  * Related: None.
560*5113495bSYour Name  *
561*5113495bSYour Name  * Supported Feature: SAP
562*5113495bSYour Name  *
563*5113495bSYour Name  * Usage: Internal/External
564*5113495bSYour Name  *
565*5113495bSYour Name  * </ini>
566*5113495bSYour Name  */
567*5113495bSYour Name #define CFG_AP_ENABLE_RANDOM_BSSID CFG_INI_BOOL( \
568*5113495bSYour Name 	"gEnableApRandomBssid", \
569*5113495bSYour Name 	0, \
570*5113495bSYour Name 	"Create ramdom BSSID")
571*5113495bSYour Name 
572*5113495bSYour Name /*
573*5113495bSYour Name  * <ini>
574*5113495bSYour Name  * gSapChannelAvoidance - SAP MCC channel avoidance.
575*5113495bSYour Name  * @Min: 0
576*5113495bSYour Name  * @Max: 1
577*5113495bSYour Name  * @Default: 0
578*5113495bSYour Name  *
579*5113495bSYour Name  * This ini is used to sets sap mcc channel avoidance.
580*5113495bSYour Name  *
581*5113495bSYour Name  * Related: None.
582*5113495bSYour Name  *
583*5113495bSYour Name  * Supported Feature: Concurrency
584*5113495bSYour Name  *
585*5113495bSYour Name  * Usage: Internal/External
586*5113495bSYour Name  *
587*5113495bSYour Name  * </ini>
588*5113495bSYour Name  */
589*5113495bSYour Name #define CFG_SAP_MCC_CHANNEL_AVOIDANCE CFG_INI_UINT( \
590*5113495bSYour Name 			"gSapChannelAvoidance", \
591*5113495bSYour Name 			0, \
592*5113495bSYour Name 			1, \
593*5113495bSYour Name 			0, \
594*5113495bSYour Name 			CFG_VALUE_OR_DEFAULT, \
595*5113495bSYour Name 			"SAP MCC channel avoidance")
596*5113495bSYour Name 
597*5113495bSYour Name /*
598*5113495bSYour Name  * <ini>
599*5113495bSYour Name  * gSAP11ACOverride - Override bw to 11ac for SAP in driver even if supplicant
600*5113495bSYour Name  *                    or hostapd configures HT.
601*5113495bSYour Name  * @Min: 0
602*5113495bSYour Name  * @Max: 1
603*5113495bSYour Name  * @Default: 0
604*5113495bSYour Name  *
605*5113495bSYour Name  * This ini is used to enable/disable 11AC override for SAP.
606*5113495bSYour Name  * Android UI does not provide advanced configuration options
607*5113495bSYour Name  * for SoftAP for Android O and below.
608*5113495bSYour Name  * Default override disabled for android. Can be enabled from
609*5113495bSYour Name  * ini for Android O and below.
610*5113495bSYour Name  *
611*5113495bSYour Name  *
612*5113495bSYour Name  * Supported Feature: SAP
613*5113495bSYour Name  *
614*5113495bSYour Name  *
615*5113495bSYour Name  * Usage: Internal/External
616*5113495bSYour Name  *
617*5113495bSYour Name  * </ini>
618*5113495bSYour Name  */
619*5113495bSYour Name #define CFG_SAP_11AC_OVERRIDE CFG_INI_BOOL( \
620*5113495bSYour Name 				"gSAP11ACOverride", \
621*5113495bSYour Name 				0, \
622*5113495bSYour Name 				"Override bw to 11ac for SAP")
623*5113495bSYour Name 
624*5113495bSYour Name /*
625*5113495bSYour Name  * <ini>
626*5113495bSYour Name  * gGO11ACOverride - Override bw to 11ac for P2P GO
627*5113495bSYour Name  * @Min: 0
628*5113495bSYour Name  * @Max: 1
629*5113495bSYour Name  * @Default: 1
630*5113495bSYour Name  *
631*5113495bSYour Name  * This ini is used to enable/disable 11AC override for GO.
632*5113495bSYour Name  * P2P GO also follows start_bss and since P2P GO could not be
633*5113495bSYour Name  * configured to setup VHT channel width in wpa_supplicant, driver
634*5113495bSYour Name  * can override 11AC.
635*5113495bSYour Name  *
636*5113495bSYour Name  *
637*5113495bSYour Name  * Supported Feature: P2P
638*5113495bSYour Name  *
639*5113495bSYour Name  *
640*5113495bSYour Name  * Usage: Internal/External
641*5113495bSYour Name  *
642*5113495bSYour Name  * </ini>
643*5113495bSYour Name  */
644*5113495bSYour Name #define CFG_GO_11AC_OVERRIDE CFG_INI_BOOL( \
645*5113495bSYour Name 				"gGO11ACOverride", \
646*5113495bSYour Name 				1, \
647*5113495bSYour Name 				"Override bw to 11ac for P2P GO")
648*5113495bSYour Name 
649*5113495bSYour Name /*
650*5113495bSYour Name  *
651*5113495bSYour Name  * <ini>
652*5113495bSYour Name  * enable_bcast_deauth_for_sap - Enable/Disable broadcast deauth support
653*5113495bSYour Name  *                                                     in driver for SAP
654*5113495bSYour Name  * @Min: 0
655*5113495bSYour Name  * @Max: 1
656*5113495bSYour Name  * @Default: 0
657*5113495bSYour Name  *
658*5113495bSYour Name  * This ini is used to enable/disable broadcast deauth support in driver
659*5113495bSYour Name  * for sap mode.
660*5113495bSYour Name  *
661*5113495bSYour Name  * Related: None
662*5113495bSYour Name  *
663*5113495bSYour Name  * Supported Feature: SAP
664*5113495bSYour Name  * Usage: External
665*5113495bSYour Name  *
666*5113495bSYour Name  * </ini>
667*5113495bSYour Name  */
668*5113495bSYour Name #define CFG_IS_SAP_BCAST_DEAUTH_ENABLED CFG_INI_BOOL( \
669*5113495bSYour Name 				"enable_bcast_deauth_for_sap", \
670*5113495bSYour Name 				0, \
671*5113495bSYour Name 				"Enable/Disable bcast deauth for SAP")
672*5113495bSYour Name 
673*5113495bSYour Name #ifdef WLAN_FEATURE_SAE
674*5113495bSYour Name /*
675*5113495bSYour Name  *
676*5113495bSYour Name  * <ini>
677*5113495bSYour Name  * enable_sae_for_sap - Enable/Disable SAE support in driver for SAP
678*5113495bSYour Name  * @Min: 0
679*5113495bSYour Name  * @Max: 1
680*5113495bSYour Name  * @Default: 1
681*5113495bSYour Name  *
682*5113495bSYour Name  * This ini is used to enable/disable SAE support in driver for SAP mode
683*5113495bSYour Name  * Driver will process/drop the SAE authentication frames based on this config.
684*5113495bSYour Name  *
685*5113495bSYour Name  * Related: None
686*5113495bSYour Name  *
687*5113495bSYour Name  * Supported Feature: SAE
688*5113495bSYour Name  * Usage: External
689*5113495bSYour Name  *
690*5113495bSYour Name  * </ini>
691*5113495bSYour Name  */
692*5113495bSYour Name #define CFG_IS_SAP_SAE_ENABLED CFG_INI_BOOL( \
693*5113495bSYour Name 				"enable_sae_for_sap", \
694*5113495bSYour Name 				1, \
695*5113495bSYour Name 				"Enable/Disable SAE support for SAP")
696*5113495bSYour Name 
697*5113495bSYour Name #define CFG_SAP_SAE CFG(CFG_IS_SAP_SAE_ENABLED)
698*5113495bSYour Name 
699*5113495bSYour Name #else
700*5113495bSYour Name #define CFG_SAP_SAE
701*5113495bSYour Name #endif /* WLAN_FEATURE_SAE */
702*5113495bSYour Name 
703*5113495bSYour Name /*
704*5113495bSYour Name  *
705*5113495bSYour Name  * <ini>
706*5113495bSYour Name  * enable_sap_fils_discovery - Enable/Disable fils discovery for 6Ghz SAP
707*5113495bSYour Name  * @Min: 0
708*5113495bSYour Name  * @Max: 1
709*5113495bSYour Name  * @Default: 1
710*5113495bSYour Name  *
711*5113495bSYour Name  * Enable: 6Ghz SAP transmits fils discovery frame at every 20ms
712*5113495bSYour Name  * Disable: 6Ghz SAP transmits probe response frame at every 20ms
713*5113495bSYour Name  *
714*5113495bSYour Name  * Related: None
715*5113495bSYour Name  *
716*5113495bSYour Name  * Supported Feature: SAP
717*5113495bSYour Name  * Usage: External
718*5113495bSYour Name  *
719*5113495bSYour Name  * </ini>
720*5113495bSYour Name  */
721*5113495bSYour Name #define CFG_6G_SAP_FILS_DISCOVERY_ENABLED CFG_INI_BOOL( \
722*5113495bSYour Name 					"enable_6g_sap_fils_discovery", \
723*5113495bSYour Name 					1, \
724*5113495bSYour Name 					"Enable/Disable fils discovery for SAP")
725*5113495bSYour Name 
726*5113495bSYour Name /*
727*5113495bSYour Name  * <ini>
728*5113495bSYour Name  * disable_mcs13_support - Disable mcs13 support.
729*5113495bSYour Name  * @Min: 0
730*5113495bSYour Name  * @Max: 1
731*5113495bSYour Name  * @Default: 0
732*5113495bSYour Name  *
733*5113495bSYour Name  * This ini is used to disable mcs13 if SAP works on 80p80MHZ/160MHZ/320MHZ
734*5113495bSYour Name  * and he_mcs_12_13_support enabled.
735*5113495bSYour Name  *
736*5113495bSYour Name  * Related: he_mcs_12_13_support
737*5113495bSYour Name  *
738*5113495bSYour Name  * Supported Feature: Concurrency
739*5113495bSYour Name  *
740*5113495bSYour Name  * Usage: Internal
741*5113495bSYour Name  *
742*5113495bSYour Name  * </ini>
743*5113495bSYour Name  */
744*5113495bSYour Name #define CFG_DISABLE_MCS13_SUPPORT CFG_INI_BOOL( \
745*5113495bSYour Name 			"disable_mcs13_support", \
746*5113495bSYour Name 			0, \
747*5113495bSYour Name 			"disable mcs13 support")
748*5113495bSYour Name 
749*5113495bSYour Name /*
750*5113495bSYour Name  * <ini>
751*5113495bSYour Name  * disable_sap_bcn_prot - Disable beacon protection for SAP
752*5113495bSYour Name  * @Min: 0
753*5113495bSYour Name  * @Max: 1
754*5113495bSYour Name  * @Default: 0
755*5113495bSYour Name  *
756*5113495bSYour Name  * This ini is used to disable beacon protection in SAP only
757*5113495bSYour Name  * for non-6 GHz or non-11be cases where BP is not mandatory.
758*5113495bSYour Name  *
759*5113495bSYour Name  * Related: None
760*5113495bSYour Name  *
761*5113495bSYour Name  * Supported Feature: SAP
762*5113495bSYour Name  *
763*5113495bSYour Name  * Usage: External
764*5113495bSYour Name  *
765*5113495bSYour Name  * </ini>
766*5113495bSYour Name  */
767*5113495bSYour Name #define CFG_DISABLE_SAP_BCN_PROT CFG_INI_BOOL(\
768*5113495bSYour Name 				"disable_sap_bcn_prot", \
769*5113495bSYour Name 				false, \
770*5113495bSYour Name 				"Disable beacon protection for SAP")
771*5113495bSYour Name 
772*5113495bSYour Name /*
773*5113495bSYour Name  * <ini>
774*5113495bSYour Name  * g_sap_ps_with_twt_enable - enable/disable power save between successive TWT
775*5113495bSYour Name  * SPs for SAP
776*5113495bSYour Name  * @Min: 0
777*5113495bSYour Name  * @Max: 1
778*5113495bSYour Name  * @Default: 0
779*5113495bSYour Name  *
780*5113495bSYour Name  * This ini is used to enable/disable power save between successive
781*5113495bSYour Name  * TWT SPs for SAP
782*5113495bSYour Name  *
783*5113495bSYour Name  * Related: None
784*5113495bSYour Name  *
785*5113495bSYour Name  * Supported Feature: SAP
786*5113495bSYour Name  *
787*5113495bSYour Name  * Usage: External
788*5113495bSYour Name  *
789*5113495bSYour Name  * </ini>
790*5113495bSYour Name  */
791*5113495bSYour Name #define CFG_SAP_PS_WITH_TWT CFG_INI_BOOL(\
792*5113495bSYour Name 				"g_sap_ps_with_twt_enable", \
793*5113495bSYour Name 				false, \
794*5113495bSYour Name 				"Enable/Disable SAP power save with twt")
795*5113495bSYour Name 
796*5113495bSYour Name #define CFG_SAP_ALL \
797*5113495bSYour Name 	CFG_SAP_SAE \
798*5113495bSYour Name 	CFG(CFG_AP_ENABLE_RANDOM_BSSID) \
799*5113495bSYour Name 	CFG(CFG_BEACON_INTERVAL) \
800*5113495bSYour Name 	CFG(CFG_DTIM_PERIOD) \
801*5113495bSYour Name 	CFG(CFG_LISTEN_INTERVAL) \
802*5113495bSYour Name 	CFG(CFG_11G_ONLY_POLICY) \
803*5113495bSYour Name 	CFG(CFG_ASSOC_STA_LIMIT) \
804*5113495bSYour Name 	CFG(CFG_ENABLE_LTE_COEX) \
805*5113495bSYour Name 	CFG(CFG_RATE_FOR_TX_MGMT) \
806*5113495bSYour Name 	CFG(CFG_RATE_FOR_TX_MGMT_2G) \
807*5113495bSYour Name 	CFG(CFG_RATE_FOR_TX_MGMT_5G) \
808*5113495bSYour Name 	CFG(CFG_TELE_BCN_WAKEUP_EN) \
809*5113495bSYour Name 	CFG(CFG_TELE_BCN_MAX_LI) \
810*5113495bSYour Name 	CFG(CFG_SAP_MCC_CHANNEL_AVOIDANCE) \
811*5113495bSYour Name 	CFG(CFG_SAP_GET_PEER_INFO) \
812*5113495bSYour Name 	CFG(CFG_SAP_ALLOW_ALL_CHANNEL_PARAM) \
813*5113495bSYour Name 	CFG(CFG_SAP_MAX_NO_PEERS) \
814*5113495bSYour Name 	CFG(CFG_SAP_MAX_OFFLOAD_PEERS) \
815*5113495bSYour Name 	CFG(CFG_SAP_MAX_OFFLOAD_REORDER_BUFFS) \
816*5113495bSYour Name 	CFG(CFG_SAP_CH_SWITCH_BEACON_CNT) \
817*5113495bSYour Name 	CFG(CFG_SAP_CH_SWITCH_MODE) \
818*5113495bSYour Name 	CFG(CFG_SAP_INTERNAL_RESTART) \
819*5113495bSYour Name 	CFG(CFG_CHAN_SWITCH_HOSTAPD_RATE_ENABLED_NAME) \
820*5113495bSYour Name 	CFG(CFG_REDUCED_BEACON_INTERVAL) \
821*5113495bSYour Name 	CFG(CFG_MAX_LI_MODULATED_DTIM) \
822*5113495bSYour Name 	CFG(CFG_COUNTRY_CODE_PRIORITY) \
823*5113495bSYour Name 	CFG(CFG_SAP_PREF_CHANNEL_LOCATION) \
824*5113495bSYour Name 	CFG(CFG_SAP_FORCE_11N_FOR_11AC) \
825*5113495bSYour Name 	CFG(CFG_SAP_11AC_OVERRIDE) \
826*5113495bSYour Name 	CFG(CFG_GO_FORCE_11N_FOR_11AC) \
827*5113495bSYour Name 	CFG(CFG_GO_11AC_OVERRIDE) \
828*5113495bSYour Name 	CFG(CFG_IS_SAP_BCAST_DEAUTH_ENABLED) \
829*5113495bSYour Name 	CFG(CFG_6G_SAP_FILS_DISCOVERY_ENABLED) \
830*5113495bSYour Name 	CFG(CFG_DISABLE_MCS13_SUPPORT) \
831*5113495bSYour Name 	CFG(CFG_DISABLE_SAP_BCN_PROT) \
832*5113495bSYour Name 	CFG(CFG_SAP_PS_WITH_TWT)
833*5113495bSYour Name 
834*5113495bSYour Name #endif /* __CFG_MLME_SAP_H */
835