
Define mlme sta configures based on converged cfg component, add APIs to get and set mlme sta configurations. Change-Id: I1a03037081ebe27760d23405adc3cc9042ba7698 CRs-Fixed: 2312002
396 rindas
7.8 KiB
C
396 rindas
7.8 KiB
C
/*
|
|
* Copyright (c) 2012-2018, The Linux Foundation. All rights reserved.
|
|
*
|
|
* Permission to use, copy, modify, and/or distribute this software for any
|
|
* purpose with or without fee is hereby granted, provided that the above
|
|
* copyright notice and this permission notice appear in all copies.
|
|
*
|
|
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
|
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
*/
|
|
|
|
/**
|
|
* DOC: This file contains configuration definitions for MLME STA.
|
|
*/
|
|
|
|
#ifndef CFG_MLME_STA_H__
|
|
#define CFG_MLME_STA_H__
|
|
|
|
#include "wlan_mlme_public_struct.h"
|
|
|
|
/*
|
|
* <ini>
|
|
* gStaKeepAlivePeriod - Sends NULL frame to AP periodically in
|
|
* seconds to notify STA's existence
|
|
* @Min: 0
|
|
* @Max: 1000
|
|
* @Default: 60
|
|
*
|
|
* This ini is used to send default NULL frame to AP
|
|
*
|
|
* Related: None
|
|
*
|
|
* Supported Feature: STA
|
|
*
|
|
* Usage: Internal/External
|
|
*
|
|
* </ini>
|
|
*/
|
|
#define CFG_INFRA_STA_KEEP_ALIVE_PERIOD CFG_INI_UINT( \
|
|
"gStaKeepAlivePeriod", \
|
|
0, \
|
|
1000, \
|
|
60, \
|
|
CFG_VALUE_OR_DEFAULT, \
|
|
"send default NULL frame to AP")
|
|
|
|
/*
|
|
* <ini>
|
|
* tgt_gtx_usr_cfg - target gtx user config
|
|
* @Min: 0
|
|
* @Max: 32
|
|
* @Default: 32
|
|
*
|
|
* This ini is used to set target gtx user config.
|
|
*
|
|
* Related: None
|
|
*
|
|
* Usage: Internal/External
|
|
*
|
|
* </ini>
|
|
*/
|
|
#define CFG_TGT_GTX_USR_CFG CFG_INI_UINT( \
|
|
"tgt_gtx_usr_cfg", \
|
|
0, \
|
|
32, \
|
|
32, \
|
|
CFG_VALUE_OR_DEFAULT, \
|
|
"target gtx user config")
|
|
|
|
/*
|
|
* <ini>
|
|
* pmkidModes - Enable PMKID modes
|
|
* This INI is used to enable PMKID feature options
|
|
* @Min: 0
|
|
* @Max: 3
|
|
* @Default: 3
|
|
*
|
|
* Related: None
|
|
*
|
|
* Supported Feature: Scan
|
|
*
|
|
* Usage: External
|
|
*
|
|
* </ini>
|
|
*/
|
|
#define CFG_PMKID_MODES CFG_INI_UINT( \
|
|
"pmkidModes", \
|
|
0, \
|
|
3, \
|
|
3, \
|
|
CFG_VALUE_OR_DEFAULT, \
|
|
"PMKID feature options")
|
|
|
|
/*
|
|
* <ini>
|
|
* gIgnorePeerErpInfo - Ignore peer information
|
|
* @Min: 0
|
|
* @Max: 1
|
|
* @Default: 0
|
|
*
|
|
* This ini is used to ignore default peer info
|
|
*
|
|
* Related: None
|
|
*
|
|
* Supported Feature: STA
|
|
*
|
|
* Usage: Internal/External
|
|
*
|
|
* </ini>
|
|
*/
|
|
#define CFG_IGNORE_PEER_ERP_INFO CFG_INI_BOOL( \
|
|
"gIgnorePeerErpInfo", \
|
|
0, \
|
|
"ignore default peer info")
|
|
|
|
/*
|
|
* <ini>
|
|
* gStaPrefer80MHzOver160MHz - set sta preference to connect in 80HZ/160HZ
|
|
* @Min: 0
|
|
* @Max: 1
|
|
* @Default: 1
|
|
*
|
|
* This ini is used to set sta preference to connect in 80HZ/160HZ
|
|
*
|
|
* 0 - Connects in 160MHz 1x1 when AP is 160MHz 2x2
|
|
* 1 - Connects in 80MHz 2x2 when AP is 160MHz 2x2
|
|
*
|
|
* Related: NA
|
|
*
|
|
* Supported Feature: 11AC
|
|
*
|
|
* Usage: External
|
|
*
|
|
* </ini>
|
|
*/
|
|
#define CFG_STA_PREFER_80MHZ_OVER_160MHZ CFG_INI_BOOL( \
|
|
"gStaPrefer80MHzOver160MHz", \
|
|
1, \
|
|
"Sta preference to connect in 80HZ/160HZ")
|
|
|
|
/*
|
|
* <ini>
|
|
* gEnable5gEBT - Enables/disables 5G early beacon termination. When enabled
|
|
* terminate the reception of beacon if the TIM element is
|
|
* clear for the power saving
|
|
* @Min: 0
|
|
* @Max: 1
|
|
* @Default: 1
|
|
*
|
|
* This ini is used to set default 5G early beacon termination
|
|
*
|
|
* Related: None
|
|
*
|
|
* Supported Feature: STA
|
|
*
|
|
* Usage: Internal/External
|
|
*
|
|
* </ini>
|
|
*/
|
|
#define CFG_PPS_ENABLE_5G_EBT CFG_INI_BOOL( \
|
|
"gEnable5gEBT", \
|
|
1, \
|
|
"5G early beacon termination")
|
|
|
|
/*
|
|
* <ini>
|
|
* gSendDeauthBeforeCon - Send deauth before connection or not
|
|
* @Min: 0
|
|
* @Max: 1
|
|
* @Default: 0
|
|
*
|
|
* This ini is used to set whether send deauth before connection or
|
|
* not. If last disconnection was due to HB failure and we reconnect
|
|
* to same AP next time, send deauth before starting connection.
|
|
*
|
|
* Related: None
|
|
*
|
|
* Supported Feature: STA
|
|
*
|
|
* Usage: Internal/External
|
|
*
|
|
* </ini>
|
|
*/
|
|
#define CFG_ENABLE_DEAUTH_BEFORE_CONNECTION CFG_INI_BOOL( \
|
|
"gSendDeauthBeforeCon", \
|
|
0, \
|
|
"send deauth before connection")
|
|
|
|
/*
|
|
* <ini>
|
|
* CFG_DOT11P_MODE - 802.11p mode
|
|
* @Min: CFG_11P_DISABLED
|
|
* @Max: CFG_11P_CONCURRENT
|
|
* @Default: CFG_11P_DISABLED
|
|
*
|
|
* This ini used to set 802.11p mode.
|
|
*
|
|
*
|
|
* Usage: Internal/External
|
|
*
|
|
* </ini>
|
|
*/
|
|
#define CFG_DOT11P_MODE CFG_INI_UINT( \
|
|
"gDot11PMode", \
|
|
CFG_11P_DISABLED, \
|
|
CFG_11P_CONCURRENT, \
|
|
CFG_11P_DISABLED, \
|
|
CFG_VALUE_OR_DEFAULT, \
|
|
"802.11p mode")
|
|
|
|
/*
|
|
* <ini>
|
|
* gEnable_go_cts2self_for_sta - Indicate firmware to stop NOA and
|
|
* start using cts2self
|
|
* @Min: 0
|
|
* @Max: 1
|
|
* @Default: 0
|
|
*
|
|
* When gEnable_go_cts2self_for_sta is enabled then if a legacy
|
|
* client connects to P2P GO, Host will send a WMI VDEV command
|
|
* to FW to stop using NOA for P2P GO
|
|
* and start using CTS2SELF.
|
|
*
|
|
*
|
|
* Supported Feature: P2P
|
|
*
|
|
*
|
|
* Usage: Internal/External
|
|
*
|
|
* </ini>
|
|
*/
|
|
#define CFG_ENABLE_GO_CTS2SELF_FOR_STA CFG_INI_BOOL( \
|
|
"gEnable_go_cts2self_for_sta", \
|
|
0, \
|
|
"firmware to stop NOA and start using cts2self")
|
|
|
|
/*
|
|
* <ini>
|
|
* g_qcn_ie_support - QCN IE support
|
|
* @Min: 0 (disabled)
|
|
* @Max: 1 (enabled)
|
|
* @Default: 1 (enabled)
|
|
*
|
|
* This config item is used to support QCN IE in probe/assoc/reassoc request
|
|
* for STA mode. QCN IE support is not added for SAP mode.
|
|
*
|
|
* Related: N/A
|
|
*
|
|
* Supported Feature: N/A
|
|
*
|
|
* Usage: Internal/External
|
|
*
|
|
* </ini>
|
|
*/
|
|
#define CFG_QCN_IE_SUPPORT CFG_INI_BOOL( \
|
|
"g_qcn_ie_support", \
|
|
1, \
|
|
"QCN IE support")
|
|
|
|
/*
|
|
* <ini>
|
|
* g_fils_max_chan_guard_time - Set maximum channel guard time(ms)
|
|
* @Min: 0
|
|
* @Max: 10
|
|
* @Default: 0
|
|
*
|
|
* This ini is used to set maximum channel guard time in milliseconds.
|
|
*
|
|
* Related: None
|
|
*
|
|
* Supported Feature: FILS
|
|
*
|
|
* Usage: External
|
|
*
|
|
* </ini>
|
|
*/
|
|
#define CFG_FILS_MAX_CHAN_GUARD_TIME CFG_INI_UINT( \
|
|
"g_fils_max_chan_guard_time", \
|
|
0, \
|
|
10, \
|
|
0, \
|
|
CFG_VALUE_OR_DEFAULT, \
|
|
"Set maximum channel guard time")
|
|
|
|
/*
|
|
* <ini>
|
|
* force_rsne_override - force rsnie override from user
|
|
* @Min: 0
|
|
* @Max: 1
|
|
* @Default: 0
|
|
*
|
|
* This ini is used to enable/disable test mode to force rsne override used in
|
|
* security enhancement test cases to pass the RSNIE sent by user in
|
|
* assoc request.
|
|
*
|
|
* Related: None
|
|
*
|
|
* Supported Feature: STA
|
|
*
|
|
* Usage: internal
|
|
*
|
|
* </ini>
|
|
*/
|
|
#define CFG_FORCE_RSNE_OVERRIDE CFG_INI_BOOL( \
|
|
"force_rsne_override", \
|
|
0, \
|
|
"Set obss active dwelltime")
|
|
|
|
/*
|
|
* <ini>
|
|
* SingleTIDRC - Set replay counter for all TID's
|
|
* @Min: 0 Separate replay counter for all TID
|
|
* @Max: 1 Single replay counter for all TID
|
|
* @Default: 1
|
|
*
|
|
* This ini is used to set replay counter for all TID's
|
|
*
|
|
* Related: None.
|
|
*
|
|
* Supported Feature: WMM
|
|
*
|
|
* Usage: Internal/External
|
|
*
|
|
* </ini>
|
|
*/
|
|
#define CFG_SINGLE_TID_RC CFG_INI_BOOL( \
|
|
"SingleTIDRC", \
|
|
1, \
|
|
"replay counter for all TID")
|
|
|
|
/*
|
|
* wait_cnf_timeout - Wait assoc cnf timeout
|
|
* @Min: 10
|
|
* @Max: 3000
|
|
* @Default: 1000
|
|
*
|
|
* This is internal configure for waiting assoc cnf timeout
|
|
*
|
|
* Related: None
|
|
*
|
|
* Usage: Internal
|
|
*
|
|
*/
|
|
#define CFG_WT_CNF_TIMEOUT CFG_UINT( \
|
|
"wait_cnf_timeout", \
|
|
10, \
|
|
3000, \
|
|
1000, \
|
|
CFG_VALUE_OR_DEFAULT, \
|
|
"Wait confirm timeout")
|
|
|
|
/*
|
|
* current_rssi - current rssi
|
|
* @Min: 0
|
|
* @Max: 127
|
|
* @Default: 0
|
|
*
|
|
* This is internal configure for current rssi
|
|
*
|
|
* Related: None
|
|
*
|
|
* Usage: Internal
|
|
*
|
|
*/
|
|
#define CFG_CURRENT_RSSI CFG_UINT( \
|
|
"current_rssi", \
|
|
0, \
|
|
127, \
|
|
0, \
|
|
CFG_VALUE_OR_DEFAULT, \
|
|
"Current RSSI")
|
|
|
|
#define CFG_STA_ALL \
|
|
CFG(CFG_INFRA_STA_KEEP_ALIVE_PERIOD) \
|
|
CFG(CFG_TGT_GTX_USR_CFG) \
|
|
CFG(CFG_PMKID_MODES) \
|
|
CFG(CFG_IGNORE_PEER_ERP_INFO) \
|
|
CFG(CFG_STA_PREFER_80MHZ_OVER_160MHZ) \
|
|
CFG(CFG_PPS_ENABLE_5G_EBT) \
|
|
CFG(CFG_ENABLE_DEAUTH_BEFORE_CONNECTION) \
|
|
CFG(CFG_DOT11P_MODE) \
|
|
CFG(CFG_ENABLE_GO_CTS2SELF_FOR_STA) \
|
|
CFG(CFG_QCN_IE_SUPPORT) \
|
|
CFG(CFG_FILS_MAX_CHAN_GUARD_TIME) \
|
|
CFG(CFG_FORCE_RSNE_OVERRIDE) \
|
|
CFG(CFG_SINGLE_TID_RC) \
|
|
CFG(CFG_WT_CNF_TIMEOUT) \
|
|
CFG(CFG_CURRENT_RSSI)
|
|
|
|
#endif /* CFG_MLME_STA_H__ */
|