qcacld-3.0: Add INI and IOCTL template for DFS feature
Add INI and IOCTL template for DFS feature for documentation. CRs-Fixed: 1106837 Change-Id: I134b355717bbe057c56accd89aed8eed5d532e85
This commit is contained in:

committad av
Sandeep Puligilla

förälder
838a424a42
incheckning
825f1ba5f2
@@ -194,6 +194,45 @@ typedef struct {
|
||||
#define RC_2_RATE_IDX_11AX(_rc) ((_rc) & 0x1f)
|
||||
#define HT_RC_2_STREAMS_11AX(_rc) (((_rc) >> 5) & 0x7)
|
||||
|
||||
/*
|
||||
* <ioctl>
|
||||
* setRadar - simulate a radar event
|
||||
*
|
||||
* @INPUT: None
|
||||
*
|
||||
* @OUTPUT: None
|
||||
*
|
||||
* This IOCTL is used to simulate a radar event, state machines for
|
||||
* SAP will behave as same way in which a radar event is reported by WMA
|
||||
*
|
||||
* @E.g: iwpriv wlan0 setRadar
|
||||
*
|
||||
* Supported Feature: DFS
|
||||
*
|
||||
* Usage: Internal
|
||||
*
|
||||
* </ioctl>
|
||||
*/
|
||||
|
||||
/*
|
||||
* <ioctl>
|
||||
* setRadarDbg - enable/disable radar specific logs
|
||||
*
|
||||
* @INPUT: 1/0
|
||||
*
|
||||
* @OUTPUT: None
|
||||
*
|
||||
* This IOCTL is enable radar phyerror info in wma
|
||||
*
|
||||
* @E.g: iwpriv wlan0 setRadarDbg <enable>
|
||||
* iwpriv wlan0 setRadarDbg 1
|
||||
*
|
||||
* Supported Feature: DFS
|
||||
*
|
||||
* Usage: Internal
|
||||
*
|
||||
* </ioctl>
|
||||
*/
|
||||
enum {
|
||||
QCSAP_PARAM_MAX_ASSOC = 1,
|
||||
QCSAP_PARAM_GET_WLAN_DBG,
|
||||
|
@@ -3732,6 +3732,50 @@ enum station_keepalive_method {
|
||||
#define CFG_ENABLE_BYPASS_11D_MAX (1)
|
||||
#define CFG_ENABLE_BYPASS_11D_DEFAULT (1)
|
||||
|
||||
/*
|
||||
* gEnableDFSChnlScan - enable dfs channel scan.
|
||||
* @Min: 0
|
||||
* @Max: 1
|
||||
* @Default: 1
|
||||
*
|
||||
* This ini is used to enable/disable dfs channels in scan, enabling this
|
||||
* will enable driver to include dfs channels in its scan list.
|
||||
* Related: NA
|
||||
*
|
||||
* Supported Feature: DFS, Scan
|
||||
*
|
||||
* Usage: Internal/External
|
||||
*
|
||||
* </ini>
|
||||
*/
|
||||
#define CFG_ENABLE_DFS_CHNL_SCAN_NAME "gEnableDFSChnlScan"
|
||||
#define CFG_ENABLE_DFS_CHNL_SCAN_MIN (0)
|
||||
#define CFG_ENABLE_DFS_CHNL_SCAN_MAX (1)
|
||||
#define CFG_ENABLE_DFS_CHNL_SCAN_DEFAULT (1)
|
||||
|
||||
/*
|
||||
* <ini>
|
||||
* gEnableDFSPnoChnlScan - enable dfs channels in PNO scan
|
||||
* @Min: 0
|
||||
* @Max: 1
|
||||
* @Default: 1
|
||||
*
|
||||
* This ini is used to enable/disable dfs channels in PNO scan request,
|
||||
* enabling this ini enables driver to include dfs channels in its
|
||||
* PNO scan request
|
||||
* Related: NA
|
||||
*
|
||||
* Supported Feature: DFS, PNO
|
||||
*
|
||||
* Usage: Internal/External
|
||||
*
|
||||
* </ini>
|
||||
*/
|
||||
#define CFG_ENABLE_DFS_PNO_CHNL_SCAN_NAME "gEnableDFSPnoChnlScan"
|
||||
#define CFG_ENABLE_DFS_PNO_CHNL_SCAN_MIN (0)
|
||||
#define CFG_ENABLE_DFS_PNO_CHNL_SCAN_MAX (1)
|
||||
#define CFG_ENABLE_DFS_PNO_CHNL_SCAN_DEFAULT (1)
|
||||
|
||||
/*
|
||||
* <ini>
|
||||
* gEnableDumpCollect - It will use for collect the dumps
|
||||
@@ -4162,26 +4206,115 @@ typedef enum {
|
||||
#define CFG_HT_SMPS_CAP_FEATURE_MAX (3)
|
||||
#define CFG_HT_SMPS_CAP_FEATURE_DEFAULT (3)
|
||||
|
||||
/*
|
||||
* <ini>
|
||||
* gDisableDFSChSwitch - Disable channel switch if radar is found
|
||||
* @Min: 0
|
||||
* @Max: 1
|
||||
* @Default: 0
|
||||
*
|
||||
* This ini is used to disable channel switch if radar is found
|
||||
* on that channel.
|
||||
* Related: NA.
|
||||
*
|
||||
* Supported Feature: DFS
|
||||
*
|
||||
* Usage: Internal
|
||||
*
|
||||
* </ini>
|
||||
*/
|
||||
#define CFG_DISABLE_DFS_CH_SWITCH "gDisableDFSChSwitch"
|
||||
#define CFG_DISABLE_DFS_CH_SWITCH_MIN (0)
|
||||
#define CFG_DISABLE_DFS_CH_SWITCH_MAX (1)
|
||||
#define CFG_DISABLE_DFS_CH_SWITCH_DEFAULT (0)
|
||||
|
||||
/*
|
||||
* <ini>
|
||||
* gEnableDFSMasterCap - Enable DFS master capability
|
||||
* @Min: 0
|
||||
* @Max: 1
|
||||
* @Default: 0
|
||||
*
|
||||
* This ini is used to enable/disable the DFS master capability.
|
||||
* Disabling it will cause driver to not advertise the spectrum
|
||||
* management capability
|
||||
* Related: NA.
|
||||
*
|
||||
* Supported Feature: DFS
|
||||
*
|
||||
* Usage: Internal/External
|
||||
*
|
||||
* </ini>
|
||||
*/
|
||||
#define CFG_ENABLE_DFS_MASTER_CAPABILITY "gEnableDFSMasterCap"
|
||||
#define CFG_ENABLE_DFS_MASTER_CAPABILITY_MIN (0)
|
||||
#define CFG_ENABLE_DFS_MASTER_CAPABILITY_MAX (1)
|
||||
#define CFG_ENABLE_DFS_MASTER_CAPABILITY_DEFAULT (0)
|
||||
|
||||
/*
|
||||
* <ini>
|
||||
* gSapPreferredChanLocation - Restrict channel switches between ondoor and
|
||||
* outdoor.
|
||||
* @Min: 0
|
||||
* @Max: 2
|
||||
* @Default: 0
|
||||
*
|
||||
* This ini is used for restricting channel switches between Indoor and outdoor
|
||||
* channels after radar detection.
|
||||
* 0- No preferred channel location
|
||||
* 1- Use indoor channels only
|
||||
* 2- Use outdoor channels only
|
||||
* Related: NA.
|
||||
*
|
||||
* Supported Feature: DFS
|
||||
*
|
||||
* Usage: Internal/External
|
||||
*
|
||||
* </ini>
|
||||
*/
|
||||
#define CFG_SAP_PREFERRED_CHANNEL_LOCATION "gSapPreferredChanLocation"
|
||||
#define CFG_SAP_PREFERRED_CHANNEL_LOCATION_MIN (0)
|
||||
#define CFG_SAP_PREFERRED_CHANNEL_LOCATION_MAX (2)
|
||||
#define CFG_SAP_PREFERRED_CHANNEL_LOCATION_DEFAULT (0)
|
||||
|
||||
/*
|
||||
* <ini>
|
||||
* gDisableDfsJapanW53 - Block W53 channels in random channel selection
|
||||
* @Min: 0
|
||||
* @Max: 1
|
||||
* @Default: 0
|
||||
*
|
||||
* This ini is used to block W53 Japan channel in random channel selection
|
||||
* Related: NA.
|
||||
*
|
||||
* Supported Feature: DFS
|
||||
*
|
||||
* Usage: Internal/External
|
||||
*
|
||||
* </ini>
|
||||
*/
|
||||
#define CFG_DISABLE_DFS_JAPAN_W53 "gDisableDfsJapanW53"
|
||||
#define CFG_DISABLE_DFS_JAPAN_W53_MIN (0)
|
||||
#define CFG_DISABLE_DFS_JAPAN_W53_MAX (1)
|
||||
#define CFG_DISABLE_DFS_JAPAN_W53_DEFAULT (0)
|
||||
|
||||
/*
|
||||
* <ini>
|
||||
* gDisableDfsJapanW53 - Enable dfs phyerror filtering offload in FW
|
||||
* @Min: 0
|
||||
* @Max: 1
|
||||
* @Default: 1
|
||||
*
|
||||
* This ini is used to to enable dfs phyerror filtering offload to firmware
|
||||
* Enabling it will cause basic phy error to be discarding in firmware.
|
||||
* Related: NA.
|
||||
*
|
||||
* Supported Feature: DFS
|
||||
*
|
||||
* Usage: Internal/External
|
||||
*
|
||||
* </ini>
|
||||
*/
|
||||
#define CFG_ENABLE_DFS_PHYERR_FILTEROFFLOAD_NAME "dfsPhyerrFilterOffload"
|
||||
#define CFG_ENABLE_DFS_PHYERR_FILTEROFFLOAD_MIN (0)
|
||||
#define CFG_ENABLE_DFS_PHYERR_FILTEROFFLOAD_MAX (1)
|
||||
@@ -4569,6 +4702,22 @@ typedef enum {
|
||||
* 0 - Don't Skip DFS Channel in case of P2P Search
|
||||
* 1 - Skip DFS Channel in case of P2P Search
|
||||
*/
|
||||
/*
|
||||
* <ini>
|
||||
* gSkipDfsChannelInP2pSearch - Skip DFS Channel in case of P2P Search
|
||||
* @Min: 0
|
||||
* @Max: 1
|
||||
* @Default: 1
|
||||
*
|
||||
* This ini is used to to disable(skip) dfs channel in p2p search.
|
||||
* Related: NA.
|
||||
*
|
||||
* Supported Feature: DFS P2P
|
||||
*
|
||||
* Usage: Internal/External
|
||||
*
|
||||
* </ini>
|
||||
*/
|
||||
#define CFG_ENABLE_SKIP_DFS_IN_P2P_SEARCH_NAME "gSkipDfsChannelInP2pSearch"
|
||||
#define CFG_ENABLE_SKIP_DFS_IN_P2P_SEARCH_MIN (0)
|
||||
#define CFG_ENABLE_SKIP_DFS_IN_P2P_SEARCH_MAX (1)
|
||||
|
Referens i nytt ärende
Block a user