blob: f9fb2c40839b3b18749009cc6f4d54e5e5f7a442 [file] [log] [blame]
/*
* Copyright (c) 2012-2018 The Linux Foundation. All rights reserved.
*
* Previously licensed under the ISC license by Qualcomm Atheros, Inc.
*
*
* 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.
*/
/*
* This file was originally distributed by Qualcomm Atheros, Inc.
* under proprietary terms before Copyright ownership was assigned
* to the Linux Foundation.
*/
#if !defined( HDD_CONFIG_H__ )
#define HDD_CONFIG_H__
/**===========================================================================
\file hdd_Config.h
\brief Android WLAN Adapter Configuration functions
==========================================================================*/
/* $HEADER$ */
/*---------------------------------------------------------------------------
Include files
-------------------------------------------------------------------------*/
#include <wlan_hdd_includes.h>
#include <wlan_hdd_wmm.h>
#include <vos_types.h>
#include <csrApi.h>
#include <wlan_hdd_tgt_cfg.h>
#define FW_MODULE_LOG_LEVEL_STRING_LENGTH (255)
#define TX_SCHED_WRR_PARAM_STRING_LENGTH (50)
#define TX_SCHED_WRR_PARAMS_NUM (5)
#ifdef DHCP_SERVER_OFFLOAD
#define IPADDR_NUM_ENTRIES (4)
#define IPADDR_STRING_LENGTH (16)
#endif
//Number of items that can be configured
#define MAX_CFG_INI_ITEMS 1024
#define MAX_PRB_REQ_VENDOR_OUI_INI_LEN 160
#define VENDOR_SPECIFIC_IE_BITMAP 0x20000000
#ifdef SAP_AUTH_OFFLOAD
/* 802.11 pre-share key length */
#define WLAN_PSK_STRING_LENGTH (64)
#endif /* SAP_AUTH_OFFLOAD */
// Defines for all of the things we read from the configuration (registry).
#define CFG_RTS_THRESHOLD_NAME "RTSThreshold"
#define CFG_RTS_THRESHOLD_MIN WNI_CFG_RTS_THRESHOLD_STAMIN // min is 0, meaning always use RTS.
#define CFG_RTS_THRESHOLD_MAX WNI_CFG_RTS_THRESHOLD_STAMAX // max is the max frame size
#define CFG_RTS_THRESHOLD_DEFAULT WNI_CFG_RTS_THRESHOLD_STADEF
#define CFG_FRAG_THRESHOLD_NAME "gFragmentationThreshold"
#define CFG_FRAG_THRESHOLD_MIN WNI_CFG_FRAGMENTATION_THRESHOLD_STAMIN
#define CFG_FRAG_THRESHOLD_MAX WNI_CFG_FRAGMENTATION_THRESHOLD_STAMAX
#define CFG_FRAG_THRESHOLD_DEFAULT WNI_CFG_FRAGMENTATION_THRESHOLD_STADEF
#define CFG_OPERATING_CHANNEL_NAME "gOperatingChannel"
#define CFG_OPERATING_CHANNEL_MIN ( 0 )
#define CFG_OPERATING_CHANNEL_MAX ( 14 )
#define CFG_OPERATING_CHANNEL_DEFAULT ( 1 )
#define CFG_SHORT_SLOT_TIME_ENABLED_NAME "gShortSlotTimeEnabled"
#define CFG_SHORT_SLOT_TIME_ENABLED_MIN WNI_CFG_SHORT_SLOT_TIME_STAMIN
#define CFG_SHORT_SLOT_TIME_ENABLED_MAX WNI_CFG_SHORT_SLOT_TIME_STAMAX
#define CFG_SHORT_SLOT_TIME_ENABLED_DEFAULT WNI_CFG_SHORT_SLOT_TIME_STADEF
#define CFG_11D_SUPPORT_ENABLED_NAME "g11dSupportEnabled"
#define CFG_11D_SUPPORT_ENABLED_MIN WNI_CFG_11D_ENABLED_STAMIN
#define CFG_11D_SUPPORT_ENABLED_MAX WNI_CFG_11D_ENABLED_STAMAX
#define CFG_11D_SUPPORT_ENABLED_DEFAULT WNI_CFG_11D_ENABLED_STADEF // Default is ON
#define CFG_11H_SUPPORT_ENABLED_NAME "g11hSupportEnabled"
#define CFG_11H_SUPPORT_ENABLED_MIN ( 0 )
#define CFG_11H_SUPPORT_ENABLED_MAX ( 1 )
#define CFG_11H_SUPPORT_ENABLED_DEFAULT ( 1 ) // Default is ON
#define CFG_ENFORCE_11D_CHANNELS_NAME "gEnforce11dChannel"
#define CFG_ENFORCE_11D_CHANNELS_MIN ( 0 )
#define CFG_ENFORCE_11D_CHANNELS_MAX ( 1 )
#define CFG_ENFORCE_11D_CHANNELS_DEFAULT ( 0 )
//COUNTRY Code Priority
#define CFG_COUNTRY_CODE_PRIORITY_NAME "gCountryCodePriority"
#define CFG_COUNTRY_CODE_PRIORITY_MIN ( 0 )
#define CFG_COUNTRY_CODE_PRIORITY_MAX ( 1 )
#define CFG_COUNTRY_CODE_PRIORITY_DEFAULT ( 0 )
#define CFG_ENFORCE_COUNTRY_CODE_MATCH_NAME "gEnforceCountryCodeMatch"
#define CFG_ENFORCE_COUNTRY_CODE_MATCH_MIN ( 0 )
#define CFG_ENFORCE_COUNTRY_CODE_MATCH_MAX ( 1 )
#define CFG_ENFORCE_COUNTRY_CODE_MATCH_DEFAULT ( 0 )
#define CFG_ENFORCE_DEFAULT_DOMAIN_NAME "gEnforceDefaultDomain"
#define CFG_ENFORCE_DEFAULT_DOMAIN_MIN ( 0 )
#define CFG_ENFORCE_DEFAULT_DOMAIN_MAX ( 1 )
#define CFG_ENFORCE_DEFAULT_DOMAIN_DEFAULT ( 0 )
#define CFG_HEARTBEAT_THRESH_24_NAME "gHeartbeat24"
#define CFG_HEARTBEAT_THRESH_24_MIN WNI_CFG_HEART_BEAT_THRESHOLD_STAMIN
#define CFG_HEARTBEAT_THRESH_24_MAX WNI_CFG_HEART_BEAT_THRESHOLD_STAMAX
#define CFG_HEARTBEAT_THRESH_24_DEFAULT WNI_CFG_HEART_BEAT_THRESHOLD_STADEF
#define CFG_POWER_USAGE_NAME "gPowerUsage"
#define CFG_POWER_USAGE_MIN "Min" //Minimum Power Save
#define CFG_POWER_USAGE_MAX "Max" //Maximum Power Save
#define CFG_POWER_USAGE_DEFAULT "Mod" //Moderate Power Save
//Enable suspend on Android
#define CFG_ENABLE_SUSPEND_NAME "gEnableSuspend"
#define CFG_ENABLE_SUSPEND_MIN ( 0 ) //No support for suspend
#define CFG_ENABLE_SUSPEND_MAX ( 3 ) //Map to Deep Sleep
#define CFG_ENABLE_SUSPEND_DEFAULT ( 1 ) //Map to Standby
//Driver start/stop command mappings
#define CFG_ENABLE_ENABLE_DRIVER_STOP_NAME "gEnableDriverStop"
#define CFG_ENABLE_ENABLE_DRIVER_STOP_MIN ( 0 ) //No support for stop
#define CFG_ENABLE_ENABLE_DRIVER_STOP_MAX ( 2 ) //Map to Deep Sleep
#define CFG_ENABLE_ENABLE_DRIVER_STOP_DEFAULT ( 0 )
#define CFG_WOWL_PATTERN_NAME "gWowlPattern"
#define CFG_WOWL_PATTERN_DEFAULT ""
//IMPS = IdleModePowerSave
#define CFG_ENABLE_IMPS_NAME "gEnableImps"
#define CFG_ENABLE_IMPS_MIN ( 0 )
#define CFG_ENABLE_IMPS_MAX ( 1 )
#define CFG_ENABLE_IMPS_DEFAULT ( 1 )
#define CFG_IMPS_MINIMUM_SLEEP_TIME_NAME "gImpsMinSleepTime"
#define CFG_IMPS_MINIMUM_SLEEP_TIME_MIN ( 0 )
#define CFG_IMPS_MINIMUM_SLEEP_TIME_MAX ( 65535 )
#define CFG_IMPS_MINIMUM_SLEEP_TIME_DEFAULT ( 5 )
#define CFG_IMPS_MODERATE_SLEEP_TIME_NAME "gImpsModSleepTime"
#define CFG_IMPS_MODERATE_SLEEP_TIME_MIN ( 0 )
#define CFG_IMPS_MODERATE_SLEEP_TIME_MAX ( 65535 )
#define CFG_IMPS_MODERATE_SLEEP_TIME_DEFAULT ( 10)
#define CFG_IMPS_MAXIMUM_SLEEP_TIME_NAME "gImpsMaxSleepTime"
#define CFG_IMPS_MAXIMUM_SLEEP_TIME_MIN ( 0 )
#define CFG_IMPS_MAXIMUM_SLEEP_TIME_MAX ( 65535 )
#define CFG_IMPS_MAXIMUM_SLEEP_TIME_DEFAULT ( 15 )
//BMPS = BeaconModePowerSave
#define CFG_ENABLE_BMPS_NAME "gEnableBmps"
#define CFG_ENABLE_BMPS_MIN ( 0 )
#define CFG_ENABLE_BMPS_MAX ( 1 )
#define CFG_ENABLE_BMPS_DEFAULT ( 1 )
#define CFG_BMPS_MINIMUM_LI_NAME "gBmpsMinListenInterval"
#define CFG_BMPS_MINIMUM_LI_MIN ( 1 )
#define CFG_BMPS_MINIMUM_LI_MAX ( 65535 )
#define CFG_BMPS_MINIMUM_LI_DEFAULT ( 1 )
#define CFG_BMPS_MODERATE_LI_NAME "gBmpsModListenInterval"
#define CFG_BMPS_MODERATE_LI_MIN ( 1 )
#define CFG_BMPS_MODERATE_LI_MAX ( 65535 )
#define CFG_BMPS_MODERATE_LI_DEFAULT ( 1 )
#define CFG_BMPS_MAXIMUM_LI_NAME "gBmpsMaxListenInterval"
#define CFG_BMPS_MAXIMUM_LI_MIN ( 1 )
#define CFG_BMPS_MAXIMUM_LI_MAX ( 65535 )
#define CFG_BMPS_MAXIMUM_LI_DEFAULT ( 1 )
// gEnableAutoBmpsTimer has been previously published as an externally
// configurable parameter. See analysis of CR 178211 for detailed info
// on why we want to *always* set this to 1 i.e. we no longer want
// this parameter to be configurable. the clean solution would be for
// users to not define this item in winreg so that the default value
// (which needs to be changed to 1) gets picked up but we cannot rely on that
// since this item has been published already hence the proposed
// solution to change the name of the item along with the change in the
// default value. also we could decide to not read this item from registry
// but leaving open the option of being able to configure this item for
// ASW's internal use
#define CFG_ENABLE_AUTO_BMPS_TIMER_NAME "gEnableAutoBmpsTimer_INTERNAL"
#define CFG_ENABLE_AUTO_BMPS_TIMER_MIN ( 0 )
#define CFG_ENABLE_AUTO_BMPS_TIMER_MAX ( 1 )
#define CFG_ENABLE_AUTO_BMPS_TIMER_DEFAULT ( 1 )
#define CFG_AUTO_BMPS_TIMER_VALUE_NAME "gAutoBmpsTimerValue"
#define CFG_AUTO_BMPS_TIMER_VALUE_MIN ( 1000 )
#define CFG_AUTO_BMPS_TIMER_VALUE_MAX ( 4294967295UL )
#define CFG_AUTO_BMPS_TIMER_VALUE_DEFAULT ( 1000 )
#define CFG_MAX_RX_AMPDU_FACTOR_NAME "gMaxRxAmpduFactor"
#define CFG_MAX_RX_AMPDU_FACTOR_MIN WNI_CFG_MAX_RX_AMPDU_FACTOR_STAMIN
#define CFG_MAX_RX_AMPDU_FACTOR_MAX WNI_CFG_MAX_RX_AMPDU_FACTOR_STAMAX
#define CFG_MAX_RX_AMPDU_FACTOR_DEFAULT WNI_CFG_MAX_RX_AMPDU_FACTOR_STADEF
/* Configuration option for HT MPDU density (Table 8-125 802.11-2012)
* 0 for no restriction
* 1 for 1/4 micro sec
* 2 for 1/2 micro sec
* 3 for 1 micro sec
* 4 for 2 micro sec
* 5 for 4 micro sec
* 6 for 8 micro sec
* 7 for 16 micro sec
*/
#define CFG_HT_MPDU_DENSITY_NAME "ght_mpdu_density"
#define CFG_HT_MPDU_DENSITY_MIN WNI_CFG_MPDU_DENSITY_STAMIN
#define CFG_HT_MPDU_DENSITY_MAX WNI_CFG_MPDU_DENSITY_STAMAX
#define CFG_HT_MPDU_DENSITY_DEFAULT WNI_CFG_MPDU_DENSITY_STADEF
//Configuration added to enable/disable CTS2SELF in
//Adaptive RX drain feature
#define CFG_ENABLE_ADAPT_RX_DRAIN_NAME "gEnableAdaptRxDrain"
#define CFG_ENABLE_ADAPT_RX_DRAIN_MIN WNI_CFG_ENABLE_ADAPT_RX_DRAIN_STAMIN
#define CFG_ENABLE_ADAPT_RX_DRAIN_MAX WNI_CFG_ENABLE_ADAPT_RX_DRAIN_STAMAX
#define CFG_ENABLE_ADAPT_RX_DRAIN_DEFAULT WNI_CFG_ENABLE_ADAPT_RX_DRAIN_STADEF
#define CFG_REG_CHANGE_DEF_COUNTRY_NAME "gRegulatoryChangeCountry"
#define CFG_REG_CHANGE_DEF_COUNTRY_DEFAULT ( 0 )
#define CFG_REG_CHANGE_DEF_COUNTRY_MIN ( 0 )
#define CFG_REG_CHANGE_DEF_COUNTRY_MAX ( 1 )
/*
* Enabling gIgnorePeerHTopMode will enable 11g
* protection only when there is a 11g AP in vicinity
*/
#define CFG_IGNORE_PEER_HT_MODE_NAME "gIgnorePeerHTopMode"
#define CFG_IGNORE_PEER_HT_MODE_MIN (0)
#define CFG_IGNORE_PEER_HT_MODE_MAX (1)
#define CFG_IGNORE_PEER_HT_MODE_DEFAULT (0)
#define CFG_ADVERTISE_CONCURRENT_OPERATION_NAME "gAdvertiseConcurrentOperation"
#define CFG_ADVERTISE_CONCURRENT_OPERATION_DEFAULT ( 1 )
#define CFG_ADVERTISE_CONCURRENT_OPERATION_MIN ( 0 )
#define CFG_ADVERTISE_CONCURRENT_OPERATION_MAX ( 1 )
/*
* Force softap to 11n, when gSapForce11NFor11AC is set to 1 from ini
* despite of hostapd.conf request for 11ac
*/
#define CFG_SAP_FORCE_11N_FOR_11AC_NAME "gSapForce11NFor11AC"
#define CFG_SAP_FORCE_11N_FOR_11AC_MIN (0)
#define CFG_SAP_FORCE_11N_FOR_11AC_MAX (1)
#define CFG_SAP_FORCE_11N_FOR_11AC_DEFAULT (0)
typedef enum
{
eHDD_DOT11_MODE_AUTO = 0, //covers all things we support
eHDD_DOT11_MODE_abg, //11a/b/g only, no HT, no proprietary
eHDD_DOT11_MODE_11b,
eHDD_DOT11_MODE_11g,
eHDD_DOT11_MODE_11n,
eHDD_DOT11_MODE_11g_ONLY,
eHDD_DOT11_MODE_11n_ONLY,
eHDD_DOT11_MODE_11b_ONLY,
eHDD_DOT11_MODE_11ac_ONLY,
eHDD_DOT11_MODE_11ac,
eHDD_DOT11_MODE_11a,
}eHddDot11Mode;
enum
{
WLAN_HDD_RX_HANDLE_MIN = 0,
WLAN_HDD_RX_HANDLE_IRQ = WLAN_HDD_RX_HANDLE_MIN,
WLAN_HDD_RX_HANDLE_RX_THREAD = 1,
WLAN_HDD_RX_HANDLE_RPS = 2,
WLAN_HDD_RX_HANDLE_MAX = WLAN_HDD_RX_HANDLE_RPS
};
#define CFG_DOT11_MODE_NAME "gDot11Mode"
#define CFG_DOT11_MODE_MIN eHDD_DOT11_MODE_AUTO
#ifdef WLAN_FEATURE_11AC
#define CFG_DOT11_MODE_DEFAULT eHDD_DOT11_MODE_11ac
#else
#define CFG_DOT11_MODE_DEFAULT eHDD_DOT11_MODE_11n
#endif
#define CFG_DOT11_MODE_MAX eHDD_DOT11_MODE_11a
#define CFG_CHANNEL_BONDING_MODE_24GHZ_NAME "gChannelBondingMode24GHz"
#define CFG_CHANNEL_BONDING_MODE_MIN WNI_CFG_CHANNEL_BONDING_MODE_STAMIN
#define CFG_CHANNEL_BONDING_MODE_MAX WNI_CFG_CHANNEL_BONDING_MODE_STAMAX
#define CFG_CHANNEL_BONDING_MODE_DEFAULT WNI_CFG_CHANNEL_BONDING_MODE_STADEF
#define CFG_OVERRIDE_HT40_20_24GHZ_NAME "override_ht20_40_24g"
#define CFG_OVERRIDE_HT40_20_24GHZ_MIN 0
#define CFG_OVERRIDE_HT40_20_24GHZ_MAX 1
#define CFG_OVERRIDE_HT40_20_24GHZ_DEFAULT 0
#define CFG_CHANNEL_BONDING_MODE_5GHZ_NAME "gChannelBondingMode5GHz"
#define CFG_CHANNEL_BONDING_MODE_MIN WNI_CFG_CHANNEL_BONDING_MODE_STAMIN
#define CFG_CHANNEL_BONDING_MODE_MAX WNI_CFG_CHANNEL_BONDING_MODE_STAMAX
#define CFG_CHANNEL_BONDING_MODE_DEFAULT WNI_CFG_CHANNEL_BONDING_MODE_STADEF
#define CFG_FIXED_RATE_NAME "gFixedRate"
#define CFG_FIXED_RATE_MIN WNI_CFG_FIXED_RATE_STAMIN
#define CFG_FIXED_RATE_MAX WNI_CFG_FIXED_RATE_STAMAX
#define CFG_FIXED_RATE_DEFAULT WNI_CFG_FIXED_RATE_STADEF
#define CFG_SHORT_GI_20MHZ_NAME "gShortGI20Mhz"
#define CFG_SHORT_GI_20MHZ_MIN WNI_CFG_SHORT_GI_20MHZ_STAMIN
#define CFG_SHORT_GI_20MHZ_MAX WNI_CFG_SHORT_GI_20MHZ_STAMAX
#define CFG_SHORT_GI_20MHZ_DEFAULT WNI_CFG_SHORT_GI_20MHZ_STADEF
#define CFG_BLOCK_ACK_AUTO_SETUP_NAME "gBlockAckAutoSetup"
#define CFG_BLOCK_ACK_AUTO_SETUP_MIN ( 0 )
#define CFG_BLOCK_ACK_AUTO_SETUP_MAX ( 1 )
#define CFG_BLOCK_ACK_AUTO_SETUP_DEFAULT ( 1 )
#define CFG_SCAN_RESULT_AGE_COUNT_NAME "gScanResultAgeCount"
#define CFG_SCAN_RESULT_AGE_COUNT_MIN ( 1 )
#define CFG_SCAN_RESULT_AGE_COUNT_MAX ( 100 )
#define CFG_SCAN_RESULT_AGE_COUNT_DEFAULT ( 3 )
//All in seconds
//Not Connect, No Power Save
#define CFG_SCAN_RESULT_AGE_TIME_NCNPS_NAME "gScanResultAgeNCNPS"
#define CFG_SCAN_RESULT_AGE_TIME_NCNPS_MIN ( 10 )
#define CFG_SCAN_RESULT_AGE_TIME_NCNPS_MAX ( 10000 )
#define CFG_SCAN_RESULT_AGE_TIME_NCNPS_DEFAULT ( 50 )
//Not Connect, Power Save
#define CFG_SCAN_RESULT_AGE_TIME_NCPS_NAME "gScanResultAgeNCPS"
#define CFG_SCAN_RESULT_AGE_TIME_NCPS_MIN ( 10 )
#define CFG_SCAN_RESULT_AGE_TIME_NCPS_MAX ( 10000 )
#define CFG_SCAN_RESULT_AGE_TIME_NCPS_DEFAULT ( 300 )
//Connect, No Power Save
#define CFG_SCAN_RESULT_AGE_TIME_CNPS_NAME "gScanResultAgeCNPS"
#define CFG_SCAN_RESULT_AGE_TIME_CNPS_MIN ( 10 )
#define CFG_SCAN_RESULT_AGE_TIME_CNPS_MAX ( 10000 )
#define CFG_SCAN_RESULT_AGE_TIME_CNPS_DEFAULT ( 150 )
//Connect, Power Save
#define CFG_SCAN_RESULT_AGE_TIME_CPS_NAME "gScanResultAgeCPS"
#define CFG_SCAN_RESULT_AGE_TIME_CPS_MIN ( 10 )
#define CFG_SCAN_RESULT_AGE_TIME_CPS_MAX ( 10000 )
#define CFG_SCAN_RESULT_AGE_TIME_CPS_DEFAULT ( 600 )
#define CFG_RSSI_CATEGORY_GAP_NAME "gRssiCatGap"
#define CFG_RSSI_CATEGORY_GAP_MIN ( 5 )
#define CFG_RSSI_CATEGORY_GAP_MAX ( 100 )
#define CFG_RSSI_CATEGORY_GAP_DEFAULT ( 5 )
#if defined (WLAN_FEATURE_VOWIFI_11R) || defined (FEATURE_WLAN_ESE) || defined(FEATURE_WLAN_LFR)
#define CFG_ROAM_PREFER_5GHZ "gRoamPrefer5GHz"
#define CFG_ROAM_PREFER_5GHZ_MIN ( 0 )
#define CFG_ROAM_PREFER_5GHZ_MAX ( 1 )
#define CFG_ROAM_PREFER_5GHZ_DEFAULT ( 1 )
/*
To enable, set gRoamIntraBand=1 (Roaming within band)
To disable, set gRoamIntraBand=0 (Roaming across band)
*/
#define CFG_ROAM_INTRA_BAND "gRoamIntraBand"
#define CFG_ROAM_INTRA_BAND_MIN ( 0 )
#define CFG_ROAM_INTRA_BAND_MAX ( 1 )
#define CFG_ROAM_INTRA_BAND_DEFAULT ( 0 )
#endif
#define CFG_SHORT_PREAMBLE_NAME "gShortPreamble"
#define CFG_SHORT_PREAMBLE_MIN WNI_CFG_SHORT_PREAMBLE_STAMIN
#define CFG_SHORT_PREAMBLE_MAX WNI_CFG_SHORT_PREAMBLE_STAMAX
#define CFG_SHORT_PREAMBLE_DEFAULT WNI_CFG_SHORT_PREAMBLE_STADEF
#define CFG_IBSS_BSSID_NAME "gIbssBssid"
#define CFG_IBSS_BSSID_MIN "000000000000"
#define CFG_IBSS_BSSID_MAX "ffffffffffff"
#define CFG_IBSS_BSSID_DEFAULT "000AF5040506"
#define CFG_INTF0_MAC_ADDR_NAME "Intf0MacAddress"
#define CFG_INTF0_MAC_ADDR_MIN "000000000000"
#define CFG_INTF0_MAC_ADDR_MAX "ffffffffffff"
#define CFG_INTF0_MAC_ADDR_DEFAULT "000AF5898980"
#define CFG_INTF1_MAC_ADDR_NAME "Intf1MacAddress"
#define CFG_INTF1_MAC_ADDR_MIN "000000000000"
#define CFG_INTF1_MAC_ADDR_MAX "ffffffffffff"
#define CFG_INTF1_MAC_ADDR_DEFAULT "000AF5898981"
#define CFG_INTF2_MAC_ADDR_NAME "Intf2MacAddress"
#define CFG_INTF2_MAC_ADDR_MIN "000000000000"
#define CFG_INTF2_MAC_ADDR_MAX "ffffffffffff"
#define CFG_INTF2_MAC_ADDR_DEFAULT "000AF5898982"
#define CFG_INTF3_MAC_ADDR_NAME "Intf3MacAddress"
#define CFG_INTF3_MAC_ADDR_MIN "000000000000"
#define CFG_INTF3_MAC_ADDR_MAX "ffffffffffff"
#define CFG_INTF3_MAC_ADDR_DEFAULT "000AF5898983"
#define CFG_AP_QOS_UAPSD_MODE_NAME "gEnableApUapsd" // ACs to setup U-APSD for at assoc
#define CFG_AP_QOS_UAPSD_MODE_MIN ( 0 )
#define CFG_AP_QOS_UAPSD_MODE_MAX ( 1 )
#define CFG_AP_QOS_UAPSD_MODE_DEFAULT ( 1 )
#define CFG_AP_COUNTRY_CODE "gAPCntryCode"
#define CFG_AP_COUNTRY_CODE_MIN "USI"
#define CFG_AP_COUNTRY_CODE_MAX "USI"
#define CFG_AP_COUNTRY_CODE_DEFAULT "FFF"
#define CFG_AP_ENABLE_RANDOM_BSSID_NAME "gEnableApRandomBssid"
#define CFG_AP_ENABLE_RANDOM_BSSID_MIN ( 0 )
#define CFG_AP_ENABLE_RANDOM_BSSID_MAX ( 1 )
#define CFG_AP_ENABLE_RANDOM_BSSID_DEFAULT ( 0 )
#define CFG_AP_ENABLE_PROTECTION_MODE_NAME "gEnableApProt"
#define CFG_AP_ENABLE_PROTECTION_MODE_MIN ( 0 )
#define CFG_AP_ENABLE_PROTECTION_MODE_MAX ( 1 )
#define CFG_AP_ENABLE_PROTECTION_MODE_DEFAULT ( 1 )
// Bit map for CFG_AP_PROTECTION_MODE_DEFAULT
// LOWER byte for associated stations
// UPPER byte for overlapping stations
// each byte will have the following info
// bit15 bit14 bit13 bit12 bit11 bit10 bit9 bit8
// OBSS RIFS LSIG_TXOP NON_GF HT20 FROM_11G FROM_11B FROM_11A
// bit7 bit6 bit5 bit4 bit3 bit2 bit1 bit0
// OBSS RIFS LSIG_TXOP NON_GF HT_20 FROM_11G FROM_11B FROM_11A
#define CFG_AP_PROTECTION_MODE_NAME "gApProtection"
#define CFG_AP_PROTECTION_MODE_MIN ( 0x0 )
#define CFG_AP_PROTECTION_MODE_MAX ( 0xFFFF )
#define CFG_AP_PROTECTION_MODE_DEFAULT ( 0xBFFF )
#define CFG_AP_OBSS_PROTECTION_MODE_NAME "gEnableApOBSSProt"
#define CFG_AP_OBSS_PROTECTION_MODE_MIN ( 0 )
#define CFG_AP_OBSS_PROTECTION_MODE_MAX ( 1 )
#define CFG_AP_OBSS_PROTECTION_MODE_DEFAULT ( 0 )
#define CFG_AP_STA_SECURITY_SEPERATION_NAME "gDisableIntraBssFwd"
#define CFG_AP_STA_SECURITY_SEPERATION_MIN ( 0 )
#define CFG_AP_STA_SECURITY_SEPERATION_MAX ( 1 )
#define CFG_AP_STA_SECURITY_SEPERATION_DEFAULT ( 0 )
#define CFG_AP_LISTEN_MODE_NAME "gEnablePhyAgcListenMode"
#define CFG_AP_LISTEN_MODE_MIN (0)
#define CFG_AP_LISTEN_MODE_MAX (128)
#define CFG_AP_LISTEN_MODE_DEFAULT (128)
#define CFG_AP_AUTO_SHUT_OFF "gAPAutoShutOff"
#define CFG_AP_AUTO_SHUT_OFF_MIN ( 0 )
#define CFG_AP_AUTO_SHUT_OFF_MAX ( 4294967295UL )
#define CFG_AP_AUTO_SHUT_OFF_DEFAULT ( 0 )
#ifdef FEATURE_WLAN_AUTO_SHUTDOWN
#define CFG_WLAN_AUTO_SHUTDOWN "gWlanAutoShutdown"
#define CFG_WLAN_AUTO_SHUTDOWN_MIN ( 0 )
#define CFG_WLAN_AUTO_SHUTDOWN_MAX ( 86400 ) /* Max 1 day timeout */
#define CFG_WLAN_AUTO_SHUTDOWN_DEFAULT ( 0 )
#endif
#ifdef FEATURE_WLAN_MCC_TO_SCC_SWITCH
#define CFG_WLAN_MCC_TO_SCC_SWITCH_MODE "gWlanMccToSccSwitchMode"
#define CFG_WLAN_MCC_TO_SCC_SWITCH_MODE_MIN VOS_MCC_TO_SCC_SWITCH_DISABLE
#define CFG_WLAN_MCC_TO_SCC_SWITCH_MODE_MAX VOS_MCC_TO_SCC_SWITCH_FORCE
#define CFG_WLAN_MCC_TO_SCC_SWITCH_MODE_DEFAULT VOS_MCC_TO_SCC_SWITCH_DISABLE
#define CFG_WLAN_BAND_SWITCH_ENABLE "gWlanBandSwitchEnable"
#define CFG_WLAN_BAND_SWITCH_ENABLE_MIN ( 0 )
#define CFG_WLAN_BAND_SWITCH_ENABLE_MAX ( 1 )
#define CFG_WLAN_BAND_SWITCH_ENABLE_DEFAULT ( 0 )
#define CFG_WLAN_AP_P2PGO_CONC_ENABLE "gWlanApP2pGOConcurrencyEnable"
#define CFG_WLAN_AP_P2PGO_CONC_ENABLE_MIN ( 0 )
#define CFG_WLAN_AP_P2PGO_CONC_ENABLE_MAX ( 1 )
#define CFG_WLAN_AP_P2PGO_CONC_ENABLE_DEFAULT ( 0 )
#define CFG_WLAN_AP_P2PGC_CONC_ENABLE "gWlanApP2pClientConcurEnable"
#define CFG_WLAN_AP_P2PGC_CONC_ENABLE_MIN ( 0 )
#define CFG_WLAN_AP_P2PGC_CONC_ENABLE_MAX ( 1 )
#define CFG_WLAN_AP_P2PGC_CONC_ENABLE_DEFAULT ( 0 )
#endif
#define CFG_FRAMES_PROCESSING_TH_MODE_NAME "gMinFramesProcThres"
#define CFG_FRAMES_PROCESSING_TH_MIN ( 0 )
#define CFG_FRAMES_PROCESSING_TH_MAX ( 39 )
#define CFG_FRAMES_PROCESSING_TH_DEFAULT ( 0 )
#define CFG_DISABLE_PACKET_FILTER "gDisablePacketFilter"
#define CFG_DISABLE_PACKET_FILTER_MIN (0)
#define CFG_DISABLE_PACKET_FILTER_MAX (0x1)
#define CFG_DISABLE_PACKET_FILTER_DEFAULT (0)
#define CFG_ENABLE_LTE_COEX "gEnableLTECoex"
#define CFG_ENABLE_LTE_COEX_MIN ( 0 )
#define CFG_ENABLE_LTE_COEX_MAX ( 1 )
#define CFG_ENABLE_LTE_COEX_DEFAULT ( 0 )
#define CFG_AP_KEEP_ALIVE_PERIOD_NAME "gApKeepAlivePeriod"
#define CFG_AP_KEEP_ALIVE_PERIOD_MIN WNI_CFG_AP_KEEP_ALIVE_TIMEOUT_STAMIN
#define CFG_AP_KEEP_ALIVE_PERIOD_MAX WNI_CFG_AP_KEEP_ALIVE_TIMEOUT_STAMAX
#define CFG_AP_KEEP_ALIVE_PERIOD_DEFAULT WNI_CFG_AP_KEEP_ALIVE_TIMEOUT_STADEF
#define CFG_GO_KEEP_ALIVE_PERIOD_NAME "gGoKeepAlivePeriod"
#define CFG_GO_KEEP_ALIVE_PERIOD_MIN WNI_CFG_GO_KEEP_ALIVE_TIMEOUT_STAMIN
#define CFG_GO_KEEP_ALIVE_PERIOD_MAX WNI_CFG_GO_KEEP_ALIVE_TIMEOUT_STAMAX
#define CFG_GO_KEEP_ALIVE_PERIOD_DEFAULT WNI_CFG_GO_KEEP_ALIVE_TIMEOUT_STADEF
#define CFG_AP_LINK_MONITOR_PERIOD_NAME "gApLinkMonitorPeriod"
#define CFG_AP_LINK_MONITOR_PERIOD_MIN ( 3 )
#define CFG_AP_LINK_MONITOR_PERIOD_MAX ( 50 )
#define CFG_AP_LINK_MONITOR_PERIOD_DEFAULT ( 10 )
/* gGoLinkMonitorPeriod is period where link is idle and where
* we send NULL frame
*/
#define CFG_GO_LINK_MONITOR_PERIOD_NAME "gGoLinkMonitorPeriod"
#define CFG_GO_LINK_MONITOR_PERIOD_MIN ( 3 )
#define CFG_GO_LINK_MONITOR_PERIOD_MAX ( 50 )
#define CFG_GO_LINK_MONITOR_PERIOD_DEFAULT ( 10 )
#define CFG_BEACON_INTERVAL_NAME "gBeaconInterval"
#define CFG_BEACON_INTERVAL_MIN WNI_CFG_BEACON_INTERVAL_STAMIN
#define CFG_BEACON_INTERVAL_MAX WNI_CFG_BEACON_INTERVAL_STAMAX
#define CFG_BEACON_INTERVAL_DEFAULT WNI_CFG_BEACON_INTERVAL_STADEF
//Additional Handoff related Parameters
#define CFG_ENABLE_IDLE_SCAN_NAME "gEnableIdleScan"
#define CFG_ENABLE_IDLE_SCAN_MIN ( 0 )
#define CFG_ENABLE_IDLE_SCAN_MAX ( 1 )
#define CFG_ENABLE_IDLE_SCAN_DEFAULT ( 1 )
#define CFG_ROAMING_TIME_NAME "gRoamingTime"
#define CFG_ROAMING_TIME_MIN ( 0 )
#define CFG_ROAMING_TIME_MAX ( 4294967UL )
#define CFG_ROAMING_TIME_DEFAULT ( 10 )
#define CFG_VCC_RSSI_TRIGGER_NAME "gVccRssiTrigger"
#define CFG_VCC_RSSI_TRIGGER_MIN ( 0 )
#define CFG_VCC_RSSI_TRIGGER_MAX ( 80 )
#define CFG_VCC_RSSI_TRIGGER_DEFAULT ( 80 )
#define CFG_VCC_UL_MAC_LOSS_THRESH_NAME "gVccUlMacLossThresh"
#define CFG_VCC_UL_MAC_LOSS_THRESH_MIN ( 0 )
#define CFG_VCC_UL_MAC_LOSS_THRESH_MAX ( 9 )
#define CFG_VCC_UL_MAC_LOSS_THRESH_DEFAULT ( 9 )
#define CFG_PASSIVE_MAX_CHANNEL_TIME_NAME "gPassiveMaxChannelTime"
#define CFG_PASSIVE_MAX_CHANNEL_TIME_MIN ( 0 )
#define CFG_PASSIVE_MAX_CHANNEL_TIME_MAX ( 10000 )
#define CFG_PASSIVE_MAX_CHANNEL_TIME_DEFAULT ( 110 )
#define CFG_PASSIVE_MIN_CHANNEL_TIME_NAME "gPassiveMinChannelTime"
#define CFG_PASSIVE_MIN_CHANNEL_TIME_MIN ( 0 )
#define CFG_PASSIVE_MIN_CHANNEL_TIME_MAX ( 10000 )
#define CFG_PASSIVE_MIN_CHANNEL_TIME_DEFAULT ( 60 )
#define CFG_ACTIVE_MAX_CHANNEL_TIME_NAME "gActiveMaxChannelTime"
#define CFG_ACTIVE_MAX_CHANNEL_TIME_MIN ( 0 )
#define CFG_ACTIVE_MAX_CHANNEL_TIME_MAX ( 10000 )
#define CFG_ACTIVE_MAX_CHANNEL_TIME_DEFAULT ( 40 )
#define CFG_ACTIVE_MIN_CHANNEL_TIME_NAME "gActiveMinChannelTime"
#define CFG_ACTIVE_MIN_CHANNEL_TIME_MIN ( 0 )
#define CFG_ACTIVE_MIN_CHANNEL_TIME_MAX ( 10000 )
#define CFG_ACTIVE_MIN_CHANNEL_TIME_DEFAULT ( 20 )
#define CFG_RETRY_LIMIT_ZERO_NAME "gRetryLimitZero"
#define CFG_RETRY_LIMIT_ZERO_MIN ( 0 )
#define CFG_RETRY_LIMIT_ZERO_MAX ( 15 )
#define CFG_RETRY_LIMIT_ZERO_DEFAULT ( 5 )
#define CFG_RETRY_LIMIT_ONE_NAME "gRetryLimitOne"
#define CFG_RETRY_LIMIT_ONE_MIN ( 0 )
#define CFG_RETRY_LIMIT_ONE_MAX ( 15 )
#define CFG_RETRY_LIMIT_ONE_DEFAULT ( 10 )
#define CFG_RETRY_LIMIT_TWO_NAME "gRetryLimitTwo"
#define CFG_RETRY_LIMIT_TWO_MIN ( 0 )
#define CFG_RETRY_LIMIT_TWO_MAX ( 15 )
#define CFG_RETRY_LIMIT_TWO_DEFAULT ( 15 )
#define CFG_DISABLE_AGG_WITH_BTC_NAME "gDisableAggWithBTC"
#define CFG_DISABLE_AGG_WITH_BTC_MIN ( 0 )
#define CFG_DISABLE_AGG_WITH_BTC_MAX ( 1 )
#define CFG_DISABLE_AGG_WITH_BTC_DEFAULT ( 1 )
#ifdef WLAN_AP_STA_CONCURRENCY
#define CFG_PASSIVE_MAX_CHANNEL_TIME_CONC_NAME "gPassiveMaxChannelTimeConc"
#define CFG_PASSIVE_MAX_CHANNEL_TIME_CONC_MIN ( 0 )
#define CFG_PASSIVE_MAX_CHANNEL_TIME_CONC_MAX ( 10000 )
#define CFG_PASSIVE_MAX_CHANNEL_TIME_CONC_DEFAULT ( 110 )
#define CFG_PASSIVE_MIN_CHANNEL_TIME_CONC_NAME "gPassiveMinChannelTimeConc"
#define CFG_PASSIVE_MIN_CHANNEL_TIME_CONC_MIN ( 0 )
#define CFG_PASSIVE_MIN_CHANNEL_TIME_CONC_MAX ( 10000 )
#define CFG_PASSIVE_MIN_CHANNEL_TIME_CONC_DEFAULT ( 60 )
#define CFG_ACTIVE_MAX_CHANNEL_TIME_CONC_NAME "gActiveMaxChannelTimeConc"
#define CFG_ACTIVE_MAX_CHANNEL_TIME_CONC_MIN ( 0 )
#define CFG_ACTIVE_MAX_CHANNEL_TIME_CONC_MAX ( 10000 )
#define CFG_ACTIVE_MAX_CHANNEL_TIME_CONC_DEFAULT ( 40 )
#define CFG_ACTIVE_MIN_CHANNEL_TIME_CONC_NAME "gActiveMinChannelTimeConc"
#define CFG_ACTIVE_MIN_CHANNEL_TIME_CONC_MIN ( 0 )
#define CFG_ACTIVE_MIN_CHANNEL_TIME_CONC_MAX ( 10000 )
#define CFG_ACTIVE_MIN_CHANNEL_TIME_CONC_DEFAULT ( 20 )
#define CFG_REST_TIME_CONC_NAME "gRestTimeConc"
#define CFG_REST_TIME_CONC_MIN ( 0 )
#define CFG_REST_TIME_CONC_MAX ( 10000 )
#define CFG_REST_TIME_CONC_DEFAULT ( 100 )
/* Mininum time spent on home channel before moving to a new channel to scan */
#define CFG_MIN_REST_TIME_NAME "gMinRestTimeConc"
#define CFG_MIN_REST_TIME_MIN ( 0 )
#define CFG_MIN_REST_TIME_MAX ( 50 )
#define CFG_MIN_REST_TIME_DEFAULT ( 50 )
/* Data inactivity time in msec on bss channel that will be used
* by scan engine in firmware.
* for example if this value is 25ms then firmware will check for
* data inactivity every 25ms till gRestTimeConc is reached.
* If inactive then scan engine will move from home channel to
* scan the next frequency.
*/
#define CFG_IDLE_TIME_NAME "gIdleTimeConc"
#define CFG_IDLE_TIME_MIN ( 0 )
#define CFG_IDLE_TIME_MAX ( 25 )
#define CFG_IDLE_TIME_DEFAULT ( 25 )
#endif
#define CFG_MAX_PS_POLL_NAME "gMaxPsPoll"
#define CFG_MAX_PS_POLL_MIN WNI_CFG_MAX_PS_POLL_STAMIN
#define CFG_MAX_PS_POLL_MAX WNI_CFG_MAX_PS_POLL_STAMAX
#define CFG_MAX_PS_POLL_DEFAULT WNI_CFG_MAX_PS_POLL_STADEF
#define CFG_MAX_TX_POWER_NAME "gTxPowerCap"
#define CFG_MAX_TX_POWER_MIN WNI_CFG_CURRENT_TX_POWER_LEVEL_STAMIN
#define CFG_MAX_TX_POWER_MAX WNI_CFG_CURRENT_TX_POWER_LEVEL_STAMAX
//Not to use CFG default because if no registry setting, this is ignored by SME.
#define CFG_MAX_TX_POWER_DEFAULT WNI_CFG_CURRENT_TX_POWER_LEVEL_STAMAX
#define CFG_TX_POWER_CTRL_NAME "gAllowTPCfromAP"
#define CFG_TX_POWER_CTRL_DEFAULT (1)
#define CFG_TX_POWER_CTRL_MIN (0)
#define CFG_TX_POWER_CTRL_MAX (1)
#define CFG_LOW_GAIN_OVERRIDE_NAME "gLowGainOverride"
#define CFG_LOW_GAIN_OVERRIDE_MIN WNI_CFG_LOW_GAIN_OVERRIDE_STAMIN
#define CFG_LOW_GAIN_OVERRIDE_MAX WNI_CFG_LOW_GAIN_OVERRIDE_STAMAX
#define CFG_LOW_GAIN_OVERRIDE_DEFAULT WNI_CFG_LOW_GAIN_OVERRIDE_STADEF
#define CFG_RSSI_FILTER_PERIOD_NAME "gRssiFilterPeriod"
#define CFG_RSSI_FILTER_PERIOD_MIN WNI_CFG_RSSI_FILTER_PERIOD_STAMIN
#define CFG_RSSI_FILTER_PERIOD_MAX WNI_CFG_RSSI_FILTER_PERIOD_STAMAX
// Increased this value for Non-ESE AP. This is cause FW RSSI Monitoring
// the consumer of this value is ON by default. So to impact power numbers
// we are setting this to a high value.
#define CFG_RSSI_FILTER_PERIOD_DEFAULT WNI_CFG_RSSI_FILTER_PERIOD_STADEF
#define CFG_IGNORE_DTIM_NAME "gIgnoreDtim"
#define CFG_IGNORE_DTIM_MIN WNI_CFG_IGNORE_DTIM_STAMIN
#define CFG_IGNORE_DTIM_MAX WNI_CFG_IGNORE_DTIM_STAMAX
#define CFG_IGNORE_DTIM_DEFAULT WNI_CFG_IGNORE_DTIM_STADEF
#define CFG_MAX_LI_MODULATED_DTIM_NAME "gMaxLIModulatedDTIM"
#define CFG_MAX_LI_MODULATED_DTIM_MIN ( 1 )
#define CFG_MAX_LI_MODULATED_DTIM_MAX ( 10 )
#define CFG_MAX_LI_MODULATED_DTIM_DEFAULT ( 10 )
#define CFG_RX_ANT_CONFIGURATION_NAME "gNumRxAnt"
#define CFG_RX_ANT_CONFIGURATION_NAME_MIN ( 1 )
#define CFG_RX_ANT_CONFIGURATION_NAME_MAX ( 2 )
#define CFG_RX_ANT_CONFIGURATION_NAME_DEFAULT ( 2 )
#define CFG_FW_HEART_BEAT_MONITORING_NAME "gEnableFWHeartBeatMonitoring"
#define CFG_FW_HEART_BEAT_MONITORING_MIN ( 0 )
#define CFG_FW_HEART_BEAT_MONITORING_MAX ( 1 )
#define CFG_FW_HEART_BEAT_MONITORING_DEFAULT ( 1 )
#define CFG_FW_BEACON_FILTERING_NAME "gEnableFWBeaconFiltering"
#define CFG_FW_BEACON_FILTERING_MIN ( 0 )
#define CFG_FW_BEACON_FILTERING_MAX ( 1 )
#define CFG_FW_BEACON_FILTERING_DEFAULT ( 1 )
#define CFG_FW_RSSI_MONITORING_NAME "gEnableFWRssiMonitoring"
#define CFG_FW_RSSI_MONITORING_MIN ( 0 )
#define CFG_FW_RSSI_MONITORING_MAX ( 1 )
#define CFG_FW_RSSI_MONITORING_DEFAULT ( 1 )
/* enable use of long duration RTS-CTS protection when SAP goes off channel
* in MCC mode
*/
#define CFG_FW_MCC_RTS_CTS_PROT_NAME "gFWMccRtsCtsProtection"
#define CFG_FW_MCC_RTS_CTS_PROT_MIN (0)
#define CFG_FW_MCC_RTS_CTS_PROT_MAX (1)
#define CFG_FW_MCC_RTS_CTS_PROT_DEFAULT (0)
/* Enable use of broadcast probe response to increase the detectability of
* SAP in MCC mode
*/
#define CFG_FW_MCC_BCAST_PROB_RESP_NAME "gFWMccBCastProbeResponse"
#define CFG_FW_MCC_BCAST_PROB_RESP_MIN (0)
#define CFG_FW_MCC_BCAST_PROB_RESP_MAX (1)
#define CFG_FW_MCC_BCAST_PROB_RESP_DEFAULT (0)
#define CFG_DATA_INACTIVITY_TIMEOUT_NAME "gDataInactivityTimeout"
#define CFG_DATA_INACTIVITY_TIMEOUT_MIN ( 1 )
#define CFG_DATA_INACTIVITY_TIMEOUT_MAX ( 255 )
#define CFG_DATA_INACTIVITY_TIMEOUT_DEFAULT ( 20 )
#define CFG_NTH_BEACON_FILTER_NAME "gNthBeaconFilter"
#define CFG_NTH_BEACON_FILTER_MIN ( WNI_CFG_NTH_BEACON_FILTER_STAMIN )
#define CFG_NTH_BEACON_FILTER_MAX ( WNI_CFG_NTH_BEACON_FILTER_STAMAX )
#define CFG_NTH_BEACON_FILTER_DEFAULT ( WNI_CFG_NTH_BEACON_FILTER_STADEF )
#define CFG_RF_SETTLING_TIME_CLK_NAME "rfSettlingTimeUs"
#define CFG_RF_SETTLING_TIME_CLK_MIN ( 0 )
#define CFG_RF_SETTLING_TIME_CLK_MAX ( 60000 )
#define CFG_RF_SETTLING_TIME_CLK_DEFAULT ( 1500 )
#define CFG_INFRA_STA_KEEP_ALIVE_PERIOD_NAME "gStaKeepAlivePeriod"
#define CFG_INFRA_STA_KEEP_ALIVE_PERIOD_MIN ( 0 )
#define CFG_INFRA_STA_KEEP_ALIVE_PERIOD_MAX ( 65535)
#define CFG_INFRA_STA_KEEP_ALIVE_PERIOD_DEFAULT ( 30 )
//WMM configuration
#define CFG_QOS_WMM_MODE_NAME "WmmIsEnabled"
#define CFG_QOS_WMM_MODE_MIN (0)
#define CFG_QOS_WMM_MODE_MAX (2) //HDD_WMM_NO_QOS
#define CFG_QOS_WMM_MODE_DEFAULT (0) //HDD_WMM_AUTO
#define CFG_STA_LOCAL_EDCA_FOR_ETSI_NAME "gStaLocalEDCAForETSI"
#define CFG_STA_LOCAL_EDCA_FOR_ETSI_MIN (0)
#define CFG_STA_LOCAL_EDCA_FOR_ETSI_MAX (1)
#define CFG_STA_LOCAL_EDCA_FOR_ETSI_DEFAULT (0)
#define CFG_QOS_WMM_80211E_ENABLED_NAME "80211eIsEnabled"
#define CFG_QOS_WMM_80211E_ENABLED_MIN (0)
#define CFG_QOS_WMM_80211E_ENABLED_MAX (1)
#define CFG_QOS_WMM_80211E_ENABLED_DEFAULT (0)
#define CFG_QOS_WMM_UAPSD_MASK_NAME "UapsdMask" // ACs to setup U-APSD for at assoc
#define CFG_QOS_WMM_UAPSD_MASK_MIN (0x00)
#define CFG_QOS_WMM_UAPSD_MASK_MAX (0xFF)
#define CFG_QOS_WMM_UAPSD_MASK_DEFAULT (0x00)
#define CFG_QOS_WMM_INFRA_UAPSD_VO_SRV_INTV_NAME "InfraUapsdVoSrvIntv"
#define CFG_QOS_WMM_INFRA_UAPSD_VO_SRV_INTV_MIN (0)
#define CFG_QOS_WMM_INFRA_UAPSD_VO_SRV_INTV_MAX (4294967295UL )
#define CFG_QOS_WMM_INFRA_UAPSD_VO_SRV_INTV_DEFAULT (20)
#define CFG_QOS_WMM_INFRA_UAPSD_VO_SUS_INTV_NAME "InfraUapsdVoSuspIntv"
#define CFG_QOS_WMM_INFRA_UAPSD_VO_SUS_INTV_MIN (0)
#define CFG_QOS_WMM_INFRA_UAPSD_VO_SUS_INTV_MAX (4294967295UL )
#define CFG_QOS_WMM_INFRA_UAPSD_VO_SUS_INTV_DEFAULT (2000)
#define CFG_QOS_WMM_INFRA_UAPSD_VI_SRV_INTV_NAME "InfraUapsdViSrvIntv"
#define CFG_QOS_WMM_INFRA_UAPSD_VI_SRV_INTV_MIN (0)
#define CFG_QOS_WMM_INFRA_UAPSD_VI_SRV_INTV_MAX (4294967295UL)
#define CFG_QOS_WMM_INFRA_UAPSD_VI_SRV_INTV_DEFAULT (300)
#define CFG_QOS_WMM_INFRA_UAPSD_VI_SUS_INTV_NAME "InfraUapsdViSuspIntv"
#define CFG_QOS_WMM_INFRA_UAPSD_VI_SUS_INTV_MIN (0)
#define CFG_QOS_WMM_INFRA_UAPSD_VI_SUS_INTV_MAX (4294967295UL)
#define CFG_QOS_WMM_INFRA_UAPSD_VI_SUS_INTV_DEFAULT (2000)
#define CFG_QOS_WMM_INFRA_UAPSD_BE_SRV_INTV_NAME "InfraUapsdBeSrvIntv"
#define CFG_QOS_WMM_INFRA_UAPSD_BE_SRV_INTV_MIN (0)
#define CFG_QOS_WMM_INFRA_UAPSD_BE_SRV_INTV_MAX (4294967295UL)
#define CFG_QOS_WMM_INFRA_UAPSD_BE_SRV_INTV_DEFAULT (300)
#define CFG_QOS_WMM_INFRA_UAPSD_BE_SUS_INTV_NAME "InfraUapsdBeSuspIntv"
#define CFG_QOS_WMM_INFRA_UAPSD_BE_SUS_INTV_MIN (0)
#define CFG_QOS_WMM_INFRA_UAPSD_BE_SUS_INTV_MAX (4294967295UL)
#define CFG_QOS_WMM_INFRA_UAPSD_BE_SUS_INTV_DEFAULT (2000)
#define CFG_QOS_WMM_INFRA_UAPSD_BK_SRV_INTV_NAME "InfraUapsdBkSrvIntv"
#define CFG_QOS_WMM_INFRA_UAPSD_BK_SRV_INTV_MIN (0)
#define CFG_QOS_WMM_INFRA_UAPSD_BK_SRV_INTV_MAX (4294967295UL)
#define CFG_QOS_WMM_INFRA_UAPSD_BK_SRV_INTV_DEFAULT (300)
#define CFG_QOS_WMM_INFRA_UAPSD_BK_SUS_INTV_NAME "InfraUapsdBkSuspIntv"
#define CFG_QOS_WMM_INFRA_UAPSD_BK_SUS_INTV_MIN (0)
#define CFG_QOS_WMM_INFRA_UAPSD_BK_SUS_INTV_MAX (4294967295UL)
#define CFG_QOS_WMM_INFRA_UAPSD_BK_SUS_INTV_DEFAULT (2000)
#ifdef FEATURE_WLAN_ESE
#define CFG_QOS_WMM_INFRA_INACTIVITY_INTERVAL_NAME "InfraInactivityInterval"
#define CFG_QOS_WMM_INFRA_INACTIVITY_INTERVAL_MIN (0)
#define CFG_QOS_WMM_INFRA_INACTIVITY_INTERVAL_MAX (4294967295UL)
#define CFG_QOS_WMM_INFRA_INACTIVITY_INTERVAL_DEFAULT (0) //disabled
#define CFG_ESE_FEATURE_ENABLED_NAME "EseEnabled"
#define CFG_ESE_FEATURE_ENABLED_MIN (0)
#define CFG_ESE_FEATURE_ENABLED_MAX (1)
#define CFG_ESE_FEATURE_ENABLED_DEFAULT (0) //disabled
#endif // FEATURE_WLAN_ESE
#ifdef FEATURE_WLAN_LFR
#define CFG_LFR_FEATURE_ENABLED_NAME "FastRoamEnabled"
#define CFG_LFR_FEATURE_ENABLED_MIN (0)
#define CFG_LFR_FEATURE_ENABLED_MAX (1)
#define CFG_LFR_FEATURE_ENABLED_DEFAULT (0) //disabled
#define CFG_LFR_MAWC_FEATURE_ENABLED_NAME "MAWCEnabled"
#define CFG_LFR_MAWC_FEATURE_ENABLED_MIN (0)
#define CFG_LFR_MAWC_FEATURE_ENABLED_MAX (1)
#define CFG_LFR_MAWC_FEATURE_ENABLED_DEFAULT (0) /* disabled */
#endif // FEATURE_WLAN_LFR
#if defined (WLAN_FEATURE_VOWIFI_11R) || defined (FEATURE_WLAN_ESE) || defined(FEATURE_WLAN_LFR)
// This flag will control fasttransition in case of 11r and ese.
// Basically with this the whole neighbor roam, pre-auth, reassoc
// can be turned ON/OFF.
// With this turned OFF 11r will completely not work.
// For 11r this flag has to be ON.
// For ESE fastroam will not work.
#define CFG_FAST_TRANSITION_ENABLED_NAME "FastTransitionEnabled"
#define CFG_FAST_TRANSITION_ENABLED_NAME_MIN (0)
#define CFG_FAST_TRANSITION_ENABLED_NAME_MAX (1)
#define CFG_FAST_TRANSITION_ENABLED_NAME_DEFAULT (1) //Enabled
/* This parameter is used to decide whether to Roam or not.
* AP1 is the currently associated AP and AP2 is chosen for roaming.
* The Roaming will happen only if AP2 has better Signal Quality and it has a RSSI better than AP1
* in terms of RoamRssiDiff,and RoamRssiDiff is the number of units (typically measured in dB) AP2
* is better than AP1.
* This check is not done if the value is Zero */
#define CFG_ROAM_RSSI_DIFF_NAME "RoamRssiDiff"
#define CFG_ROAM_RSSI_DIFF_MIN (0)
#define CFG_ROAM_RSSI_DIFF_MAX (30)
#define CFG_ROAM_RSSI_DIFF_DEFAULT (5)
/*
* Following a scan and if potential roam candidate(s) are found,
* then determine whether to register for reassoc threshold or roam
* immediately based on this configuration parameter. If the RSSI
* of any available candidate is better than the currently associated
* AP by at least gImmediateRoamRssiDiff, then being to roam
* immediately.
* NOTE: Value of 0 means that immediate roaming is enabled by default
*/
#define CFG_IMMEDIATE_ROAM_RSSI_DIFF_NAME "gImmediateRoamRssiDiff"
#define CFG_IMMEDIATE_ROAM_RSSI_DIFF_MIN (0)
#define CFG_IMMEDIATE_ROAM_RSSI_DIFF_MAX (125)
#define CFG_IMMEDIATE_ROAM_RSSI_DIFF_DEFAULT (0)
/*This parameter is used to set Wireless Extended Security Mode.*/
#define CFG_ENABLE_WES_MODE_NAME "gWESModeEnabled"
#define CFG_ENABLE_WES_MODE_NAME_MIN (0)
#define CFG_ENABLE_WES_MODE_NAME_MAX (1)
#define CFG_ENABLE_WES_MODE_NAME_DEFAULT (0)
#define CFG_ROAM_SCAN_N_PROBES "gRoamScanNProbes"
#define CFG_ROAM_SCAN_N_PROBES_MIN (1)
#define CFG_ROAM_SCAN_N_PROBES_MAX (10)
#define CFG_ROAM_SCAN_N_PROBES_DEFAULT (2)
#define CFG_ROAM_SCAN_HOME_AWAY_TIME "gRoamScanHomeAwayTime"
#define CFG_ROAM_SCAN_HOME_AWAY_TIME_MIN (0) // 0 for disable
#define CFG_ROAM_SCAN_HOME_AWAY_TIME_MAX (300)
#define CFG_ROAM_SCAN_HOME_AWAY_TIME_DEFAULT (CFG_ROAM_SCAN_HOME_AWAY_TIME_MIN)
// disabled by default
#endif /* (WLAN_FEATURE_VOWIFI_11R) || defined (FEATURE_WLAN_ESE) || defined(FEATURE_WLAN_LFR) */
#ifdef FEATURE_WLAN_OKC
#define CFG_OKC_FEATURE_ENABLED_NAME "OkcEnabled"
#define CFG_OKC_FEATURE_ENABLED_MIN (0)
#define CFG_OKC_FEATURE_ENABLED_MAX (1)
#define CFG_OKC_FEATURE_ENABLED_DEFAULT (1)
#endif
#ifdef WLAN_FEATURE_ROAM_SCAN_OFFLOAD
#define CFG_ROAM_SCAN_OFFLOAD_ENABLED "gRoamScanOffloadEnabled"
#define CFG_ROAM_SCAN_OFFLOAD_ENABLED_MIN (0)
#define CFG_ROAM_SCAN_OFFLOAD_ENABLED_MAX (1)
#define CFG_ROAM_SCAN_OFFLOAD_ENABLED_DEFAULT (1)
#endif
#define CFG_QOS_WMM_PKT_CLASSIFY_BASIS_NAME "PktClassificationBasis" // DSCP or 802.1Q
#define CFG_QOS_WMM_PKT_CLASSIFY_BASIS_MIN (0)
#define CFG_QOS_WMM_PKT_CLASSIFY_BASIS_MAX (1)
#define CFG_QOS_WMM_PKT_CLASSIFY_BASIS_DEFAULT (0) //DSCP
/* default TSPEC parameters for AC_VO */
#define CFG_QOS_WMM_INFRA_DIR_AC_VO_NAME "InfraDirAcVo"
#define CFG_QOS_WMM_INFRA_DIR_AC_VO_MIN (0)
#define CFG_QOS_WMM_INFRA_DIR_AC_VO_MAX (3)
#define CFG_QOS_WMM_INFRA_DIR_AC_VO_DEFAULT (3) //WLAN_QCT_CUST_WMM_TSDIR_BOTH
#define CFG_QOS_WMM_INFRA_NOM_MSDU_SIZE_AC_VO_NAME "InfraNomMsduSizeAcVo"
#define CFG_QOS_WMM_INFRA_NOM_MSDU_SIZE_AC_VO_MIN (0x0)
#define CFG_QOS_WMM_INFRA_NOM_MSDU_SIZE_AC_VO_MAX (0xFFFF)
#define CFG_QOS_WMM_INFRA_NOM_MSDU_SIZE_AC_VO_DEFAULT (0x80D0)
#define CFG_QOS_WMM_INFRA_MEAN_DATA_RATE_AC_VO_NAME "InfraMeanDataRateAcVo"
#define CFG_QOS_WMM_INFRA_MEAN_DATA_RATE_AC_VO_MIN (0x0)
#define CFG_QOS_WMM_INFRA_MEAN_DATA_RATE_AC_VO_MAX (0xFFFFFFFF)
#define CFG_QOS_WMM_INFRA_MEAN_DATA_RATE_AC_VO_DEFAULT (0x14500)
#define CFG_QOS_WMM_INFRA_MIN_PHY_RATE_AC_VO_NAME "InfraMinPhyRateAcVo"
#define CFG_QOS_WMM_INFRA_MIN_PHY_RATE_AC_VO_MIN (0x0)
#define CFG_QOS_WMM_INFRA_MIN_PHY_RATE_AC_VO_MAX (0xFFFFFFFF)
#define CFG_QOS_WMM_INFRA_MIN_PHY_RATE_AC_VO_DEFAULT (0x5B8D80)
#define CFG_QOS_WMM_INFRA_SBA_AC_VO_NAME "InfraSbaAcVo"
#define CFG_QOS_WMM_INFRA_SBA_AC_VO_MIN (0x2001)
#define CFG_QOS_WMM_INFRA_SBA_AC_VO_MAX (0xFFFF)
#define CFG_QOS_WMM_INFRA_SBA_AC_VO_DEFAULT (0x2001)
/* default TSPEC parameters for AC_VI */
#define CFG_QOS_WMM_INFRA_DIR_AC_VI_NAME "InfraDirAcVi"
#define CFG_QOS_WMM_INFRA_DIR_AC_VI_MIN (0)
#define CFG_QOS_WMM_INFRA_DIR_AC_VI_MAX (3)
#define CFG_QOS_WMM_INFRA_DIR_AC_VI_DEFAULT (3) //WLAN_QCT_CUST_WMM_TSDIR_BOTH
#define CFG_QOS_WMM_INFRA_NOM_MSDU_SIZE_AC_VI_NAME "InfraNomMsduSizeAcVi"
#define CFG_QOS_WMM_INFRA_NOM_MSDU_SIZE_AC_VI_MIN (0x0)
#define CFG_QOS_WMM_INFRA_NOM_MSDU_SIZE_AC_VI_MAX (0xFFFF)
#define CFG_QOS_WMM_INFRA_NOM_MSDU_SIZE_AC_VI_DEFAULT (0x85DC)
#define CFG_QOS_WMM_INFRA_MEAN_DATA_RATE_AC_VI_NAME "InfraMeanDataRateAcVi"
#define CFG_QOS_WMM_INFRA_MEAN_DATA_RATE_AC_VI_MIN (0x0)
#define CFG_QOS_WMM_INFRA_MEAN_DATA_RATE_AC_VI_MAX (0xFFFFFFFF)
#define CFG_QOS_WMM_INFRA_MEAN_DATA_RATE_AC_VI_DEFAULT (0x57E40)
#define CFG_QOS_WMM_INFRA_MIN_PHY_RATE_AC_VI_NAME "InfraMinPhyRateAcVi"
#define CFG_QOS_WMM_INFRA_MIN_PHY_RATE_AC_VI_MIN (0x0)
#define CFG_QOS_WMM_INFRA_MIN_PHY_RATE_AC_VI_MAX (0xFFFFFFFF)
#define CFG_QOS_WMM_INFRA_MIN_PHY_RATE_AC_VI_DEFAULT (0x5B8D80)
#define CFG_QOS_WMM_INFRA_SBA_AC_VI_NAME "InfraSbaAcVi"
#define CFG_QOS_WMM_INFRA_SBA_AC_VI_MIN (0x2001)
#define CFG_QOS_WMM_INFRA_SBA_AC_VI_MAX (0xFFFF)
#define CFG_QOS_WMM_INFRA_SBA_AC_VI_DEFAULT (0x2001)
/* default TSPEC parameters for AC_BE*/
#define CFG_QOS_WMM_INFRA_DIR_AC_BE_NAME "InfraDirAcBe"
#define CFG_QOS_WMM_INFRA_DIR_AC_BE_MIN (0)
#define CFG_QOS_WMM_INFRA_DIR_AC_BE_MAX (3)
#define CFG_QOS_WMM_INFRA_DIR_AC_BE_DEFAULT (3) //WLAN_QCT_CUST_WMM_TSDIR_BOTH
#define CFG_QOS_WMM_INFRA_NOM_MSDU_SIZE_AC_BE_NAME "InfraNomMsduSizeAcBe"
#define CFG_QOS_WMM_INFRA_NOM_MSDU_SIZE_AC_BE_MIN (0x0)
#define CFG_QOS_WMM_INFRA_NOM_MSDU_SIZE_AC_BE_MAX (0xFFFF)
#define CFG_QOS_WMM_INFRA_NOM_MSDU_SIZE_AC_BE_DEFAULT (0x85DC)
#define CFG_QOS_WMM_INFRA_MEAN_DATA_RATE_AC_BE_NAME "InfraMeanDataRateAcBe"
#define CFG_QOS_WMM_INFRA_MEAN_DATA_RATE_AC_BE_MIN (0x0)
#define CFG_QOS_WMM_INFRA_MEAN_DATA_RATE_AC_BE_MAX (0xFFFFFFFF)
#define CFG_QOS_WMM_INFRA_MEAN_DATA_RATE_AC_BE_DEFAULT (0x493E0)
#define CFG_QOS_WMM_INFRA_MIN_PHY_RATE_AC_BE_NAME "InfraMinPhyRateAcBe"
#define CFG_QOS_WMM_INFRA_MIN_PHY_RATE_AC_BE_MIN (0x0)
#define CFG_QOS_WMM_INFRA_MIN_PHY_RATE_AC_BE_MAX (0xFFFFFFFF)
#define CFG_QOS_WMM_INFRA_MIN_PHY_RATE_AC_BE_DEFAULT (0x5B8D80)
#define CFG_QOS_WMM_INFRA_SBA_AC_BE_NAME "InfraSbaAcBe"
#define CFG_QOS_WMM_INFRA_SBA_AC_BE_MIN (0x2001)
#define CFG_QOS_WMM_INFRA_SBA_AC_BE_MAX (0xFFFF)
#define CFG_QOS_WMM_INFRA_SBA_AC_BE_DEFAULT (0x2001)
/* default TSPEC parameters for AC_Bk*/
#define CFG_QOS_WMM_INFRA_DIR_AC_BK_NAME "InfraDirAcBk"
#define CFG_QOS_WMM_INFRA_DIR_AC_BK_MIN (0)
#define CFG_QOS_WMM_INFRA_DIR_AC_BK_MAX (3)
#define CFG_QOS_WMM_INFRA_DIR_AC_BK_DEFAULT (3) //WLAN_QCT_CUST_WMM_TSDIR_BOTH
#define CFG_QOS_WMM_INFRA_NOM_MSDU_SIZE_AC_BK_NAME "InfraNomMsduSizeAcBk"
#define CFG_QOS_WMM_INFRA_NOM_MSDU_SIZE_AC_BK_MIN (0x0)
#define CFG_QOS_WMM_INFRA_NOM_MSDU_SIZE_AC_BK_MAX (0xFFFF)
#define CFG_QOS_WMM_INFRA_NOM_MSDU_SIZE_AC_BK_DEFAULT (0x85DC)
#define CFG_QOS_WMM_INFRA_MEAN_DATA_RATE_AC_BK_NAME "InfraMeanDataRateAcBk"
#define CFG_QOS_WMM_INFRA_MEAN_DATA_RATE_AC_BK_MIN (0x0)
#define CFG_QOS_WMM_INFRA_MEAN_DATA_RATE_AC_BK_MAX (0xFFFFFFFF)
#define CFG_QOS_WMM_INFRA_MEAN_DATA_RATE_AC_BK_DEFAULT (0x493E0)
#define CFG_QOS_WMM_INFRA_MIN_PHY_RATE_AC_BK_NAME "InfraMinPhyRateAcBk"
#define CFG_QOS_WMM_INFRA_MIN_PHY_RATE_AC_BK_MIN (0x0)
#define CFG_QOS_WMM_INFRA_MIN_PHY_RATE_AC_BK_MAX (0xFFFFFFFF)
#define CFG_QOS_WMM_INFRA_MIN_PHY_RATE_AC_BK_DEFAULT (0x5B8D80)
#define CFG_QOS_WMM_INFRA_SBA_AC_BK_NAME "InfraSbaAcBk"
#define CFG_QOS_WMM_INFRA_SBA_AC_BK_MIN (0x2001)
#define CFG_QOS_WMM_INFRA_SBA_AC_BK_MAX (0xFFFF)
#define CFG_QOS_WMM_INFRA_SBA_AC_BK_DEFAULT (0x2001)
// TL configuration
#define CFG_TL_DELAYED_TRGR_FRM_INT_NAME "DelayedTriggerFrmInt"
#define CFG_TL_DELAYED_TRGR_FRM_INT_MIN 1
#define CFG_TL_DELAYED_TRGR_FRM_INT_MAX (4294967295UL)
#define CFG_TL_DELAYED_TRGR_FRM_INT_DEFAULT 3000
#if defined WLAN_FEATURE_VOWIFI
#define CFG_RRM_ENABLE_NAME "gRrmEnable"
#define CFG_RRM_ENABLE_MIN (0)
#define CFG_RRM_ENABLE_MAX (1)
#define CFG_RRM_ENABLE_DEFAULT (0)
#define CFG_RRM_OPERATING_CHAN_MAX_DURATION_NAME "gRrmOperChanMax" //section 11.10.3 IEEE std. 802.11k-2008
#define CFG_RRM_OPERATING_CHAN_MAX_DURATION_MIN (0) //Maxduration = 2^(maxDuration - 4) * bcnIntvl.
#define CFG_RRM_OPERATING_CHAN_MAX_DURATION_MAX (7)
#define CFG_RRM_OPERATING_CHAN_MAX_DURATION_DEFAULT (4) //max duration = 2^0 * bcnIntvl (100% of bcn intvl)
#define CFG_RRM_NON_OPERATING_CHAN_MAX_DURATION_NAME "gRrmNonOperChanMax" //Same as above.
#define CFG_RRM_NON_OPERATING_CHAN_MAX_DURATION_MIN (0)
#define CFG_RRM_NON_OPERATING_CHAN_MAX_DURATION_MAX (7)
#define CFG_RRM_NON_OPERATING_CHAN_MAX_DURATION_DEFAULT (4)
#define CFG_RRM_MEAS_RANDOMIZATION_INTVL_NAME "gRrmRandnIntvl"
#define CFG_RRM_MEAS_RANDOMIZATION_INTVL_MIN (10)
#define CFG_RRM_MEAS_RANDOMIZATION_INTVL_MAX (100)
#define CFG_RRM_MEAS_RANDOMIZATION_INTVL_DEFAULT (100)
/**
* This INI is used to configure RM enabled capabilities IE.
* Using this INI, we can set/unset any of the bits in 5 bytes
* (last 4bytes are reserved). Bit details are updated as per
* Draft version of 11mc spec. (Draft P802.11REVmc_D4.2)
*
* Bitwise details are defined as bit mask in rrmGlobal.h
* Comma is used as a separator for each byte.
*/
#define CFG_RM_CAPABILITY_NAME "rm_capability"
#define CFG_RM_CAPABILITY_DEFAULT "73,00,91,00,04"
#endif
#define CFG_QOS_IMPLICIT_SETUP_ENABLED_NAME "ImplicitQosIsEnabled"
#define CFG_QOS_IMPLICIT_SETUP_ENABLED_MIN (0)
#define CFG_QOS_IMPLICIT_SETUP_ENABLED_MAX (1)
#define CFG_QOS_IMPLICIT_SETUP_ENABLED_DEFAULT (1)
#define CFG_ENABLE_LOGP_NAME "gEnableLogp"
#define CFG_ENABLE_LOGP_MIN ( 0 )
#define CFG_ENABLE_LOGP_MAX ( 1 )
#define CFG_ENABLE_LOGP_DEFAULT ( 0 )
#define CFG_BTC_EXECUTION_MODE_NAME "BtcExecutionMode"
#define CFG_BTC_EXECUTION_MODE_MIN ( 0 )
#define CFG_BTC_EXECUTION_MODE_MAX ( 5 )
#define CFG_BTC_EXECUTION_MODE_DEFAULT ( 0 )
#define CFG_MWS_COEX_CONFIG1_NAME "mwsCoexConfig1"
#define CFG_MWS_COEX_CONFIGX_MIN ( 0 )
#define CFG_MWS_COEX_CONFIGX_MAX ( 0xFFFFFFFF )
#define CFG_MWS_COEX_CONFIGX_DEFAULT ( 0 )
#define CFG_MWS_COEX_CONFIG2_NAME "mwsCoexConfig2"
#define CFG_MWS_COEX_CONFIG3_NAME "mwsCoexConfig3"
#define CFG_MWS_COEX_CONFIG4_NAME "mwsCoexConfig4"
#define CFG_MWS_COEX_CONFIG5_NAME "mwsCoexConfig5"
#define CFG_MWS_COEX_CONFIG6_NAME "mwsCoexConfig6"
#if defined WLAN_FEATURE_VOWIFI_11R
#define CFG_FT_RESOURCE_REQ_NAME "gFTResourceReqSupported"
#define CFG_FT_RESOURCE_REQ_MIN (0)
#define CFG_FT_RESOURCE_REQ_MAX (1)
#define CFG_FT_RESOURCE_REQ_DEFAULT (0)
#endif
/*
* Enable/Disable to initiate BUG report in case of fatal event
* Default: Enable
*/
#define CFG_ENABLE_FATAL_EVENT_TRIGGER "gEnableFatalEvent"
#define CFG_ENABLE_FATAL_EVENT_TRIGGER_MIN (0)
#define CFG_ENABLE_FATAL_EVENT_TRIGGER_MAX (1)
#define CFG_ENABLE_FATAL_EVENT_TRIGGER_DEFAULT (1)
#define CFG_TELE_BCN_TRANS_LI_NAME "telescopicBeaconTransListenInterval"
#define CFG_TELE_BCN_TRANS_LI_MIN ( 0 )
#define CFG_TELE_BCN_TRANS_LI_MAX ( 7 )
#define CFG_TELE_BCN_TRANS_LI_DEFAULT ( 3 )
#define CFG_TELE_BCN_TRANS_LI_NUM_IDLE_BCNS_NAME "telescopicBeaconTransListenIntervalNumIdleBcns"
#define CFG_TELE_BCN_TRANS_LI_NUM_IDLE_BCNS_MIN ( 5 )
#define CFG_TELE_BCN_TRANS_LI_NUM_IDLE_BCNS_MAX ( 255 )
#define CFG_TELE_BCN_TRANS_LI_NUM_IDLE_BCNS_DEFAULT ( 10 )
#define CFG_TELE_BCN_MAX_LI_NAME "telescopicBeaconMaxListenInterval"
#define CFG_TELE_BCN_MAX_LI_MIN ( 0 )
#define CFG_TELE_BCN_MAX_LI_MAX ( 7 )
#define CFG_TELE_BCN_MAX_LI_DEFAULT ( 5 )
#define CFG_TELE_BCN_MAX_LI_NUM_IDLE_BCNS_NAME "telescopicBeaconMaxListenIntervalNumIdleBcns"
#define CFG_TELE_BCN_MAX_LI_NUM_IDLE_BCNS_MIN ( 5 )
#define CFG_TELE_BCN_MAX_LI_NUM_IDLE_BCNS_MAX ( 255 )
#define CFG_TELE_BCN_MAX_LI_NUM_IDLE_BCNS_DEFAULT ( 15 )
#define CFG_BCN_EARLY_TERM_WAKE_NAME "beaconEarlyTerminationWakeInterval"
#define CFG_BCN_EARLY_TERM_WAKE_MIN ( 2 )
#define CFG_BCN_EARLY_TERM_WAKE_MAX ( 255 )
#define CFG_BCN_EARLY_TERM_WAKE_DEFAULT ( 3 )
#ifdef WLAN_FEATURE_NEIGHBOR_ROAMING
#define CFG_NEIGHBOR_SCAN_TIMER_PERIOD_NAME "gNeighborScanTimerPeriod"
#define CFG_NEIGHBOR_SCAN_TIMER_PERIOD_MIN (3)
#define CFG_NEIGHBOR_SCAN_TIMER_PERIOD_MAX (300)
#define CFG_NEIGHBOR_SCAN_TIMER_PERIOD_DEFAULT (200)
#define CFG_NEIGHBOR_REASSOC_RSSI_THRESHOLD_NAME "gNeighborReassocThreshold"
#define CFG_NEIGHBOR_REASSOC_RSSI_THRESHOLD_MIN (10)
#define CFG_NEIGHBOR_REASSOC_RSSI_THRESHOLD_MAX (125)
#define CFG_NEIGHBOR_REASSOC_RSSI_THRESHOLD_DEFAULT (83)
#define CFG_NEIGHBOR_LOOKUP_RSSI_THRESHOLD_NAME "gNeighborLookupThreshold"
#define CFG_NEIGHBOR_LOOKUP_RSSI_THRESHOLD_MIN (10)
#define CFG_NEIGHBOR_LOOKUP_RSSI_THRESHOLD_MAX (120)
#define CFG_NEIGHBOR_LOOKUP_RSSI_THRESHOLD_DEFAULT (78)
#define CFG_DELAY_BEFORE_VDEV_STOP_NAME "gDelayBeforeVdevStop"
#define CFG_DELAY_BEFORE_VDEV_STOP_MIN (2)
#define CFG_DELAY_BEFORE_VDEV_STOP_MAX (200)
#define CFG_DELAY_BEFORE_VDEV_STOP_DEFAULT (20)
/*
* This parameter is the drop in RSSI value that will trigger a precautionary
* scan by firmware.
* MAX value is choose so that this type of scan can be disabled by user.
*/
#define CFG_ROAM_RESCAN_RSSI_DIFF_NAME "gRoamRescanRssiDiff"
#define CFG_ROAM_RESCAN_RSSI_DIFF_MIN (0)
#define CFG_ROAM_RESCAN_RSSI_DIFF_MAX (100)
#define CFG_ROAM_RESCAN_RSSI_DIFF_DEFAULT (5)
/*
* This parameter is the continuous packets dropping threshold that will trigger
* kickout peer event from fw.
* MIN value will disable the kickout feature.
*/
#define CFG_DROPPED_PKT_DISCONNECT_TH_NAME "gDroppedPktDisconnectTh"
#define CFG_DROPPED_PKT_DISCONNECT_TH_MIN (0)
#define CFG_DROPPED_PKT_DISCONNECT_TH_MAX (1024)
#define CFG_DROPPED_PKT_DISCONNECT_TH_DEFAULT (512)
/*
* This parameter is the RSSI diff above neighbor lookup threshold, when
* opportunistic scan should be triggered.
* MAX value is choose so that this type of scan can be always enabled by user.
* MIN value will cause opportunistic scan to be triggered in neighbor lookup
* RSSI range.
*/
#define CFG_OPPORTUNISTIC_SCAN_THRESHOLD_DIFF_NAME "gOpportunisticThresholdDiff"
#define CFG_OPPORTUNISTIC_SCAN_THRESHOLD_DIFF_MIN (0)
#define CFG_OPPORTUNISTIC_SCAN_THRESHOLD_DIFF_MAX (127)
#define CFG_OPPORTUNISTIC_SCAN_THRESHOLD_DIFF_DEFAULT (0)
#define CFG_NEIGHBOR_SCAN_CHAN_LIST_NAME "gNeighborScanChannelList"
#define CFG_NEIGHBOR_SCAN_CHAN_LIST_DEFAULT ""
#define CFG_NEIGHBOR_SCAN_MIN_CHAN_TIME_NAME "gNeighborScanChannelMinTime"
#define CFG_NEIGHBOR_SCAN_MIN_CHAN_TIME_MIN (10)
#define CFG_NEIGHBOR_SCAN_MIN_CHAN_TIME_MAX (40)
#define CFG_NEIGHBOR_SCAN_MIN_CHAN_TIME_DEFAULT (20)
#define CFG_NEIGHBOR_SCAN_MAX_CHAN_TIME_NAME "gNeighborScanChannelMaxTime"
#define CFG_NEIGHBOR_SCAN_MAX_CHAN_TIME_MIN (3)
#define CFG_NEIGHBOR_SCAN_MAX_CHAN_TIME_MAX (300)
#define CFG_NEIGHBOR_SCAN_MAX_CHAN_TIME_DEFAULT (30)
#define CFG_11R_NEIGHBOR_REQ_MAX_TRIES_NAME "gMaxNeighborReqTries"
#define CFG_11R_NEIGHBOR_REQ_MAX_TRIES_MIN (1)
#define CFG_11R_NEIGHBOR_REQ_MAX_TRIES_MAX (4)
#define CFG_11R_NEIGHBOR_REQ_MAX_TRIES_DEFAULT (3)
#define CFG_NEIGHBOR_SCAN_RESULTS_REFRESH_PERIOD_NAME "gNeighborScanRefreshPeriod"
#define CFG_NEIGHBOR_SCAN_RESULTS_REFRESH_PERIOD_MIN (1000)
#define CFG_NEIGHBOR_SCAN_RESULTS_REFRESH_PERIOD_MAX (60000)
#define CFG_NEIGHBOR_SCAN_RESULTS_REFRESH_PERIOD_DEFAULT (20000)
#define CFG_EMPTY_SCAN_REFRESH_PERIOD_NAME "gEmptyScanRefreshPeriod"
#define CFG_EMPTY_SCAN_REFRESH_PERIOD_MIN (0)
#define CFG_EMPTY_SCAN_REFRESH_PERIOD_MAX (60000)
#define CFG_EMPTY_SCAN_REFRESH_PERIOD_DEFAULT (0)
#define CFG_ROAM_BMISS_FIRST_BCNT_NAME "gRoamBmissFirstBcnt"
#define CFG_ROAM_BMISS_FIRST_BCNT_MIN (5)
#define CFG_ROAM_BMISS_FIRST_BCNT_MAX (100)
#define CFG_ROAM_BMISS_FIRST_BCNT_DEFAULT (10)
#define CFG_ROAM_BMISS_FINAL_BCNT_NAME "gRoamBmissFinalBcnt"
#define CFG_ROAM_BMISS_FINAL_BCNT_MIN (5)
#define CFG_ROAM_BMISS_FINAL_BCNT_MAX (100)
#define CFG_ROAM_BMISS_FINAL_BCNT_DEFAULT (10)
#define CFG_ROAM_BEACON_RSSI_WEIGHT_NAME "gRoamBeaconRssiWeight"
#define CFG_ROAM_BEACON_RSSI_WEIGHT_MIN (0)
#define CFG_ROAM_BEACON_RSSI_WEIGHT_MAX (16)
#define CFG_ROAM_BEACON_RSSI_WEIGHT_DEFAULT (14)
#endif /* WLAN_FEATURE_NEIGHBOR_ROAMING */
#define CFG_QOS_WMM_BURST_SIZE_DEFN_NAME "burstSizeDefinition"
#define CFG_QOS_WMM_BURST_SIZE_DEFN_MIN (0)
#define CFG_QOS_WMM_BURST_SIZE_DEFN_MAX (1)
#define CFG_QOS_WMM_BURST_SIZE_DEFN_DEFAULT (0)
#define CFG_QOS_WMM_TS_INFO_ACK_POLICY_NAME "tsInfoAckPolicy"
#define CFG_QOS_WMM_TS_INFO_ACK_POLICY_MIN (0x00)
#define CFG_QOS_WMM_TS_INFO_ACK_POLICY_MAX (0x01)
#define CFG_QOS_WMM_TS_INFO_ACK_POLICY_DEFAULT (0x00)
#define CFG_SINGLE_TID_RC_NAME "SingleTIDRC"
#define CFG_SINGLE_TID_RC_MIN (0) /* Separate replay counter for all TID */
#define CFG_SINGLE_TID_RC_MAX (1) /* Single replay counter for all TID */
#define CFG_SINGLE_TID_RC_DEFAULT (1)
#define CFG_MCAST_BCAST_FILTER_SETTING_NAME "McastBcastFilter"
#define CFG_MCAST_BCAST_FILTER_SETTING_MIN (0)
#define CFG_MCAST_BCAST_FILTER_SETTING_MAX (3)
#define CFG_MCAST_BCAST_FILTER_SETTING_DEFAULT (0)
#define CFG_DYNAMIC_PSPOLL_VALUE_NAME "gDynamicPSPollvalue"
#define CFG_DYNAMIC_PSPOLL_VALUE_MIN (0)
#define CFG_DYNAMIC_PSPOLL_VALUE_MAX (255)
#define CFG_DYNAMIC_PSPOLL_VALUE_DEFAULT (0)
#define CFG_TELE_BCN_WAKEUP_EN_NAME "gTelescopicBeaconWakeupEn"
#define CFG_TELE_BCN_WAKEUP_EN_MIN (0)
#define CFG_TELE_BCN_WAKEUP_EN_MAX (1)
#define CFG_TELE_BCN_WAKEUP_EN_DEFAULT (0)
#define CFG_QOS_ADDTS_WHEN_ACM_IS_OFF_NAME "gAddTSWhenACMIsOff"
#define CFG_QOS_ADDTS_WHEN_ACM_IS_OFF_MIN (0)
#define CFG_QOS_ADDTS_WHEN_ACM_IS_OFF_MAX (1) //Send AddTs even when ACM is not set for the AC
#define CFG_QOS_ADDTS_WHEN_ACM_IS_OFF_DEFAULT (0)
/*
* This flag will take effect only when Runtime PM is active.
* APPS will be awake during runtime PM, if any user space application
* needs the broadcast packets OEM's can enable gRuntimePmEnableBcastPattern.
* FW will filter the broadcast packets and wakeup host to deliver them during
* runtime suspend.
*/
#define CFG_ENABLE_HOST_BROADCAST_NAME "gRuntimePmEnableBcastPattern"
#define CFG_ENABLE_HOST_BROADCAST_MIN (0)
#define CFG_ENABLE_HOST_BROADCAST_MAX (1)
#define CFG_ENABLE_HOST_BROADCAST_DEFAULT (0)
#define CFG_VALIDATE_SCAN_LIST_NAME "gValidateScanList"
#define CFG_VALIDATE_SCAN_LIST_MIN (0)
#define CFG_VALIDATE_SCAN_LIST_MAX (1)
#define CFG_VALIDATE_SCAN_LIST_DEFAULT (0)
#define CFG_NULLDATA_AP_RESP_TIMEOUT_NAME "gNullDataApRespTimeout"
#define CFG_NULLDATA_AP_RESP_TIMEOUT_MIN ( WNI_CFG_PS_NULLDATA_AP_RESP_TIMEOUT_STAMIN )
#define CFG_NULLDATA_AP_RESP_TIMEOUT_MAX ( WNI_CFG_PS_NULLDATA_AP_RESP_TIMEOUT_STAMAX )
#define CFG_NULLDATA_AP_RESP_TIMEOUT_DEFAULT ( WNI_CFG_PS_NULLDATA_AP_RESP_TIMEOUT_STADEF )
#define CFG_AP_DATA_AVAIL_POLL_PERIOD_NAME "gApDataAvailPollInterval"
#define CFG_AP_DATA_AVAIL_POLL_PERIOD_MIN ( WNI_CFG_AP_DATA_AVAIL_POLL_PERIOD_STAMIN )
#define CFG_AP_DATA_AVAIL_POLL_PERIOD_MAX ( WNI_CFG_AP_DATA_AVAIL_POLL_PERIOD_STAMAX )
#define CFG_AP_DATA_AVAIL_POLL_PERIOD_DEFAULT ( WNI_CFG_AP_DATA_AVAIL_POLL_PERIOD_STADEF )
#define CFG_ENABLE_HOST_ARPOFFLOAD_NAME "hostArpOffload"
#define CFG_ENABLE_HOST_ARPOFFLOAD_MIN ( 0 )
#define CFG_ENABLE_HOST_ARPOFFLOAD_MAX ( 1 )
#define CFG_ENABLE_HOST_ARPOFFLOAD_DEFAULT ( 1 )
#define CFG_ENABLE_HOST_SSDP_NAME "ssdp"
#define CFG_ENABLE_HOST_SSDP_MIN ( 0 )
#define CFG_ENABLE_HOST_SSDP_MAX ( 1 )
#define CFG_ENABLE_HOST_SSDP_DEFAULT ( 1 )
#ifdef FEATURE_RUNTIME_PM
#define CFG_ENABLE_RUNTIME_PM "gRuntimePM"
#define CFG_ENABLE_RUNTIME_PM_MIN ( 0 )
#define CFG_ENABLE_RUNTIME_PM_MAX ( 1 )
#define CFG_ENABLE_RUNTIME_PM_DEFAULT ( 0 )
#define CFG_RUNTIME_PM_AUTO_NAME "gRuntimePMDelay"
#define CFG_RUNTIME_PM_AUTO_MIN ( 100 )
#define CFG_RUNTIME_PM_AUTO_MAX ( 10000 )
#define CFG_RUNTIME_PM_AUTO_DEFAULT ( 500 )
#endif
#ifdef FEATURE_SECURE_FIRMWARE
#define CFG_ENABLE_FW_HASH_CHECK_NAME "gEnableFWHashCheck"
#define CFG_ENABLE_FW_HASH_CHECK_MIN ( 0 )
#define CFG_ENABLE_FW_HASH_CHECK_MAX ( 1 )
#define CFG_ENABLE_FW_HASH_CHECK_DEFAULT ( 1 )
#endif
#define CFG_ENABLE_HOST_NSOFFLOAD_NAME "hostNSOffload"
#define CFG_ENABLE_HOST_NSOFFLOAD_MIN ( 0 )
#define CFG_ENABLE_HOST_NSOFFLOAD_MAX ( 1 )
#define CFG_ENABLE_HOST_NSOFFLOAD_DEFAULT ( 1 )
#define CFG_BAND_CAPABILITY_NAME "BandCapability"
#define CFG_BAND_CAPABILITY_MIN (0)
#define CFG_BAND_CAPABILITY_MAX (2)
#define CFG_BAND_CAPABILITY_DEFAULT (0)
#define CFG_ENABLE_BEACON_EARLY_TERMINATION_NAME "enableBeaconEarlyTermination"
#define CFG_ENABLE_BEACON_EARLY_TERMINATION_MIN ( 0 )
#define CFG_ENABLE_BEACON_EARLY_TERMINATION_MAX ( 1 )
#define CFG_ENABLE_BEACON_EARLY_TERMINATION_DEFAULT ( 0 )
#define CFG_ENABLE_BYPASS_11D_NAME "gEnableBypass11d"
#define CFG_ENABLE_BYPASS_11D_MIN ( 0 )
#define CFG_ENABLE_BYPASS_11D_MAX ( 1 )
#define CFG_ENABLE_BYPASS_11D_DEFAULT ( 1 )
#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 )
#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 )
#define CFG_ENABLE_RAMDUMP_COLLECTION "gEnableDumpCollect"
#define CFG_ENABLE_RAMDUMP_COLLECTION_MIN ( 0 )
#define CFG_ENABLE_RAMDUMP_COLLECTION_MAX ( 1 )
#define CFG_ENABLE_RAMDUMP_COLLECTION_DEFAULT ( 1 )
/*
* gStaAuthRetriesForCode17
* It is for an IOT issue.
* When DUT receives MAX_ASSOC_STA_REACHED_STATUS as
* response for Auth frame this ini decides how many
* times DUT has to retry.
*
* This is mainly for an AP where it wants to force
* the Station to connect to its 5G profile session
* (Dual band AP) by rejecting the Auth on 2.4G band.
* But if a station is only 2.4G capable it can try
* 3 times where third time AP will allow the
* station to connect to this AP.
*/
#define CFG_STA_AUTH_RETRIES_FOR_CODE17_NAME "gStaAuthRetriesForCode17"
#define CFG_STA_AUTH_RETRIES_FOR_CODE17_MIN ( 0 )
#define CFG_STA_AUTH_RETRIES_FOR_CODE17_MAX ( 5 )
#define CFG_STA_AUTH_RETRIES_FOR_CODE17_DEFAULT ( 0 )
typedef enum
{
eHDD_LINK_SPEED_REPORT_ACTUAL = 0,
eHDD_LINK_SPEED_REPORT_MAX = 1,
eHDD_LINK_SPEED_REPORT_MAX_SCALED = 2,
}eHddLinkSpeedReportType;
#ifdef WLAN_FEATURE_11AC
#define CFG_VHT_CHANNEL_WIDTH "gVhtChannelWidth"
#define CFG_VHT_CHANNEL_WIDTH_MIN ( 0 )
#define CFG_VHT_CHANNEL_WIDTH_MAX ( 2 )
#define CFG_VHT_CHANNEL_WIDTH_DEFAULT ( 2 )
#define CFG_VHT_ENABLE_RX_MCS_8_9 "gVhtRxMCS"
#define CFG_VHT_ENABLE_RX_MCS_8_9_MIN ( 0 )
#define CFG_VHT_ENABLE_RX_MCS_8_9_MAX ( 2 )
#define CFG_VHT_ENABLE_RX_MCS_8_9_DEFAULT ( 0 )
#define CFG_VHT_ENABLE_TX_MCS_8_9 "gVhtTxMCS"
#define CFG_VHT_ENABLE_TX_MCS_8_9_MIN ( 0 )
#define CFG_VHT_ENABLE_TX_MCS_8_9_MAX ( 2 )
#define CFG_VHT_ENABLE_TX_MCS_8_9_DEFAULT ( 0 )
#define CFG_VHT_ENABLE_RX_MCS2x2_8_9 "gVhtRxMCS2x2"
#define CFG_VHT_ENABLE_RX_MCS2x2_8_9_MIN ( 0 )
#define CFG_VHT_ENABLE_RX_MCS2x2_8_9_MAX ( 2 )
#define CFG_VHT_ENABLE_RX_MCS2x2_8_9_DEFAULT ( 0 )
#define CFG_VHT_ENABLE_TX_MCS2x2_8_9 "gVhtTxMCS2x2"
#define CFG_VHT_ENABLE_TX_MCS2x2_8_9_MIN ( 0 )
#define CFG_VHT_ENABLE_TX_MCS2x2_8_9_MAX ( 2 )
#define CFG_VHT_ENABLE_TX_MCS2x2_8_9_DEFAULT ( 0 )
#define CFG_VHT_ENABLE_2x2_CAP_FEATURE "gEnable2x2"
#define CFG_VHT_ENABLE_2x2_CAP_FEATURE_MIN ( 0 )
#define CFG_VHT_ENABLE_2x2_CAP_FEATURE_MAX ( 1 )
#define CFG_VHT_ENABLE_2x2_CAP_FEATURE_DEFAULT ( 0 )
#define CFG_ENABLE_VHT_DYNAMIC_STA_CHAINMASK "gEnableDynamicSTAChainMask"
#define CFG_ENABLE_VHT_DYNAMIC_STA_CHAINMASK_MIN (0)
#define CFG_ENABLE_VHT_DYNAMIC_STA_CHAINMASK_MAX (1)
#define CFG_ENABLE_VHT_DYNAMIC_STA_CHAINMASK_DEFAULT (0)
/*
* gChainMask_2g: to set RX chainmask for 2.4GH if
* per band chainmask is supported
*
* Valid chain mask values.
* 01 - enables chain0
* 02 - enables chain1
* 03 - enables both chain 0 and chain 1
*/
#define CFG_RX_CHAIN_MASK_2G "gChainMask_2g"
#define CFG_RX_CHAIN_MASK_2G_MIN (1)
#define CFG_RX_CHAIN_MASK_2G_MAX (3)
#define CFG_RX_CHAIN_MASK_2G_DEFAULT (3)
/*
* gChainMask_5g: to set RX chainmask for 5GH if
* per band chainmask is supported
*
* Valid chain mask values.
* 01 - enables chain0
* 02 - enables chain1
* 03 - enables both chain 0 and chain 1
*/
#define CFG_RX_CHAIN_MASK_5G "gChainMask_5g"
#define CFG_RX_CHAIN_MASK_5G_MIN (1)
#define CFG_RX_CHAIN_MASK_5G_MAX (3)
#define CFG_RX_CHAIN_MASK_5G_DEFAULT (3)
/*
* gChainMask_2g_tx: to set TX chainmask for 2.4GH if
* per band chainmask is supported
*
* Valid chain mask values.
* 01 - enables chain0
* 02 - enables chain1
* 03 - enables both chain 0 and chain 1
*/
#define CFG_TX_CHAIN_MASK_2G "gChainMask_2g_tx"
#define CFG_TX_CHAIN_MASK_2G_MIN (1)
#define CFG_TX_CHAIN_MASK_2G_MAX (3)
#define CFG_TX_CHAIN_MASK_2G_DEFAULT (3)
/*
* gChainMask_5g_tx: to set TX chainmask for 5GH if
* per band chainmask is supported
*
* Valid chain mask values.
* 01 - enables chain0
* 02 - enables chain1
* 03 - enables both chain 0 and chain 1
*/
#define CFG_TX_CHAIN_MASK_5G "gChainMask_5g_tx"
#define CFG_TX_CHAIN_MASK_5G_MIN (1)
#define CFG_TX_CHAIN_MASK_5G_MAX (3)
#define CFG_TX_CHAIN_MASK_5G_DEFAULT (3)
/*
* NSS cfg bit definition.
* STA BIT[0:1]
* SAP BIT[2:3]
* P2P_GO BIT[4:5]
* P2P_CLIENT BIT[6:7]
* IBSS BIT[8:9]
* TDLS BIT[10:11]
* P2P_DEVICE BIT[12:13]
* OCB BIT[14:15]
*/
#define CFG_VDEV_TYPE_NSS_2G "gVdevTypeNss_2g"
#define CFG_VDEV_TYPE_NSS_2G_MIN ( 0x5555 )
#define CFG_VDEV_TYPE_NSS_2G_MAX ( 0xAAAA )
#define CFG_VDEV_TYPE_NSS_2G_DEFAULT ( 0xAAAA )
#define CFG_VDEV_TYPE_NSS_5G "gVdevTypeNss_5g"
#define CFG_VDEV_TYPE_NSS_5G_MIN ( 0x5555 )
#define CFG_VDEV_TYPE_NSS_5G_MAX ( 0xAAAA )
#define CFG_VDEV_TYPE_NSS_5G_DEFAULT ( 0xAAAA )
#define CFG_VHT_ENABLE_MU_BFORMEE_CAP_FEATURE "gEnableMuBformee"
#define CFG_VHT_ENABLE_MU_BFORMEE_CAP_FEATURE_MIN ( 0 )
#define CFG_VHT_ENABLE_MU_BFORMEE_CAP_FEATURE_MAX ( 1 )
#define CFG_VHT_ENABLE_MU_BFORMEE_CAP_FEATURE_DEFAULT ( 1 )
#define CFG_VHT_ENABLE_PAID_FEATURE "gEnablePAID"
#define CFG_VHT_ENABLE_PAID_FEATURE_MIN ( 0 )
#define CFG_VHT_ENABLE_PAID_FEATURE_MAX ( 1 )
#define CFG_VHT_ENABLE_PAID_FEATURE_DEFAULT ( 0 )
#define CFG_VHT_ENABLE_GID_FEATURE "gEnableGID"
#define CFG_VHT_ENABLE_GID_FEATURE_MIN ( 0 )
#define CFG_VHT_ENABLE_GID_FEATURE_MAX ( 1 )
#define CFG_VHT_ENABLE_GID_FEATURE_DEFAULT ( 0 )
#endif
#define CFG_VHT_ENABLE_1x1_TX_CHAINMASK "gSetTxChainmask1x1"
#define CFG_VHT_ENABLE_1x1_TX_CHAINMASK_MIN ( 1 )
#define CFG_VHT_ENABLE_1x1_TX_CHAINMASK_MAX ( 2 )
#define CFG_VHT_ENABLE_1x1_TX_CHAINMASK_DEFAULT ( 1 )
#define CFG_VHT_ENABLE_1x1_RX_CHAINMASK "gSetRxChainmask1x1"
#define CFG_VHT_ENABLE_1x1_RX_CHAINMASK_MIN ( 1 )
#define CFG_VHT_ENABLE_1x1_RX_CHAINMASK_MAX ( 2 )
#define CFG_VHT_ENABLE_1x1_RX_CHAINMASK_DEFAULT ( 1 )
#define CFG_ENABLE_AMPDUPS_FEATURE "gEnableAMPDUPS"
#define CFG_ENABLE_AMPDUPS_FEATURE_MIN ( 0 )
#define CFG_ENABLE_AMPDUPS_FEATURE_MAX ( 1 )
#define CFG_ENABLE_AMPDUPS_FEATURE_DEFAULT ( 0 )
#define CFG_HT_ENABLE_SMPS_CAP_FEATURE "gEnableHtSMPS"
#define CFG_HT_ENABLE_SMPS_CAP_FEATURE_MIN ( 0 )
#define CFG_HT_ENABLE_SMPS_CAP_FEATURE_MAX ( 1 )
#define CFG_HT_ENABLE_SMPS_CAP_FEATURE_DEFAULT ( 0 )
#define CFG_HT_SMPS_CAP_FEATURE "gHtSMPS"
#define CFG_HT_SMPS_CAP_FEATURE_MIN ( 0 )
#define CFG_HT_SMPS_CAP_FEATURE_MAX ( 3 )
#define CFG_HT_SMPS_CAP_FEATURE_DEFAULT ( 3 )
#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 )
#define CFG_ENABLE_RADAR_WAR "gEnableRadarAssocWar"
#define CFG_ENABLE_RADAR_WAR_MIN ( 0 )
#define CFG_ENABLE_RADAR_WAR_MAX ( 1 )
#define CFG_ENABLE_RADAR_WAR_DEFAULT ( 1 )
#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 )
/*
* This parameter indicates if SAP preferred
* channel are INDOOR/OUTDOOR Channels.
* 0- Indicates no preferred channel location or
* no preferred channel restrictions.
* 1- Indicates Use only Indoor channels only.
* 2- Indicates Use outdoor channels only.
*/
#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 )
#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 )
#define CFG_ENABLE_DFS_PHYERR_FILTEROFFLOAD_NAME "dfsPhyerrFilterOffload"
#define CFG_ENABLE_DFS_PHYERR_FILTEROFFLOAD_MIN ( 0 )
#define CFG_ENABLE_DFS_PHYERR_FILTEROFFLOAD_MAX ( 1 )
#define CFG_ENABLE_DFS_PHYERR_FILTEROFFLOAD_DEFAULT ( 0 )
#define CFG_REPORT_MAX_LINK_SPEED "gReportMaxLinkSpeed"
#define CFG_REPORT_MAX_LINK_SPEED_MIN ( eHDD_LINK_SPEED_REPORT_ACTUAL )
#define CFG_REPORT_MAX_LINK_SPEED_MAX ( eHDD_LINK_SPEED_REPORT_MAX_SCALED )
#define CFG_REPORT_MAX_LINK_SPEED_DEFAULT ( eHDD_LINK_SPEED_REPORT_MAX_SCALED )
#define CFG_SET_RTS_FOR_SIFS_BURSTING "gSetRTSForSIFSBursting"
#define CFG_SET_RTS_FOR_SIFS_BURSTING_MIN (0)
#define CFG_SET_RTS_FOR_SIFS_BURSTING_MAX (1)
#define CFG_SET_RTS_FOR_SIFS_BURSTING_DEFAULT (0)
#define CFG_MAX_MPDUS_IN_AMPDU "gMaxMPDUsInAMPDU"
#define CFG_MAX_MPDUS_IN_AMPDU_MIN (0)
#define CFG_MAX_MPDUS_IN_AMPDU_MAX (64)
#define CFG_MAX_MPDUS_IN_AMPDU_DEFAULT (0)
/*
* <ini>
* gMaxHTMCSForTxData - max HT mcs for TX
* @Min: 0
* @Max: 383
* @Default: 0
*
* This ini is used to configure the max HT mcs
* for tx data.
*
* Usage: External
*
* bits 0-15: max HT mcs
* bits 16-31: zero to disable, otherwise enable.
*
* </ini>
*/
#define CFG_MAX_HT_MCS_FOR_TX_DATA "gMaxHTMCSForTxData"
#define CFG_MAX_HT_MCS_FOR_TX_DATA_MIN (WNI_CFG_MAX_HT_MCS_TX_DATA_STAMIN)
#define CFG_MAX_HT_MCS_FOR_TX_DATA_MAX (WNI_CFG_MAX_HT_MCS_TX_DATA_STAMAX)
#define CFG_MAX_HT_MCS_FOR_TX_DATA_DEFAULT (WNI_CFG_MAX_HT_MCS_TX_DATA_STADEF)
/*
* <ini>
* gSapGetPeerInfo - Enable/Disable remote peer info query support
* @Min: 0 - Disable remote peer info query support
* @Max: 1 - Enable remote peer info query support
* @Default: 0
*
* This ini is used to enable/disable remote peer info query support
*
* Usage: External
*
* </ini>
*/
#define CFG_SAP_GET_PEER_INFO "gSapGetPeerInfo"
#define CFG_SAP_GET_PEER_INFO_MIN (0)
#define CFG_SAP_GET_PEER_INFO_MAX (1)
#define CFG_SAP_GET_PEER_INFO_DEFAULT (0)
/*
* <ini>
* gDisableABGRateForTxData - disable abg rate for tx data
* @Min: 0
* @Max: 1
* @Default: 0
*
* This ini is used to disable abg rate for tx data.
*
* Usage: External
*
* </ini>
*/
#define CFG_DISABLE_ABG_RATE_FOR_TX_DATA "gDisableABGRateForTxData"
#define CFG_DISABLE_ABG_RATE_FOR_TX_DATA_MIN (WNI_CFG_DISABLE_ABG_RATE_FOR_TX_DATA_STAMIN)
#define CFG_DISABLE_ABG_RATE_FOR_TX_DATA_MAX (WNI_CFG_DISABLE_ABG_RATE_FOR_TX_DATA_STAMAX)
#define CFG_DISABLE_ABG_RATE_FOR_TX_DATA_DEFAULT (WNI_CFG_DISABLE_ABG_RATE_FOR_TX_DATA_STADEF)
/*
* <ini>
* gRateForTxMgmt - rate for tx mgmt frame
* @Min: 0x0
* @Max: 0xFF
* @Default: 0xFF
*
* This ini is used to configure the rate for tx
* mgmt frame. Default 0xFF means disable.
*
* Usage: External
*
* </ini>
*/
#define CFG_RATE_FOR_TX_MGMT "gRateForTxMgmt"
#define CFG_RATE_FOR_TX_MGMT_MIN (WNI_CFG_RATE_FOR_TX_MGMT_STAMIN)
#define CFG_RATE_FOR_TX_MGMT_MAX (WNI_CFG_RATE_FOR_TX_MGMT_STAMAX)
#define CFG_RATE_FOR_TX_MGMT_DEFAULT (WNI_CFG_RATE_FOR_TX_MGMT_STADEF)
/*
* <ini>
* gRateForTxMgmt2G - rate for tx mgmt frame on 2G
* @Min: 0x0
* @Max: 0xFF
* @Default: 0xFF
*
* This ini is used to configure the rate for tx
* mgmt frame on 2G Band. Default 0xFF means disable.
* It has higher priority and will overwrite gRateForTxMgmt
* setting.
*
* Usage: External
*
* </ini>
*/
#define CFG_RATE_FOR_TX_MGMT_2G "gRateForTxMgmt2G"
#define CFG_RATE_FOR_TX_MGMT_2G_MIN (WNI_CFG_RATE_FOR_TX_MGMT_2G_STAMIN)
#define CFG_RATE_FOR_TX_MGMT_2G_MAX (WNI_CFG_RATE_FOR_TX_MGMT_2G_STAMAX)
#define CFG_RATE_FOR_TX_MGMT_2G_DEFAULT (WNI_CFG_RATE_FOR_TX_MGMT_2G_STADEF)
/*
* <ini>
* gRateForTxMgmt5G - rate for tx mgmt frame on 5G
* @Min: 0x0
* @Max: 0xFF
* @Default: 0xFF
*
* This ini is used to configure the rate for tx
* mgmt frame on 5G Band. Default 0xFF means disable.
* It has higher priority and will overwrite gRateForTxMgmt
* setting.
*
* Usage: External
*
* </ini>
*/
#define CFG_RATE_FOR_TX_MGMT_5G "gRateForTxMgmt5G"
#define CFG_RATE_FOR_TX_MGMT_5G_MIN (WNI_CFG_RATE_FOR_TX_MGMT_5G_STAMIN)
#define CFG_RATE_FOR_TX_MGMT_5G_MAX (WNI_CFG_RATE_FOR_TX_MGMT_5G_STAMAX)
#define CFG_RATE_FOR_TX_MGMT_5G_DEFAULT (WNI_CFG_RATE_FOR_TX_MGMT_5G_STADEF)
/*
* RSSI Thresholds
* Used when eHDD_LINK_SPEED_REPORT_SCALED is selected
*/
#define CFG_LINK_SPEED_RSSI_HIGH "gLinkSpeedRssiHigh"
#define CFG_LINK_SPEED_RSSI_HIGH_MIN ( -127 )
#define CFG_LINK_SPEED_RSSI_HIGH_MAX ( 0 )
#define CFG_LINK_SPEED_RSSI_HIGH_DEFAULT ( -55 )
#define CFG_LINK_SPEED_RSSI_MID "gLinkSpeedRssiMed"
#define CFG_LINK_SPEED_RSSI_MID_MIN ( -127 )
#define CFG_LINK_SPEED_RSSI_MID_MAX ( 0 )
#define CFG_LINK_SPEED_RSSI_MID_DEFAULT ( -65 )
#define CFG_LINK_SPEED_RSSI_LOW "gLinkSpeedRssiLow"
#define CFG_LINK_SPEED_RSSI_LOW_MIN ( -127 )
#define CFG_LINK_SPEED_RSSI_LOW_MAX ( 0 )
#define CFG_LINK_SPEED_RSSI_LOW_DEFAULT ( -80 )
#define CFG_P2P_DEVICE_ADDRESS_ADMINISTRATED_NAME "isP2pDeviceAddrAdministrated"
#define CFG_P2P_DEVICE_ADDRESS_ADMINISTRATED_MIN ( 0 )
#define CFG_P2P_DEVICE_ADDRESS_ADMINISTRATED_MAX ( 1 )
#define CFG_P2P_DEVICE_ADDRESS_ADMINISTRATED_DEFAULT ( 1 )
#define CFG_ENABLE_SSR "gEnableSSR"
#define CFG_ENABLE_SSR_MIN ( 0 )
#define CFG_ENABLE_SSR_MAX ( 1 )
#define CFG_ENABLE_SSR_DEFAULT ( 1 )
#define CFG_ENABLE_OVERLAP_CH "gEnableOverLapCh"
#define CFG_ENABLE_OVERLAP_CH_MIN ( 0 )
#define CFG_ENABLE_OVERLAP_CH_MAX ( 1 )
#define CFG_ENABLE_OVERLAP_CH_DEFAULT ( 0 )
#define CFG_PPS_ENABLE_5G_EBT "gEnable5gEBT"
#define CFG_PPS_ENABLE_5G_EBT_FEATURE_MIN ( 0 )
#define CFG_PPS_ENABLE_5G_EBT_FEATURE_MAX ( 1 )
#define CFG_PPS_ENABLE_5G_EBT_FEATURE_DEFAULT ( 0 )
#define CFG_ENABLE_MEMORY_DEEP_SLEEP "gEnableMemDeepSleep"
#define CFG_ENABLE_MEMORY_DEEP_SLEEP_MIN ( 0 )
#define CFG_ENABLE_MEMORY_DEEP_SLEEP_MAX ( 1 )
#define CFG_ENABLE_MEMORY_DEEP_SLEEP_DEFAULT ( 1 )
/* In cfg.dat 1=1MBPS, 2=2MBPS, 3=5_5MBPS, 4=11MBPS, 5=6MBPS, 6=9MBPS,
* 7=12MBPS, 8=18MBPS, 9=24MBPS. But 6=9MBPS and 8=18MBPS are not basic
* 11g rates and should not be set by gDefaultRateIndex24Ghz.
*/
#define CFG_DEFAULT_RATE_INDEX_24GH "gDefaultRateIndex24Ghz"
#define CFG_DEFAULT_RATE_INDEX_24GH_MIN ( 1 )
#define CFG_DEFAULT_RATE_INDEX_24GH_MAX ( 9 )
#define CFG_DEFAULT_RATE_INDEX_24GH_DEFAULT ( 1 )
#define CFG_ENABLE_PACKET_LOG "gEnablePacketLog"
#define CFG_ENABLE_PACKET_LOG_MIN (0)
#define CFG_ENABLE_PACKET_LOG_MAX (1)
#define CFG_ENABLE_PACKET_LOG_DEFAULT (1)
/* gFwDebugLogType takes values from enum dbglog_process_t,
* make default value as DBGLOG_PROCESS_NET_RAW to give the
* logs to net link since cnss_diag service is started at boot
* time by default.
*/
#define CFG_ENABLE_FW_LOG_TYPE "gFwDebugLogType"
#define CFG_ENABLE_FW_LOG_TYPE_MIN ( 0 )
#define CFG_ENABLE_FW_LOG_TYPE_MAX ( 255 )
#define CFG_ENABLE_FW_LOG_TYPE_DEFAULT ( 3 )
/* gFwDebugLogLevel takes values from enum DBGLOG_LOG_LVL,
* make default value as DBGLOG_WARN to enable error and
* warning logs by default.
*/
#define CFG_ENABLE_FW_DEBUG_LOG_LEVEL "gFwDebugLogLevel"
#define CFG_ENABLE_FW_DEBUG_LOG_LEVEL_MIN ( 0 )
#define CFG_ENABLE_FW_DEBUG_LOG_LEVEL_MAX ( 255 )
#define CFG_ENABLE_FW_DEBUG_LOG_LEVEL_DEFAULT ( 4 )
/* For valid values of log levels check enum DBGLOG_LOG_LVL and
* for valid values of module ids check enum WLAN_MODULE_ID.
*/
#define CFG_ENABLE_FW_MODULE_LOG_LEVEL "gFwDebugModuleLoglevel"
#define CFG_ENABLE_FW_MODULE_LOG_DEFAULT ""
/* gEnableRTSProfiles for configuring different RTS profiles
* to firmware.
* Following are the valid values for the rtsprofile:
* RTSCTS_DISABLED 0
* RTSCTS_ENABLED_4_SECOND_RATESERIES 17
* CTS2SELF_ENABLED_4_SECOND_RATESERIES 18
* RTSCTS_ENABLED_4_SWRETRIES 33
* CTS2SELF_ENABLED_4_SWRETRIES 34
*/
#define CFG_ENABLE_FW_RTS_PROFILE "gEnableRTSProfiles"
#define CFG_ENABLE_FW_RTS_PROFILE_MIN (0)
#define CFG_ENABLE_FW_RTS_PROFILE_MAX (34)
#define CFG_ENABLE_FW_RTS_PROFILE_DEFAULT (33)
#ifdef FEATURE_GREEN_AP
#define CFG_ENABLE_GREEN_AP_FEATURE "gEnableGreenAp"
#define CFG_ENABLE_GREEN_AP_FEATURE_MIN (0)
#define CFG_ENABLE_GREEN_AP_FEATURE_MAX (1)
#define CFG_ENABLE_GREEN_AP_FEATURE_DEFAULT (1)
/* Enhanced Green AP (EGAP) flags/params */
#define CFG_ENABLE_EGAP_ENABLE_FEATURE "gEnableEGAP"
#define CFG_ENABLE_EGAP_ENABLE_FEATURE_MIN (0)
#define CFG_ENABLE_EGAP_ENABLE_FEATURE_MAX (1)
#define CFG_ENABLE_EGAP_ENABLE_FEATURE_DEFAULT (0)
#define CFG_ENABLE_EGAP_INACT_TIME_FEATURE "gEGAPInactTime"
#define CFG_ENABLE_EGAP_INACT_TIME_FEATURE_MIN (0)
#define CFG_ENABLE_EGAP_INACT_TIME_FEATURE_MAX (300000)
#define CFG_ENABLE_EGAP_INACT_TIME_FEATURE_DEFAULT (1000)
#define CFG_ENABLE_EGAP_WAIT_TIME_FEATURE "gEGAPWaitTime"
#define CFG_ENABLE_EGAP_WAIT_TIME_FEATURE_MIN (0)
#define CFG_ENABLE_EGAP_WAIT_TIME_FEATURE_MAX (300000)
#define CFG_ENABLE_EGAP_WAIT_TIME_FEATURE_DEFAULT (100)
#define CFG_ENABLE_EGAP_FLAGS_FEATURE "gEGAPFeatures"
#define CFG_ENABLE_EGAP_FLAGS_FEATURE_MIN (0)
#define CFG_ENABLE_EGAP_FLAGS_FEATURE_MAX (15)
#define CFG_ENABLE_EGAP_FLAGS_FEATURE_DEFAULT (7)
/* end Enhanced Green AP flags/params */
#endif
/*
* This INI item is used to control subsystem restart(SSR) test framework
* Set its value to 1 to enable APPS trigerred SSR testing
*/
#define CFG_ENABLE_CRASH_INJECT "gEnableForceTargetAssert"
#define CFG_ENABLE_CRASH_INJECT_MIN (0)
#define CFG_ENABLE_CRASH_INJECT_MAX (1)
#define CFG_ENABLE_CRASH_INJECT_DEFAULT (0)
#ifdef FEATURE_WLAN_FORCE_SAP_SCC
#define CFG_SAP_SCC_CHAN_AVOIDANCE "gSapSccChanAvoidance"
#define CFG_SAP_SCC_CHAN_AVOIDANCE_MIN ( 0 )
#define CFG_SAP_SCC_CHAN_AVOIDANCE_MAX ( 1 )
#define CFG_SAP_SCC_CHAN_AVOIDANCE_DEFAULT ( 0 )
#endif /* FEATURE_WLAN_FORCE_SAP_SCC */
#ifdef IPA_UC_STA_OFFLOAD
#define CFG_IPA_UC_STA_OFFLOAD "gIpaUcStaOffload"
#define CFG_IPA_UC_STA_OFFLOAD_MIN ( 0 )
#define CFG_IPA_UC_STA_OFFLOAD_MAX ( 1 )
#define CFG_IPA_UC_STA_OFFLOAD_DEFAULT ( 0 )
#endif /* IPA_UC_STA_OFFLOAD */
/*
* VOS Trace Enable Control
* Notes:
* the MIN/MAX/DEFAULT values apply for all modules
* the DEFAULT value is outside the valid range. if the DEFAULT
* value is not overridden, then no change will be made to the
* "built in" default values compiled into the code
* values are a bitmap indicating which log levels are to enabled
* (must match order of vos_trace_level enumerations)
* 00000001 FATAL
* 00000010 ERROR
* 00000100 WARN
* 00001000 INFO
* 00010000 INFO HIGH
* 00100000 INFO MED
* 01000000 INFO LOW
* 10000000 DEBUG
*
* hence a value of 0xFF would set all bits (enable all logs)
*/
#define CFG_VOS_TRACE_ENABLE_TL_NAME "vosTraceEnableTL"
#define CFG_VOS_TRACE_ENABLE_WDI_NAME "vosTraceEnableWDI"
#define CFG_VOS_TRACE_ENABLE_HDD_NAME "vosTraceEnableHDD"
#define CFG_VOS_TRACE_ENABLE_SME_NAME "vosTraceEnableSME"
#define CFG_VOS_TRACE_ENABLE_PE_NAME "vosTraceEnablePE"
#define CFG_VOS_TRACE_ENABLE_PMC_NAME "vosTraceEnablePMC"
#define CFG_VOS_TRACE_ENABLE_WDA_NAME "vosTraceEnableWDA"
#define CFG_VOS_TRACE_ENABLE_SYS_NAME "vosTraceEnableSYS"
#define CFG_VOS_TRACE_ENABLE_VOSS_NAME "vosTraceEnableVOSS"
#define CFG_VOS_TRACE_ENABLE_SAP_NAME "vosTraceEnableSAP"
#define CFG_VOS_TRACE_ENABLE_HDD_SAP_NAME "vosTraceEnableHDDSAP"
#define CFG_VOS_TRACE_ENABLE_CFG_NAME "vosTraceEnableCFG"
#define CFG_VOS_TRACE_ENABLE_ADF_NAME "vosTraceEnableADF"
#define CFG_VOS_TRACE_ENABLE_TXRX_NAME "vosTraceEnableTXRX"
#define CFG_VOS_TRACE_ENABLE_HTC_NAME "vosTraceEnableHTC"
#define CFG_VOS_TRACE_ENABLE_HIF_NAME "vosTraceEnableHIF"
#define CFG_VOS_TRACE_ENABLE_HDD_SAP_DATA_NAME "vosTraceEnableHDDSAPDATA"
#define CFG_VOS_TRACE_ENABLE_HDD_DATA_NAME "vosTraceEnableHDDDATA"
#define CFG_VOS_TRACE_ENABLE_MIN (0)
#define CFG_VOS_TRACE_ENABLE_MAX (0xff)
#define CFG_VOS_TRACE_ENABLE_DEFAULT (0xffff)
#define HDD_MCASTBCASTFILTER_FILTER_NONE 0x00
#define HDD_MCASTBCASTFILTER_FILTER_ALL_MULTICAST 0x01
#define HDD_MCASTBCASTFILTER_FILTER_ALL_BROADCAST 0x02
#define HDD_MCASTBCASTFILTER_FILTER_ALL_MULTICAST_BROADCAST 0x03
#define HDD_MULTICAST_FILTER_LIST 0x04
#define HDD_MULTICAST_FILTER_LIST_CLEAR 0x05
/*
* Driver Force ACS is reintroduced for android SAP legacy configuration method.
* If Driver force acs is enabled, channel/ hw config from hostapd is ignored.
* Driver uses INI params dot11Mode, channel bonding mode and vht chan width
* to derive ACS HW mode and operating BW.
*
* Non android platforms shall not use force ACS method and rely on hostapd
* driven ACS method for concurrent SAP ACS configuration, OBSS etc.
*/
#define CFG_FORCE_SAP_ACS "gApAutoChannelSelection"
#define CFG_FORCE_SAP_ACS_MIN (0)
#define CFG_FORCE_SAP_ACS_MAX (1)
#define CFG_FORCE_SAP_ACS_DEFAULT (0)
#define CFG_FORCE_SAP_ACS_START_CH "gAPChannelSelectStartChannel"
#define CFG_FORCE_SAP_ACS_START_CH_MIN (0)
#define CFG_FORCE_SAP_ACS_START_CH_MAX (0xFF)
#define CFG_FORCE_SAP_ACS_START_CH_DEFAULT (1)
#define CFG_FORCE_SAP_ACS_END_CH "gAPChannelSelectEndChannel"
#define CFG_FORCE_SAP_ACS_END_CH_MIN (0)
#define CFG_FORCE_SAP_ACS_END_CH_MAX (0xFF)
#define CFG_FORCE_SAP_ACS_END_CH_DEFAULT (11)
/* ACS Scan band preference
* 0 -- No preference
* 1 -- Scan 2.4G first
* 2 -- Scan 5G first
*/
#define CFG_SAP_SCAN_BAND_PREFERENCE "gAcsScanBandPreference"
#define CFG_SAP_SCAN_BAND_PREFERENCE_MIN (0)
#define CFG_SAP_SCAN_BAND_PREFERENCE_MAX (2)
#define CFG_SAP_SCAN_BAND_PREFERENCE_DEFAULT (0)
/*
* <ini>
* gAutoChannelSelectWeight - ACS channel weight
* @Min: 0x1
* @Max: 0xFFFFFFFF
* @Default: 0x000000FF
*
* This ini is used to adjust weight of factors in
* acs algorithm.
*
* Supported Feature: ACS
*
* Usage: Internal/External
*
* bits 0-3: rssi weight
* bits 4-7: bss count weight
* bits 8-11: noise floor weight
* bits 12-15: channel free weight
* bits 16-19: tx power range weight
* bits 20-23: tx power throughput weight
* bits 24-31: reserved
*
* </ini>
*/
#define CFG_AUTO_CHANNEL_SELECT_WEIGHT "gAutoChannelSelectWeight"
#define CFG_AUTO_CHANNEL_SELECT_WEIGHT_MIN (0x1)
#define CFG_AUTO_CHANNEL_SELECT_WEIGHT_MAX (0xFFFFFFFF)
#define CFG_AUTO_CHANNEL_SELECT_WEIGHT_DEFAULT (0x000000FF)
#define CFG_ACS_BAND_SWITCH_THRESHOLD "gACSBandSwitchThreshold"
#define CFG_ACS_BAND_SWITCH_THRESHOLD_MIN (0)
#define CFG_ACS_BAND_SWITCH_THRESHOLD_MAX (26664)
/* 2 BSS, maximum RSSI -90 */
#define CFG_ACS_BAND_SWITCH_THRESHOLD_DEFAULT (296)
/*BMPS Logic
* Notes:
* 1 - Then Host driver and above layers control the PS mechanism
* 0 - Diver/Core Stack internally control the Power saving mechanism
*/
#define CFG_ANDRIOD_POWER_SAVE_NAME "isAndroidPsEn"
#define CFG_ANDRIOD_POWER_SAVE_MIN ( 0 )
#define CFG_ANDRIOD_POWER_SAVE_MAX ( 1 )
#define CFG_ANDRIOD_POWER_SAVE_DEFAULT ( 0 )
/*
* Enable Dynamic DTIM
* Options
* 0 -Disable DynamicDTIM
* 1 to 5 - SLM will switch to DTIM specified here when host suspends and
* switch DTIM1 when host resumes */
#define CFG_ENABLE_DYNAMIC_DTIM_NAME "gEnableDynamicDTIM"
#define CFG_ENABLE_DYNAMIC_DTIM_MIN ( 0 )
#define CFG_ENABLE_DYNAMIC_DTIM_MAX ( 5 )
#define CFG_ENABLE_DYNAMIC_DTIM_DEFAULT ( 0 )
/*
* Enable First Scan 2G Only
* Options
* 0 - Disable First Scan 2G Option
* 1 - Enable First Scan 2G Option
*/
#define CFG_ENABLE_FIRST_SCAN_2G_ONLY_NAME "gEnableFirstScan2GOnly"
#define CFG_ENABLE_FIRST_SCAN_2G_ONLY_MIN ( 0 )
#define CFG_ENABLE_FIRST_SCAN_2G_ONLY_MAX ( 1 )
#define CFG_ENABLE_FIRST_SCAN_2G_ONLY_DEFAULT ( 0 )
/*
* Skip DFS Channel in case of P2P Search
* Options
* 0 - Don't Skip DFS Channel in case of P2P Search
* 1 - Skip DFS Channel in case of P2P Search
*/
#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 )
#define CFG_ENABLE_SKIP_DFS_IN_P2P_SEARCH_DEFAULT ( 1 )
/*
* Ignore Dynamic Dtim in case of P2P
* Options
* 0 - Consider Dynamic Dtim incase of P2P
* 1 - Ignore Dynamic Dtim incase of P2P
*/
#define CFG_IGNORE_DYNAMIC_DTIM_IN_P2P_MODE_NAME "gIgnoreDynamicDtimInP2pMode"
#define CFG_IGNORE_DYNAMIC_DTIM_IN_P2P_MODE_MIN ( 0 )
#define CFG_IGNORE_DYNAMIC_DTIM_IN_P2P_MODE_MAX ( 1 )
#define CFG_IGNORE_DYNAMIC_DTIM_IN_P2P_MODE_DEFAULT ( 0 )
#define CFG_SHORT_GI_40MHZ_NAME "gShortGI40Mhz"
#define CFG_SHORT_GI_40MHZ_MIN 0
#define CFG_SHORT_GI_40MHZ_MAX 1
#define CFG_SHORT_GI_40MHZ_DEFAULT 1
/*
* Enable / Disable MCC feature
* Default: Enable
*/
#define CFG_ENABLE_MCC_ENABLED_NAME "gEnableMCCMode"
#define CFG_ENABLE_MCC_ENABLED_MIN ( 0 )
#define CFG_ENABLE_MCC_ENABLED_MAX ( 1 )
#define CFG_ENABLE_MCC_ENABLED_DEFAULT ( 1 )
/*
* Allow GO in MCC mode to accept different beacon interval than STA's.
* Added for Wi-Fi Cert. 5.1.12
* Default: gAllowMCCGODiffBI = 2
* If gAllowMCCGODiffBI = 1 // Set to 1 for WFA certification. GO Beacon
* interval is not changed. MCC GO
* doesn't work well in optimized way.
* In worst scenario, it may invite STA
* disconnection.
* gAllowMCCGODiffBI = 2 //If set to 2 workaround 1 disassoc all the clients
* and update beacon Interval
* gAllowMCCGODiffBI = 3 //If set to 3 tear down the P2P link in auto/
* Non-autonomous -GO case
* gAllowMCCGODiffBI = 4 //If set to 4 don't disconnect the P2P client
* in autonomous/Non-autonomous -GO case update
* the BI dynamically
*/
#define CFG_ALLOW_MCC_GO_DIFF_BI_NAME "gAllowMCCGODiffBI"
#define CFG_ALLOW_MCC_GO_DIFF_BI_MIN ( 0 )
#define CFG_ALLOW_MCC_GO_DIFF_BI_MAX ( 4 )
#define CFG_ALLOW_MCC_GO_DIFF_BI_DEFAULT ( 4 )
#if defined(CONFIG_HL_SUPPORT) && defined(QCA_BAD_PEER_TX_FLOW_CL)
/*
* Enable/Disable Bad Peer TX CTL feature
* Default: Enable
*/
#define CFG_BAD_PEER_TX_CTL_ENABLE_NAME "gBadPeerTxCtlEnable"
#define CFG_BAD_PEER_TX_CTL_ENABLE_MIN ( 0 )
#define CFG_BAD_PEER_TX_CTL_ENABLE_MAX ( 1 )
#define CFG_BAD_PEER_TX_CTL_ENABLE_DEFAULT ( 1 )
#define CFG_BAD_PEER_TX_CTL_PERIOD_NAME "gBadPeerTxCtlPeriod"
#define CFG_BAD_PEER_TX_CTL_PERIOD_MIN ( 10 )
#define CFG_BAD_PEER_TX_CTL_PERIOD_MAX ( 10000 )
#define CFG_BAD_PEER_TX_CTL_PERIOD_DEFAULT ( 50 )
#define CFG_BAD_PEER_TX_CTL_TXQ_LIMIT_NAME "gBadPeerTxCtlTxqLimit"
#define CFG_BAD_PEER_TX_CTL_TXQ_LIMIT_MIN ( 1 )
#define CFG_BAD_PEER_TX_CTL_TXQ_LIMIT_MAX ( 5000 )
#define CFG_BAD_PEER_TX_CTL_TXQ_LIMIT_DEFAULT ( 100 )
#define CFG_BAD_PEER_TX_CTL_TGT_BACKOFF_T_NAME "gBadPeerTxCtlTgtBackoffTime"
#define CFG_BAD_PEER_TX_CTL_TGT_BACKOFF_T_MIN ( 1 )
#define CFG_BAD_PEER_TX_CTL_TGT_BACKOFF_T_MAX ( 5000 )
#define CFG_BAD_PEER_TX_CTL_TGT_BACKOFF_T_DEFAULT ( 20 )
#define CFG_BAD_PEER_TX_CTL_TGT_REPORT_PRD_NAME "gBadPeerTxCtlTgtReportPeriod"
#define CFG_BAD_PEER_TX_CTL_TGT_REPORT_PRD_MIN ( 1 )
#define CFG_BAD_PEER_TX_CTL_TGT_REPORT_PRD_MAX ( 5000 )
#define CFG_BAD_PEER_TX_CTL_TGT_REPORT_PRD_DEFAULT ( 500 )
#define CFG_BAD_PEER_TX_CTL_COND_LEVEL_IEEEB_NAME "gBadPeerTxCtlCondLevelIeeeB"
#define CFG_BAD_PEER_TX_CTL_COND_LEVEL_IEEEB_MIN ( 1 )
#define CFG_BAD_PEER_TX_CTL_COND_LEVEL_IEEEB_MAX ( 2 )
#define CFG_BAD_PEER_TX_CTL_COND_LEVEL_IEEEB_DEFAULT ( 2 )
#define CFG_BAD_PEER_TX_CTL_DELTA_LEVEL_IEEEB_NAME "gBadPeerTxCtlDeltaLevelIeeeB"
#define CFG_BAD_PEER_TX_CTL_DELTA_LEVEL_IEEEB_MIN ( 1 )
#define CFG_BAD_PEER_TX_CTL_DELTA_LEVEL_IEEEB_MAX ( 11 )
#define CFG_BAD_PEER_TX_CTL_DELTA_LEVEL_IEEEB_DEFAULT ( 2 )
#define CFG_BAD_PEER_TX_CTL_PCT_LEVEL_IEEEB_NAME "gBadPeerTxCtlPctLevelIeeeB"
#define CFG_BAD_PEER_TX_CTL_PCT_LEVEL_IEEEB_MIN ( 1 )
#define CFG_BAD_PEER_TX_CTL_PCT_LEVEL_IEEEB_MAX ( 8 )
#define CFG_BAD_PEER_TX_CTL_PCT_LEVEL_IEEEB_DEFAULT ( 1 )
#define CFG_BAD_PEER_TX_CTL_TPUT_LEVEL_IEEEB_NAME "gBadPeerTxCtlTputLevelIeeeB"
#define CFG_BAD_PEER_TX_CTL_TPUT_LEVEL_IEEEB_MIN ( 1 )
#define CFG_BAD_PEER_TX_CTL_TPUT_LEVEL_IEEEB_MAX ( 11 )
#define CFG_BAD_PEER_TX_CTL_TPUT_LEVEL_IEEEB_DEFAULT ( 2 )
#define CFG_BAD_PEER_TX_CTL_TX_LIMIT_LEVEL_IEEEB_NAME "gBadPeerTxCtlTxLimitLevelIeeeB"
#define CFG_BAD_PEER_TX_CTL_TX_LIMIT_LEVEL_IEEEB_MIN ( 0 )
#define CFG_BAD_PEER_TX_CTL_TX_LIMIT_LEVEL_IEEEB_MAX ( 50 )
#define CFG_BAD_PEER_TX_CTL_TX_LIMIT_LEVEL_IEEEB_DEFAULT ( 3 )
#define CFG_BAD_PEER_TX_CTL_COND_LEVEL_IEEEAG_NAME "gBadPeerTxCtlCondLevelIeeeAG"
#define CFG_BAD_PEER_TX_CTL_COND_LEVEL_IEEEAG_MIN ( 1 )
#define CFG_BAD_PEER_TX_CTL_COND_LEVEL_IEEEAG_MAX ( 2 )
#define CFG_BAD_PEER_TX_CTL_COND_LEVEL_IEEEAG_DEFAULT ( 2 )
#define CFG_BAD_PEER_TX_CTL_DELTA_LEVEL_IEEEAG_NAME "gBadPeerTxCtlDeltaLevelIeeeAG"
#define CFG_BAD_PEER_TX_CTL_DELTA_LEVEL_IEEEAG_MIN ( 6 )
#define CFG_BAD_PEER_TX_CTL_DELTA_LEVEL_IEEEAG_MAX ( 54 )
#define CFG_BAD_PEER_TX_CTL_DELTA_LEVEL_IEEEAG_DEFAULT ( 6 )
#define CFG_BAD_PEER_TX_CTL_PCT_LEVEL_IEEEAG_NAME "gBadPeerTxCtlPctLevelIeeeAG"
#define CFG_BAD_PEER_TX_CTL_PCT_LEVEL_IEEEAG_MIN ( 1 )
#define CFG_BAD_PEER_TX_CTL_PCT_LEVEL_IEEEAG_MAX ( 8 )
#define CFG_BAD_PEER_TX_CTL_PCT_LEVEL_IEEEAG_DEFAULT ( 1 )
#define CFG_BAD_PEER_TX_CTL_TPUT_LEVEL_IEEEAG_NAME "gBadPeerTxCtlTputLevelIeeeAG"
#define CFG_BAD_PEER_TX_CTL_TPUT_LEVEL_IEEEAG_MIN ( 6 )
#define CFG_BAD_PEER_TX_CTL_TPUT_LEVEL_IEEEAG_MAX ( 54 )
#define CFG_BAD_PEER_TX_CTL_TPUT_LEVEL_IEEEAG_DEFAULT ( 6 )
#define CFG_BAD_PEER_TX_CTL_TX_LIMIT_LEVEL_IEEEAG_NAME "gBadPeerTxCtlTxLimitLevelIeeeAG"
#define CFG_BAD_PEER_TX_CTL_TX_LIMIT_LEVEL_IEEEAG_MIN ( 0 )
#define CFG_BAD_PEER_TX_CTL_TX_LIMIT_LEVEL_IEEEAG_MAX ( 50 )
#define CFG_BAD_PEER_TX_CTL_TX_LIMIT_LEVEL_IEEEAG_DEFAULT ( 3 )
#define CFG_BAD_PEER_TX_CTL_COND_LEVEL_IEEEN_NAME "gBadPeerTxCtlCondLevelIeeeN"
#define CFG_BAD_PEER_TX_CTL_COND_LEVEL_IEEEN_MIN ( 1 )
#define CFG_BAD_PEER_TX_CTL_COND_LEVEL_IEEEN_MAX ( 2 )
#define CFG_BAD_PEER_TX_CTL_COND_LEVEL_IEEEN_DEFAULT ( 2 )
#define CFG_BAD_PEER_TX_CTL_DELTA_LEVEL_IEEEN_NAME "gBadPeerTxCtlDeltaLevelIeeeN"
#define CFG_BAD_PEER_TX_CTL_DELTA_LEVEL_IEEEN_MIN ( 6 )
#define CFG_BAD_PEER_TX_CTL_DELTA_LEVEL_IEEEN_MAX ( 72 )
#define CFG_BAD_PEER_TX_CTL_DELTA_LEVEL_IEEEN_DEFAULT ( 6 )
#define CFG_BAD_PEER_TX_CTL_PCT_LEVEL_IEEEN_NAME "gBadPeerTxCtlPctLevelIeeeN"
#define CFG_BAD_PEER_TX_CTL_PCT_LEVEL_IEEEN_MIN ( 1 )
#define CFG_BAD_PEER_TX_CTL_PCT_LEVEL_IEEEN_MAX ( 8 )
#define CFG_BAD_PEER_TX_CTL_PCT_LEVEL_IEEEN_DEFAULT ( 1 )
#define CFG_BAD_PEER_TX_CTL_TPUT_LEVEL_IEEEN_NAME "gBadPeerTxCtlTputLevelIeeeN"
#define CFG_BAD_PEER_TX_CTL_TPUT_LEVEL_IEEEN_MIN ( 6 )
#define CFG_BAD_PEER_TX_CTL_TPUT_LEVEL_IEEEN_MAX ( 72 )
#define CFG_BAD_PEER_TX_CTL_TPUT_LEVEL_IEEEN_DEFAULT ( 15 )
#define CFG_BAD_PEER_TX_CTL_TX_LIMIT_LEVEL_IEEEN_NAME "gBadPeerTxCtlTxLimitLevelIeeeN"
#define CFG_BAD_PEER_TX_CTL_TX_LIMIT_LEVEL_IEEEN_MIN ( 0 )
#define CFG_BAD_PEER_TX_CTL_TX_LIMIT_LEVEL_IEEEN_MAX ( 50 )
#define CFG_BAD_PEER_TX_CTL_TX_LIMIT_LEVEL_IEEEN_DEFAULT ( 3 )
#define CFG_BAD_PEER_TX_CTL_COND_LEVEL_IEEEAC_NAME "gBadPeerTxCtlCondLevelIeeeAC"
#define CFG_BAD_PEER_TX_CTL_COND_LEVEL_IEEEAC_MIN ( 1 )
#define CFG_BAD_PEER_TX_CTL_COND_LEVEL_IEEEAC_MAX ( 2 )
#define CFG_BAD_PEER_TX_CTL_COND_LEVEL_IEEEAC_DEFAULT ( 2 )
#define CFG_BAD_PEER_TX_CTL_DELTA_LEVEL_IEEEAC_NAME "gBadPeerTxCtlDeltaLevelIeeeAC"
#define CFG_BAD_PEER_TX_CTL_DELTA_LEVEL_IEEEAC_MIN ( 6 )
#define CFG_BAD_PEER_TX_CTL_DELTA_LEVEL_IEEEAC_MAX ( 433 )
#define CFG_BAD_PEER_TX_CTL_DELTA_LEVEL_IEEEAC_DEFAULT ( 6 )
#define CFG_BAD_PEER_TX_CTL_PCT_LEVEL_IEEEAC_NAME "gBadPeerTxCtlPctLevelIeeeAC"
#define CFG_BAD_PEER_TX_CTL_PCT_LEVEL_IEEEAC_MIN ( 1 )
#define CFG_BAD_PEER_TX_CTL_PCT_LEVEL_IEEEAC_MAX ( 8 )
#define CFG_BAD_PEER_TX_CTL_PCT_LEVEL_IEEEAC_DEFAULT ( 1 )
#define CFG_BAD_PEER_TX_CTL_TPUT_LEVEL_IEEEAC_NAME "gBadPeerTxCtlTputLevelIeeeAC"
#define CFG_BAD_PEER_TX_CTL_TPUT_LEVEL_IEEEAC_MIN ( 6 )
#define CFG_BAD_PEER_TX_CTL_TPUT_LEVEL_IEEEAC_MAX ( 433 )
#define CFG_BAD_PEER_TX_CTL_TPUT_LEVEL_IEEEAC_DEFAULT ( 15 )
#define CFG_BAD_PEER_TX_CTL_TX_LIMIT_LEVEL_IEEEAC_NAME "gBadPeerTxCtlTxLimitLevelIeeeAC"
#define CFG_BAD_PEER_TX_CTL_TX_LIMIT_LEVEL_IEEEAC_MIN ( 0 )
#define CFG_BAD_PEER_TX_CTL_TX_LIMIT_LEVEL_IEEEAC_MAX ( 50 )
#define CFG_BAD_PEER_TX_CTL_TX_LIMIT_LEVEL_IEEEAC_DEFAULT ( 3 )
#endif
/*
* Enable/Disable Thermal Mitigation feature
* Default: Disable
*/
#define CFG_THERMAL_MIGRATION_ENABLE_NAME "gThermalMitigationEnable"
#define CFG_THERMAL_MIGRATION_ENABLE_MIN ( 0 )
#define CFG_THERMAL_MIGRATION_ENABLE_MAX ( 1 )
#define CFG_THERMAL_MIGRATION_ENABLE_DEFAULT ( 1 )
#define CFG_THROTTLE_PERIOD_NAME "gThrottlePeriod"
#define CFG_THROTTLE_PERIOD_MIN ( 10 )
#define CFG_THROTTLE_PERIOD_MAX ( 10000 )
#define CFG_THROTTLE_PERIOD_DEFAULT ( 4000 )
/*
* Configure Throttle Period Different Level Duty Cycle in percentage
* When temperature measured is greater than threshold at particular level,
* then throtling level will get increased by one level and
* will reduce TX duty by the given percentage
*/
#define CFG_THROTTLE_DUTY_CYCLE_LEVEL0_NAME "gThrottleDutyCycleLevel0"
#define CFG_THROTTLE_DUTY_CYCLE_LEVEL0_MIN ( 0 )
#define CFG_THROTTLE_DUTY_CYCLE_LEVEL0_MAX ( 0 )
#define CFG_THROTTLE_DUTY_CYCLE_LEVEL0_DEFAULT ( 0 )
#define CFG_THROTTLE_DUTY_CYCLE_LEVEL1_NAME "gThrottleDutyCycleLevel1"
#define CFG_THROTTLE_DUTY_CYCLE_LEVEL1_MIN ( 0 )
#define CFG_THROTTLE_DUTY_CYCLE_LEVEL1_MAX ( 100 )
#define CFG_THROTTLE_DUTY_CYCLE_LEVEL1_DEFAULT ( 50 )
#define CFG_THROTTLE_DUTY_CYCLE_LEVEL2_NAME "gThrottleDutyCycleLevel2"
#define CFG_THROTTLE_DUTY_CYCLE_LEVEL2_MIN ( 0 )
#define CFG_THROTTLE_DUTY_CYCLE_LEVEL2_MAX ( 100 )
#define CFG_THROTTLE_DUTY_CYCLE_LEVEL2_DEFAULT ( 75 )
#define CFG_THROTTLE_DUTY_CYCLE_LEVEL3_NAME "gThrottleDutyCycleLevel3"
#define CFG_THROTTLE_DUTY_CYCLE_LEVEL3_MIN ( 0 )
#define CFG_THROTTLE_DUTY_CYCLE_LEVEL3_MAX ( 100 )
#define CFG_THROTTLE_DUTY_CYCLE_LEVEL3_DEFAULT ( 94 )
#define CFG_THERMAL_TEMP_MIN_LEVEL0_NAME "gThermalTempMinLevel0"
#define CFG_THERMAL_TEMP_MIN_LEVEL0_MIN ( 0 )
#define CFG_THERMAL_TEMP_MIN_LEVEL0_MAX ( 1000 )
#define CFG_THERMAL_TEMP_MIN_LEVEL0_DEFAULT ( 0 )
#define CFG_THERMAL_TEMP_MAX_LEVEL0_NAME "gThermalTempMaxLevel0"
#define CFG_THERMAL_TEMP_MAX_LEVEL0_MIN ( 0 )
#define CFG_THERMAL_TEMP_MAX_LEVEL0_MAX ( 1000 )
#define CFG_THERMAL_TEMP_MAX_LEVEL0_DEFAULT ( 90 )
#define CFG_THERMAL_TEMP_MIN_LEVEL1_NAME "gThermalTempMinLevel1"
#define CFG_THERMAL_TEMP_MIN_LEVEL1_MIN ( 0 )
#define CFG_THERMAL_TEMP_MIN_LEVEL1_MAX ( 1000 )
#define CFG_THERMAL_TEMP_MIN_LEVEL1_DEFAULT ( 70 )
#define CFG_THERMAL_TEMP_MAX_LEVEL1_NAME "gThermalTempMaxLevel1"
#define CFG_THERMAL_TEMP_MAX_LEVEL1_MIN ( 0 )
#define CFG_THERMAL_TEMP_MAX_LEVEL1_MAX ( 1000 )
#define CFG_THERMAL_TEMP_MAX_LEVEL1_DEFAULT ( 110 )
#define CFG_THERMAL_TEMP_MIN_LEVEL2_NAME "gThermalTempMinLevel2"
#define CFG_THERMAL_TEMP_MIN_LEVEL2_MIN ( 0 )
#define CFG_THERMAL_TEMP_MIN_LEVEL2_MAX ( 1000 )
#define CFG_THERMAL_TEMP_MIN_LEVEL2_DEFAULT ( 90 )
#define CFG_THERMAL_TEMP_MAX_LEVEL2_NAME "gThermalTempMaxLevel2"
#define CFG_THERMAL_TEMP_MAX_LEVEL2_MIN ( 0 )
#define CFG_THERMAL_TEMP_MAX_LEVEL2_MAX ( 1000 )
#define CFG_THERMAL_TEMP_MAX_LEVEL2_DEFAULT ( 125 )
#define CFG_THERMAL_TEMP_MIN_LEVEL3_NAME "gThermalTempMinLevel3"
#define CFG_THERMAL_TEMP_MIN_LEVEL3_MIN ( 0 )
#define CFG_THERMAL_TEMP_MIN_LEVEL3_MAX ( 1000 )
#define CFG_THERMAL_TEMP_MIN_LEVEL3_DEFAULT ( 110 )
#define CFG_THERMAL_TEMP_MAX_LEVEL3_NAME "gThermalTempMaxLevel3"
#define CFG_THERMAL_TEMP_MAX_LEVEL3_MIN ( 0 )
#define CFG_THERMAL_TEMP_MAX_LEVEL3_MAX ( 1000 )
#define CFG_THERMAL_TEMP_MAX_LEVEL3_DEFAULT ( 0 )
#ifdef FEATURE_WLAN_THERMAL_SHUTDOWN
/*
* <ini>
* gThermalShutdownEnable - Enable/Disable Thermal Shutdown feature to protect
IC too hot and die
* @Min: 0
* @Max: 1
* @Default: 1
*
* This ini is used to enable/disable Thermal Shutdown feature
*
*
* Supported Feature: Thermal Shutdown
*
* Usage: External
*
* </ini>
*/
#define CFG_THERMAL_SHUTDOWN_ENABLE_NAME "gThermalShutdownEnable"
#define CFG_THERMAL_SHUTDOWN_ENABLE_MIN ( 0 )
#define CFG_THERMAL_SHUTDOWN_ENABLE_MAX ( 1 )
#define CFG_THERMAL_SHUTDOWN_ENABLE_DEFAULT ( 1 )
/*
* <ini>
* gThermalShutdownAutoEnable - Enable/Disable Automatic Thermal Shutdown
* @Min: 0
* @Max: 1
* @Default: 1
*
* In Automatic mode, host driver send the suspend command if the condition is
* meet, or else the command is send by host app.
*
* Supported Feature: Thermal Shutdown
*
* Usage: External
*
* </ini>
*/
#define CFG_THERMAL_SHUTDOWN_AUTO_ENABLE_NAME "gThermalShutdownAutoEnable"
#define CFG_THERMAL_SHUTDOWN_AUTO_ENABLE_MIN ( 0 )
#define CFG_THERMAL_SHUTDOWN_AUTO_ENABLE_MAX ( 1 )
#define CFG_THERMAL_SHUTDOWN_AUTO_ENABLE_DEFAULT ( 1 )
/*
* <ini>
* gThermalShutdownTempSuspend - Temperature threshold of suspend
* @Min: 0
* @Max: 1000
* @Default: 117
*
* If the reported temperature from firmware is higher than this threshold,
* the suspend command will be sent to shutdown the target.
*
* Supported Feature: Thermal Shutdown
*
* Usage: External
*
* </ini>
*/
#define CFG_THERMAL_SHUTDOWN_TEMP_SUSPEND_NAME "gThermalShutdownTempSuspend"
#define CFG_THERMAL_SHUTDOWN_TEMP_SUSPEND_MIN ( 0 )
#define CFG_THERMAL_SHUTDOWN_TEMP_SUSPEND_MAX ( 1000 )
#define CFG_THERMAL_SHUTDOWN_TEMP_SUSPEND_DEFAULT ( 117 )
/*
* <ini>
* gThermalShutdownTempWarning - Temperature threshold of warning.
* @Min: 0
* @Max: 1000
* @Default: 115
*
* Firmware report temperature to host as indication if the temperature is
* higher than this threshold.
*
* Supported Feature: Thermal Shutdown
*
* Usage: External
*
* </ini>
*/
#define CFG_THERMAL_SHUTDOWN_TEMP_WARNING_NAME "gThermalShutdownTempWarning"
#define CFG_THERMAL_SHUTDOWN_TEMP_WARNING_MIN ( 0 )
#define CFG_THERMAL_SHUTDOWN_TEMP_WARNING_MAX ( 1000 )
#define CFG_THERMAL_SHUTDOWN_TEMP_WARNING_DEFAULT ( 115 )
/*
* <ini>
* gThermalShutdownTempResume - Temperature threshold of resume
* @Min: 0
* @Max: 1000
* @Default: 113
*
* If the reported temperature from firmware is lower than this threshold,
* the resume command will be sent to shutdown the target.
*
* Supported Feature: Thermal Shutdown
*
* Usage: External
*
* </ini>
*/
#define CFG_THERMAL_SHUTDOWN_TEMP_RESUME_NAME "gThermalShutdownTempResume"
#define CFG_THERMAL_SHUTDOWN_TEMP_RESUME_MIN ( 0 )
#define CFG_THERMAL_SHUTDOWN_TEMP_RESUME_MAX ( 1000 )
#define CFG_THERMAL_SHUTDOWN_TEMP_RESUME_DEFAULT ( 113 )
/*
* <ini>
* gThermalSampleRate - The sample rate of temperature for firmware
* @Min: 1000
* @Max: 10000
* @Default: 5000
*
* Thermal Sample Rate (in milliseconds) used by FW to sample temperature of IC
*
*
* Supported Feature: Thermal Shutdown
*
* Usage: External
*
* </ini>
*/
#define CFG_THERMAL_SAMPLE_RATE_NAME "gThermalSampleRate"
#define CFG_THERMAL_SAMPLE_RATE_MIN ( 1000 )
#define CFG_THERMAL_SAMPLE_RATE_MAX ( 10000 )
#define CFG_THERMAL_SAMPLE_RATE_DEFAULT ( 5000 )
#endif /* FEATURE_WLAN_THERMAL_SHUTDOWN */
/*
* <ini>
* gDPDRecalibEnable - Enable/Disable Runtime DPD Recaliberation feature
* The parameter ‘enable’ in WMI is used to enable
* feature and debug log. Set bit0 to enable feature,
* set bit1 is to enable FW log to host, and set bit2 is
* to enable UART output.
*
* @Min: 0
* @Max: 7
* @Default: 1
*
* This ini is used to enable/disable DPD Recaliberation feature
*
* Usage: Internal
*
* </ini>
*/
#define CFG_DPD_RECALIB_ENABLE_NAME "gDPDRecalibEnable"
#define CFG_DPD_RECALIB_ENABLE_MIN ( 0 )
#define CFG_DPD_RECALIB_ENABLE_MAX ( 7 )
#define CFG_DPD_RECALIB_ENABLE_DEFAULT ( 1 )
/*Thermal thresholds: DPD will be triggered
when current temperature above this threshold */
/* Delta degree C above first DPD cal after chip is on. Unit: degree C. */
#define CFG_DPD_RECALIB_DELTA_DEGREE_HIGH_NAME "gDPDRecalibDeltaDegreeHigh"
#define CFG_DPD_RECALIB_DELTA_DEGREE_HIGH_MIN ( 10 )
#define CFG_DPD_RECALIB_DELTA_DEGREE_HIGH_MAX ( 60 )
#define CFG_DPD_RECALIB_DELTA_DEGREE_HIGH_DEFAULT ( 35 )
/* Delta degree C above first DPD cal after chip is on. Unit: degree C. */
#define CFG_DPD_RECALIB_DELTA_DEGREE_LOW_NAME "gDPDRecalibDeltaDegreeLow"
#define CFG_DPD_RECALIB_DELTA_DEGREE_LOW_MIN ( 10 )
#define CFG_DPD_RECALIB_DELTA_DEGREE_LOW_MAX ( 60 )
#define CFG_DPD_RECALIB_DELTA_DEGREE_LOW_DEFAULT ( 25 )
/* Cold down time between two DPD re-cal. Unit: ms*/
#define CFG_DPD_RECALIB_COOLING_TIME_NAME "gDPDRecalibCoolingTime"
#define CFG_DPD_RECALIB_COOLING_TIME_MIN ( 0 )
#define CFG_DPD_RECALIB_COOLING_TIME_MAX ( 5 )
#define CFG_DPD_RECALIB_COOLING_TIME_DEFAULT ( 1 )
/* Max duration for dpd re-cal. Unit: ms */
#define CFG_DPD_RECALIB_DURATION_MAX_NAME "gDPDRecalibDurationMax"
#define CFG_DPD_RECALIB_DURATION_MAX_MIN ( 30 )
#define CFG_DPD_RECALIB_DURATION_MAX_MAX ( 180 )
#define CFG_DPD_RECALIB_DURATION_MAX_DEFAULT ( 120 )
/*
* Enable/Disable Modulated DTIM feature
* Default: Disable
*/
#define CFG_ENABLE_MODULATED_DTIM_NAME "gEnableModulatedDTIM"
#define CFG_ENABLE_MODULATED_DTIM_MIN ( 0 )
#define CFG_ENABLE_MODULATED_DTIM_MAX ( 5 )
#define CFG_ENABLE_MODULATED_DTIM_DEFAULT ( 0 )
/*
* Enable/Disable Multicast MAC Address List feature
* Default: Disable
*/
#define CFG_MC_ADDR_LIST_ENABLE_NAME "gMCAddrListEnable"
#define CFG_MC_ADDR_LIST_ENABLE_MIN ( 0 )
#define CFG_MC_ADDR_LIST_ENABLE_MAX ( 1 )
#define CFG_MC_ADDR_LIST_ENABLE_DEFAULT ( 0 )
/* Set number of buffers to be advertised during ADDBA negotiation*/
#define CFG_NUM_BUFF_ADVERT_NAME "gNumBuffAdvert"
#define CFG_NUM_BUFF_ADVERT_MIN ( 0 )
#define CFG_NUM_BUFF_ADVERT_MAX ( 128 )
#define CFG_NUM_BUFF_ADVERT_DEFAULT ( 64 )
/*
* Allow MCC to modify config
*/
#define CFG_MCC_CONFIG_PARAM_NAME "gMccAllowCfgModify"
#define CFG_MCC_CONFIG_PARAM_MIN ( 0x0000 )
#define CFG_MCC_CONFIG_PARAM_MAX ( 0x01ff )
#define CFG_MCC_CONFIG_PARAM_DEFAULT ( 0x000C )
#define CFG_ENABLE_RX_STBC "gEnableRXSTBC"
#define CFG_ENABLE_RX_STBC_MIN ( 0 )
#define CFG_ENABLE_RX_STBC_MAX ( 1 )
#define CFG_ENABLE_RX_STBC_DEFAULT ( 1 )
#define CFG_ENABLE_TX_STBC "gEnableTXSTBC"
#define CFG_ENABLE_TX_STBC_MIN ( 0 )
#define CFG_ENABLE_TX_STBC_MAX ( 1 )
#define CFG_ENABLE_TX_STBC_DEFAULT ( 0 )
#define CFG_ENABLE_RX_LDPC "gEnableRXLDPC"
#define CFG_ENABLE_RX_LDPC_MIN ( 0 )
#define CFG_ENABLE_RX_LDPC_MAX ( 1 )
#define CFG_ENABLE_RX_LDPC_DEFAULT ( 0 )
/*
* Enable/Disable vsta based on MAX Assoc limit
* defined in WCNSS_qcom_cfg.ini.
*/
#ifdef WLAN_SOFTAP_VSTA_FEATURE
#define CFG_VSTA_SUPPORT_ENABLE "gEnableVSTASupport"
#define CFG_VSTA_SUPPORT_ENABLE_MIN ( 0 )
#define CFG_VSTA_SUPPORT_ENABLE_MAX ( 1 )
#define CFG_VSTA_SUPPORT_ENABLE_DEFAULT ( 0 )
#endif
#ifdef FEATURE_WLAN_TDLS
#define CFG_TDLS_SUPPORT_ENABLE "gEnableTDLSSupport"
#define CFG_TDLS_SUPPORT_ENABLE_MIN ( 0 )
#define CFG_TDLS_SUPPORT_ENABLE_MAX ( 1 )
#define CFG_TDLS_SUPPORT_ENABLE_DEFAULT ( 0 )
#define CFG_TDLS_IMPLICIT_TRIGGER "gEnableTDLSImplicitTrigger"
#define CFG_TDLS_IMPLICIT_TRIGGER_MIN ( 0 )
#define CFG_TDLS_IMPLICIT_TRIGGER_MAX ( 1 )
#define CFG_TDLS_IMPLICIT_TRIGGER_DEFAULT ( 0 )
#define CFG_TDLS_TX_STATS_PERIOD "gTDLSTxStatsPeriod"
#define CFG_TDLS_TX_STATS_PERIOD_MIN (1000)
#define CFG_TDLS_TX_STATS_PERIOD_MAX ( 4294967295UL )
#define CFG_TDLS_TX_STATS_PERIOD_DEFAULT (2000)
#define CFG_TDLS_TX_PACKET_THRESHOLD "gTDLSTxPacketThreshold"
#define CFG_TDLS_TX_PACKET_THRESHOLD_MIN ( 0 )
#define CFG_TDLS_TX_PACKET_THRESHOLD_MAX ( 4294967295UL )
#define CFG_TDLS_TX_PACKET_THRESHOLD_DEFAULT (40)
#define CFG_TDLS_DISCOVERY_PERIOD "gTDLSDiscoveryPeriod"
#define CFG_TDLS_DISCOVERY_PERIOD_MIN ( 5000 )
#define CFG_TDLS_DISCOVERY_PERIOD_MAX ( 4294967295UL )
#define CFG_TDLS_DISCOVERY_PERIOD_DEFAULT ( 20000 )
#define CFG_TDLS_MAX_DISCOVERY_ATTEMPT "gTDLSMaxDiscoveryAttempt"
#define CFG_TDLS_MAX_DISCOVERY_ATTEMPT_MIN ( 1 )
#define CFG_TDLS_MAX_DISCOVERY_ATTEMPT_MAX ( 100 )
#define CFG_TDLS_MAX_DISCOVERY_ATTEMPT_DEFAULT ( 5 )
/* teardown notification interval (gTDLSIdleTimeout) should be multiple of
* setup notification (gTDLSTxStatsPeriod) interval.
* e.g.
* if setup notification (gTDLSTxStatsPeriod) interval = 500, then
* teardown notification (gTDLSIdleTimeout) interval should be 1000,
* 1500, 2000, 2500...
*/
#define CFG_TDLS_IDLE_TIMEOUT "gTDLSIdleTimeout"
#define CFG_TDLS_IDLE_TIMEOUT_MIN (500)
#define CFG_TDLS_IDLE_TIMEOUT_MAX ( 40000 )
#define CFG_TDLS_IDLE_TIMEOUT_DEFAULT (5000)
#define CFG_TDLS_IDLE_PACKET_THRESHOLD "gTDLSIdlePacketThreshold"
#define CFG_TDLS_IDLE_PACKET_THRESHOLD_MIN ( 0 )
#define CFG_TDLS_IDLE_PACKET_THRESHOLD_MAX ( 40000 )
#define CFG_TDLS_IDLE_PACKET_THRESHOLD_DEFAULT (3)
#define CFG_TDLS_RSSI_HYSTERESIS "gTDLSRssiHysteresis"
#define CFG_TDLS_RSSI_HYSTERESIS_MIN ( 0 )
#define CFG_TDLS_RSSI_HYSTERESIS_MAX ( 100 )
#define CFG_TDLS_RSSI_HYSTERESIS_DEFAULT ( 100 )
#define CFG_TDLS_RSSI_TRIGGER_THRESHOLD "gTDLSRSSITriggerThreshold"
#define CFG_TDLS_RSSI_TRIGGER_THRESHOLD_MIN ( -120 )
#define CFG_TDLS_RSSI_TRIGGER_THRESHOLD_MAX ( 0 )
#define CFG_TDLS_RSSI_TRIGGER_THRESHOLD_DEFAULT ( -75 )
#define CFG_TDLS_RSSI_TEARDOWN_THRESHOLD "gTDLSRSSITeardownThreshold"
#define CFG_TDLS_RSSI_TEARDOWN_THRESHOLD_MIN ( -120 )
#define CFG_TDLS_RSSI_TEARDOWN_THRESHOLD_MAX ( 0 )
#define CFG_TDLS_RSSI_TEARDOWN_THRESHOLD_DEFAULT ( -75 )
#define CFG_TDLS_RSSI_DELTA "gTDLSRSSIDelta"
#define CFG_TDLS_RSSI_DELTA_MIN ( -30 )
#define CFG_TDLS_RSSI_DELTA_MAX ( 0 )
#define CFG_TDLS_RSSI_DELTA_DEFAULT ( -20 )
#define CFG_TDLS_QOS_WMM_UAPSD_MASK_NAME "gTDLSUapsdMask" // ACs to setup U-APSD for TDLS Sta
#define CFG_TDLS_QOS_WMM_UAPSD_MASK_MIN (0)
#define CFG_TDLS_QOS_WMM_UAPSD_MASK_MAX (0x0F)
#define CFG_TDLS_QOS_WMM_UAPSD_MASK_DEFAULT (0x0F)
#define CFG_TDLS_BUFFER_STA_SUPPORT_ENABLE "gEnableTDLSBufferSta"
#define CFG_TDLS_BUFFER_STA_SUPPORT_ENABLE_MIN (0)
#define CFG_TDLS_BUFFER_STA_SUPPORT_ENABLE_MAX (1)
#define CFG_TDLS_BUFFER_STA_SUPPORT_ENABLE_DEFAULT (1)
#define CFG_TDLS_PUAPSD_INACTIVITY_TIME "gTDLSPuapsdInactivityTime"
#define CFG_TDLS_PUAPSD_INACTIVITY_TIME_MIN (0)
#define CFG_TDLS_PUAPSD_INACTIVITY_TIME_MAX (10)
#define CFG_TDLS_PUAPSD_INACTIVITY_TIME_DEFAULT (0)
#define CFG_TDLS_PUAPSD_RX_FRAME_THRESHOLD "gTDLSPuapsdRxFrameThreshold"
#define CFG_TDLS_PUAPSD_RX_FRAME_THRESHOLD_MIN (10)
#define CFG_TDLS_PUAPSD_RX_FRAME_THRESHOLD_MAX (20)
#define CFG_TDLS_PUAPSD_RX_FRAME_THRESHOLD_DEFAULT (10)
#define CFG_TDLS_PUAPSD_PEER_TRAFFIC_IND_WINDOW "gTDLSPuapsdPTIWindow"
#define CFG_TDLS_PUAPSD_PEER_TRAFFIC_IND_WINDOW_MIN (1)
#define CFG_TDLS_PUAPSD_PEER_TRAFFIC_IND_WINDOW_MAX (5)
#define CFG_TDLS_PUAPSD_PEER_TRAFFIC_IND_WINDOW_DEFAULT (2)
#define CFG_TDLS_PUAPSD_PEER_TRAFFIC_RSP_TIMEOUT "gTDLSPuapsdPTRTimeout"
#define CFG_TDLS_PUAPSD_PEER_TRAFFIC_RSP_TIMEOUT_MIN (0)
#define CFG_TDLS_PUAPSD_PEER_TRAFFIC_RSP_TIMEOUT_MAX (10000)
#define CFG_TDLS_PUAPSD_PEER_TRAFFIC_RSP_TIMEOUT_DEFAULT (5000)
#define CFG_TDLS_EXTERNAL_CONTROL "gTDLSExternalControl"
#define CFG_TDLS_EXTERNAL_CONTROL_MIN (0)
#define CFG_TDLS_EXTERNAL_CONTROL_MAX (1)
#define CFG_TDLS_EXTERNAL_CONTROL_DEFAULT (1)
#define CFG_TDLS_OFF_CHANNEL_SUPPORT_ENABLE "gEnableTDLSOffChannel"
#define CFG_TDLS_OFF_CHANNEL_SUPPORT_ENABLE_MIN (0)
#define CFG_TDLS_OFF_CHANNEL_SUPPORT_ENABLE_MAX (1)
#define CFG_TDLS_OFF_CHANNEL_SUPPORT_ENABLE_DEFAULT (0)
#define CFG_TDLS_WMM_MODE_ENABLE "gEnableTDLSWmmMode"
#define CFG_TDLS_WMM_MODE_ENABLE_MIN (0)
#define CFG_TDLS_WMM_MODE_ENABLE_MAX (1)
#define CFG_TDLS_WMM_MODE_ENABLE_DEFAULT (1)
#define CFG_TDLS_PREFERRED_OFF_CHANNEL_NUM "gTDLSPrefOffChanNum"
#define CFG_TDLS_PREFERRED_OFF_CHANNEL_NUM_MIN (1)
#define CFG_TDLS_PREFERRED_OFF_CHANNEL_NUM_MAX (165)
#define CFG_TDLS_PREFERRED_OFF_CHANNEL_NUM_DEFAULT (36)
/* Tdls offchannel bandwidth is now represented in bits as follows.
* 0th bit - 20MHz
* 1st bit - 40MHz
* 2nd bit - 80MHz
* 3rd bit - 160MHz
* If more than one bits are set the f/w will start from the highest
* and select one, based on the capability of peer.
*/
#define CFG_TDLS_PREFERRED_OFF_CHANNEL_BW "gTDLSPrefOffChanBandwidth"
#define CFG_TDLS_PREFERRED_OFF_CHANNEL_BW_MIN (1)
#define CFG_TDLS_PREFERRED_OFF_CHANNEL_BW_MAX (0x0F)
#define CFG_TDLS_PREFERRED_OFF_CHANNEL_BW_DEFAULT (0x07)
/* Enable TDLS Scan: Allow scan and maintain TDLS link.
* 0: If peer is not buffer STA capable and device is not sleep STA
* capable, then teardown TDLS link when scan is initiated. If peer
* is buffer STA and we can be sleep STA then TDLS link is maintained
* during scan.
* 1: Maintain TDLS link and allow scan even if peer is not buffer STA
* capable and device is not sleep STA capable. There will be loss of
* Rx pkts since peer would not know when device moves away from tdls
* channel. Tx on TDLS link would stop when device moves away from tdls
* channel.
*/
#define CFG_TDLS_SCAN_ENABLE "gEnableTDLSScan"
#define CFG_TDLS_SCAN_ENABLE_MIN (0)
#define CFG_TDLS_SCAN_ENABLE_MAX (1)
#define CFG_TDLS_SCAN_ENABLE_DEFAULT (0)
/* TDLS peer kickout threshold to fw
* Firmware will use this value to determine, when to send TDLS
* peer kick out event to host.
* E.g.
* if peer kick out threshold is 10, then firmware will wait for 10
* consecutive packet failures and then send TDLS kickout
* notification to host driver
*/
#define CFG_TDLS_PEER_KICKOUT_THRESHOLD "gTDLSPeerKickoutThreshold"
#define CFG_TDLS_PEER_KICKOUT_THRESHOLD_MIN (10)
#define CFG_TDLS_PEER_KICKOUT_THRESHOLD_MAX (5000)
#define CFG_TDLS_PEER_KICKOUT_THRESHOLD_DEFAULT (96)
#endif
/* Timer to defer for enabling TDLS on P2P listen (Value in milliseconds) */
#define CFG_TDLS_ENABLE_DEFER_TIMER "gTDLSEnableDeferTime"
#define CFG_TDLS_ENABLE_DEFER_TIMER_MIN (2000)
#define CFG_TDLS_ENABLE_DEFER_TIMER_MAX (6000)
#define CFG_TDLS_ENABLE_DEFER_TIMER_DEFAULT (5000)
#ifdef WLAN_ACTIVEMODE_OFFLOAD_FEATURE
#define CFG_ACTIVEMODE_OFFLOAD_ENABLE "gEnableActiveModeOffload"
#define CFG_ACTIVEMODE_OFFLOAD_ENABLE_MIN ( 0 )
#define CFG_ACTIVEMODE_OFFLOAD_ENABLE_MAX ( 1 )
#define CFG_ACTIVEMODE_OFFLOAD_ENABLE_DEFAULT ( 1 )
#endif
/* Enable/Disable LPWR Image(cMEM uBSP) Transition */
#define CFG_ENABLE_LPWR_IMG_TRANSITION_NAME "gEnableLpwrImgTransition"
#define CFG_ENABLE_LPWR_IMG_TRANSITION_MIN ( 0 )
#define CFG_ENABLE_LPWR_IMG_TRANSITION_MAX ( 1 )
#define CFG_ENABLE_LPWR_IMG_TRANSITION_DEFAULT ( 0 )
/*
* Scan Aging timeout value in seconds
*/
#define CFG_SCAN_AGING_PARAM_NAME "gScanAgingTime"
#define CFG_SCAN_AGING_PARAM_MIN ( 0 )
#define CFG_SCAN_AGING_PARAM_MAX ( 200 )
#define CFG_SCAN_AGING_PARAM_DEFAULT ( 60 )
/* Config Param to enable the txLdpc capability
* 0 - disable
* 1 - HT LDPC enable
* 2 - VHT LDPC enable
* 3 - HT & VHT LDPC enable */
#define CFG_TX_LDPC_ENABLE_FEATURE "gTxLdpcEnable"
#define CFG_TX_LDPC_ENABLE_FEATURE_MIN ( 0 )
#define CFG_TX_LDPC_ENABLE_FEATURE_MAX ( 3 )
#define CFG_TX_LDPC_ENABLE_FEATURE_DEFAULT ( 3 )
/*
* Enable / Disable MCC Adaptive Scheduler feature
* Default: Enable
*/
#define CFG_ENABLE_MCC_ADATIVE_SCHEDULER_ENABLED_NAME "gEnableMCCAdaptiveScheduler"
#define CFG_ENABLE_MCC_ADATIVE_SCHEDULER_ENABLED_MIN ( 0 )
#define CFG_ENABLE_MCC_ADATIVE_SCHEDULER_ENABLED_MAX ( 1 )
#define CFG_ENABLE_MCC_ADATIVE_SCHEDULER_ENABLED_DEFAULT ( 1 )
#ifdef WLAN_FEATURE_11AC
#define CFG_VHT_SU_BEAMFORMEE_CAP_FEATURE "gTxBFEnable"
#define CFG_VHT_SU_BEAMFORMEE_CAP_FEATURE_MIN ( WNI_CFG_VHT_SU_BEAMFORMEE_CAP_STAMIN )
#define CFG_VHT_SU_BEAMFORMEE_CAP_FEATURE_MAX ( WNI_CFG_VHT_SU_BEAMFORMEE_CAP_STAMAX )
#define CFG_VHT_SU_BEAMFORMEE_CAP_FEATURE_DEFAULT ( WNI_CFG_VHT_SU_BEAMFORMEE_CAP_STADEF )
#define CFG_VHT_CSN_BEAMFORMEE_ANT_SUPPORTED "gTxBFCsnValue"
#define CFG_VHT_CSN_BEAMFORMEE_ANT_SUPPORTED_MIN ( WNI_CFG_VHT_CSN_BEAMFORMEE_ANT_SUPPORTED_STAMIN )
#define CFG_VHT_CSN_BEAMFORMEE_ANT_SUPPORTED_MAX ( WNI_CFG_VHT_CSN_BEAMFORMEE_ANT_SUPPORTED_STAMAX - 1 )
#define CFG_VHT_CSN_BEAMFORMEE_ANT_SUPPORTED_DEFAULT ( WNI_CFG_VHT_CSN_BEAMFORMEE_ANT_SUPPORTED_STAMAX - 1 )
#define CFG_VHT_ENABLE_TXBF_IN_20MHZ "gEnableTxBFin20MHz"
#define CFG_VHT_ENABLE_TXBF_IN_20MHZ_MIN ( 0 )
#define CFG_VHT_ENABLE_TXBF_IN_20MHZ_MAX ( 1 )
#define CFG_VHT_ENABLE_TXBF_IN_20MHZ_DEFAULT ( 0 )
#endif
//Enable debug for remain on channel issues
#define CFG_DEBUG_P2P_REMAIN_ON_CHANNEL_NAME "gDebugP2pRemainOnChannel"
#define CFG_DEBUG_P2P_REMAIN_ON_CHANNEL_DEFAULT ( 0 )
#define CFG_DEBUG_P2P_REMAIN_ON_CHANNEL_MIN ( 0 )
#define CFG_DEBUG_P2P_REMAIN_ON_CHANNEL_MAX ( 1 )
/*
* SAP ALLOW All Channels
*/
#define CFG_SAP_ALLOW_ALL_CHANNEL_PARAM_NAME "gSapAllowAllChannel"
#define CFG_SAP_ALLOW_ALL_CHANNEL_PARAM_MIN ( 0 )
#define CFG_SAP_ALLOW_ALL_CHANNEL_PARAM_MAX ( 1 )
#define CFG_SAP_ALLOW_ALL_CHANNEL_PARAM_DEFAULT ( 0 )
#ifdef WLAN_FEATURE_11AC
#define CFG_DISABLE_LDPC_WITH_TXBF_AP "gDisableLDPCWithTxbfAP"
#define CFG_DISABLE_LDPC_WITH_TXBF_AP_MIN ( 0 )
#define CFG_DISABLE_LDPC_WITH_TXBF_AP_MAX ( 1 )
#define CFG_DISABLE_LDPC_WITH_TXBF_AP_DEFAULT ( 0 )
#endif
#define CFG_LIST_OF_NON_DFS_COUNTRY_CODE "gListOfNonDfsCountryCode"
#define CFG_LIST_OF_NON_DFS_COUNTRY_CODE_DEFAULT "JO,MA"
/*
* IBSS Operating Channels for 2.4G and 5GHz channels
*/
#define CFG_IBSS_ADHOC_CHANNEL_5GHZ_NAME "gAdHocChannel5G"
#define CFG_IBSS_ADHOC_CHANNEL_5GHZ_MIN ( 36 )
#define CFG_IBSS_ADHOC_CHANNEL_5GHZ_MAX ( 165 )
#define CFG_IBSS_ADHOC_CHANNEL_5GHZ_DEFAULT ( 44 )
#define CFG_IBSS_ADHOC_CHANNEL_24GHZ_NAME "gAdHocChannel24G"
#define CFG_IBSS_ADHOC_CHANNEL_24GHZ_MIN ( 1 )
#define CFG_IBSS_ADHOC_CHANNEL_24GHZ_MAX ( 14 )
#define CFG_IBSS_ADHOC_CHANNEL_24GHZ_DEFAULT ( 6 )
/* Parameter to control VHT support in 2.4 GHz band */
#define CFG_ENABLE_VHT_FOR_24GHZ_NAME "gEnableVhtFor24GHzBand"
#define CFG_ENABLE_VHT_FOR_24GHZ_MIN (0)
#define CFG_ENABLE_VHT_FOR_24GHZ_MAX (1)
#define CFG_ENABLE_VHT_FOR_24GHZ_DEFAULT (0)
/*
* Parameter to control VHT support based on vendor ie in 2.4 GHz band
* This parameter will enable SAP to read VHT capability in vendor ie in Assoc
* Req and send VHT caps in Resp to establish connection in VHT Mode.
*/
#define CFG_ENABLE_VENDOR_VHT_FOR_24GHZ_NAME "gEnableVendorVhtFor24GHzBand"
#define CFG_ENABLE_VENDOR_VHT_FOR_24GHZ_MIN (0)
#define CFG_ENABLE_VENDOR_VHT_FOR_24GHZ_MAX (1)
#define CFG_ENABLE_VENDOR_VHT_FOR_24GHZ_DEFAULT (1)
#define CFG_MAX_MEDIUM_TIME "gMaxMediumTime"
#define CFG_MAX_MEDIUM_TIME_STAMIN WNI_CFG_MAX_MEDIUM_TIME_STAMIN
#define CFG_MAX_MEDIUM_TIME_STAMAX WNI_CFG_MAX_MEDIUM_TIME_STAMAX
#define CFG_MAX_MEDIUM_TIME_STADEFAULT WNI_CFG_MAX_MEDIUM_TIME_STADEF
/*
* Enable legacy fast roaming (LFR) on STA link during concurrent sessions
*/
#ifdef WLAN_FEATURE_ROAM_SCAN_OFFLOAD
#define CFG_ENABLE_FAST_ROAM_IN_CONCURRENCY "gEnableFastRoamInConcurrency"
#define CFG_ENABLE_FAST_ROAM_IN_CONCURRENCY_MIN ( 0 )
#define CFG_ENABLE_FAST_ROAM_IN_CONCURRENCY_MAX ( 1 )
#define CFG_ENABLE_FAST_ROAM_IN_CONCURRENCY_DEFAULT ( 1 )
#endif
/*
* FlexConnectPowerFactor parameter
* Default: Disable (0)
*/
#define CFG_FLEX_CONNECT_POWER_FACTOR_NAME "gFlexConnectPowerFactor"
#define CFG_FLEX_CONNECT_POWER_FACTOR_MIN ( 0 )
#define CFG_FLEX_CONNECT_POWER_FACTOR_MAX ( 9 )
#define CFG_FLEX_CONNECT_POWER_FACTOR_DEFAULT ( 0 )
/*
* Enable heart beat monitoring offload to FW
*/
#define CFG_ENABLE_HEART_BEAT_OFFLOAD "gEnableIbssHeartBeatOffload"
#define CFG_ENABLE_HEART_BEAT_OFFLOAD_MIN ( 0 )
#define CFG_ENABLE_HEART_BEAT_OFFLOAD_MAX ( 1 )
#define CFG_ENABLE_HEART_BEAT_OFFLOAD_DEFAULT ( 1 )
#define CFG_ANTENNA_DIVERSITY_PARAM_NAME "gAntennaDiversity"
#define CFG_ANTENNA_DIVERSITY_PARAM_MIN ( 0 )
#define CFG_ANTENNA_DIVERSITY_PARAM_MAX ( 3 )
#define CFG_ANTENNA_DIVERSITY_PARAM_DEFAULT ( 0 )
#define CFG_ENABLE_SNR_MONITORING_NAME "gEnableSNRMonitoring"
#define CFG_ENABLE_SNR_MONITORING_MIN ( 0 )
#define CFG_ENABLE_SNR_MONITORING_MAX ( 1 )
#define CFG_ENABLE_SNR_MONITORING_DEFAULT ( 0 )
#ifdef FEATURE_WLAN_SCAN_PNO
#define CFG_PNO_SCAN_SUPPORT "gPNOScanSupport"
#define CFG_PNO_SCAN_SUPPORT_ENABLE ( 1 )
#define CFG_PNO_SCAN_SUPPORT_DISABLE ( 0 )
#define CFG_PNO_SCAN_SUPPORT_DEFAULT ( 1 )
#define CFG_PNO_SCAN_TIMER_REPEAT_VALUE "gPNOScanTimerRepeatValue"
#define CFG_PNO_SCAN_TIMER_REPEAT_VALUE_DEFAULT ( 30 )
#define CFG_PNO_SCAN_TIMER_REPEAT_VALUE_MIN ( 0 )
#define CFG_PNO_SCAN_TIMER_REPEAT_VALUE_MAX ( 0xffffffff )
#define CFG_PNO_SLOW_SCAN_MULTIPLIER "gPNOSlowScanMultiplier"
#define CFG_PNO_SLOW_SCAN_MULTIPLIER_DEFAULT ( 6 )
#define CFG_PNO_SLOW_SCAN_MULTIPLIER_MIN ( 0 )
#define CFG_PNO_SLOW_SCAN_MULTIPLIER_MAX ( 30 )
#endif
#define CFG_MAX_AMSDU_NUM_NAME "gMaxAmsduNum"
#define CFG_MAX_AMSDU_NUM_MIN (0)
#define CFG_MAX_AMSDU_NUM_MAX (3)
#define CFG_MAX_AMSDU_NUM_DEFAULT (1)
/* Prefer connecting to 5G AP even if its RSSI is lower by
gSelect5GHzMargin dBm than 2.4G AP.
This feature requires the dependent cfg.ini "gRoamPrefer5GHz" set to 1 */
#define CFG_STRICT_5GHZ_PREF_BY_MARGIN "gSelect5GHzMargin"
#define CFG_STRICT_5GHZ_PREF_BY_MARGIN_MIN (0)
#define CFG_STRICT_5GHZ_PREF_BY_MARGIN_MAX (60)
#define CFG_STRICT_5GHZ_PREF_BY_MARGIN_DEFAULT (0) //set 0 to disable
#define CFG_ENABLE_TCP_CHKSUM_OFFLOAD "gEnableTCPChkSumOffld"
#define CFG_ENABLE_TCP_CHKSUM_OFFLOAD_MAX ( 1 )
#define CFG_ENABLE_TCP_CHKSUM_OFFLOAD_MIN ( 0 )
#define CFG_ENABLE_TCP_CHKSUM_OFFLOAD_DEFAULT ( 0 )
#define CFG_ENABLE_IP_CHKSUM_OFFLOAD "gEnableIPChecksumOffload"
#define CFG_ENABLE_IP_CHKSUM_OFFLOAD_DISABLE ( 0 )
#define CFG_ENABLE_IP_CHKSUM_OFFLOAD_ENABLE ( 1 )
#define CFG_ENABLE_IP_CHKSUM_OFFLOAD_DEFAULT ( CFG_ENABLE_IP_CHKSUM_OFFLOAD_DISABLE )
/*
* Power Save Offload
* Power Save Offload configuration:
* Current values of gEnablePowerSaveOffload:
* 0 -> Power save offload is disabled
* 1 -> Legacy Power save enabled + Deep sleep Disabled
* 2 -> QPower enabled + Deep sleep Disabled
* 3 -> Legacy Power save enabled + Deep sleep Enabled
* 4 -> QPower enabled + Deep sleep Enabled
* 5 -> Duty cycling QPower enabled
*/
#define CFG_POWERSAVE_OFFLOAD_NAME "gEnablePowerSaveOffload"
#define CFG_POWERSAVE_OFFLOAD_MIN (0)
#define CFG_POWERSAVE_OFFLOAD_MAX (PS_DUTY_CYCLING_QPOWER)
#define CFG_POWERSAVE_OFFLOAD_DEFAULT (CFG_POWERSAVE_OFFLOAD_MIN)
#ifdef IPA_OFFLOAD
/*
* IPA Offload configuration - Each bit enables a feature
* bit0 - IPA Enable
* bit1 - IPA Pre filter enable
* bit2 - IPv6 enable
* bit3 - IPA Resource Manager (RM) enable
* bit4 - IPA Clock scaling enable
*/
#define CFG_IPA_OFFLOAD_CONFIG_NAME "gIPAConfig"
#define CFG_IPA_OFFLOAD_CONFIG_MIN ( 0 )
#define CFG_IPA_OFFLOAD_CONFIG_MAX ( 0xFFFFFFFF )
#define CFG_IPA_OFFLOAD_CONFIG_DEFAULT ( CFG_IPA_OFFLOAD_CONFIG_MIN )
/*
* IPA DESC SIZE
*/
#define CFG_IPA_DESC_SIZE_NAME "gIPADescSize"
#define CFG_IPA_DESC_SIZE_MIN ( 800 )
#define CFG_IPA_DESC_SIZE_MAX ( 8000 )
#define CFG_IPA_DESC_SIZE_DEFAULT ( 800 )
#define CFG_IPA_HIGH_BANDWIDTH_MBPS "gIPAHighBandwidthMbps"
#define CFG_IPA_HIGH_BANDWIDTH_MBPS_MIN ( 200 )
#define CFG_IPA_HIGH_BANDWIDTH_MBPS_MAX ( 1000 )
#define CFG_IPA_HIGH_BANDWIDTH_MBPS_DEFAULT ( 400 )
#define CFG_IPA_MEDIUM_BANDWIDTH_MBPS "gIPAMediumBandwidthMbps"
#define CFG_IPA_MEDIUM_BANDWIDTH_MBPS_MIN ( 100 )
#define CFG_IPA_MEDIUM_BANDWIDTH_MBPS_MAX ( 400 )
#define CFG_IPA_MEDIUM_BANDWIDTH_MBPS_DEFAULT ( 200 )
#define CFG_IPA_LOW_BANDWIDTH_MBPS "gIPALowBandwidthMbps"
#define CFG_IPA_LOW_BANDWIDTH_MBPS_MIN ( 0 )
#define CFG_IPA_LOW_BANDWIDTH_MBPS_MAX ( 100 )
#define CFG_IPA_LOW_BANDWIDTH_MBPS_DEFAULT ( 100 )
#endif
/*
* P2P Listen Offload
*/
#define CFG_P2P_LISTEN_OFFLOAD_NAME "gEnableP2pListenOffload"
#define CFG_P2P_LISTEN_OFFLOAD_DISABLE ( 0 )
#define CFG_P2P_LISTEN_OFFLOAD_ENABLE ( 1 )
#define CFG_P2P_LISTEN_OFFLOAD_DEFAULT ( CFG_P2P_LISTEN_OFFLOAD_DISABLE )
/*
* Firmware uart print
*/
#define CFG_ENABLE_FW_UART_PRINT_NAME "gEnablefwprint"
#define CFG_ENABLE_FW_UART_PRINT_DISABLE ( 0 )
#define CFG_ENABLE_FW_UART_PRINT_ENABLE ( 1 )
#define CFG_ENABLE_FW_UART_PRINT_DEFAULT ( CFG_ENABLE_FW_UART_PRINT_DISABLE )
/*
* Firmware log
*/
#define CFG_ENABLE_FW_LOG_NAME "gEnablefwlog"
#define CFG_ENABLE_FW_LOG_DISABLE ( 0 )
#define CFG_ENABLE_FW_LOG_ENABLE ( 1 )
#define CFG_ENABLE_FW_LOG_DEFAULT ( CFG_ENABLE_FW_LOG_DISABLE )
/*
* Enable/Disable SSR for USB
*/
#define CFG_ENABLE_FW_SELF_RECOVERY_NAME "gEnableFwSelfRecovery"
#define CFG_ENABLE_FW_SELF_RECOVERY_DISABLE ( 0 )
#define CFG_ENABLE_FW_SELF_RECOVERY_ENABLE ( 1 )
#define CFG_ENABLE_FW_SELF_RECOVERY_DEFAULT ( CFG_ENABLE_FW_SELF_RECOVERY_DISABLE )
#ifdef WLAN_FEATURE_11AC
//Macro to handle maximum receive AMPDU size configuration
#define CFG_VHT_AMPDU_LEN_EXPONENT_NAME "gVhtAmpduLenExponent"
#define CFG_VHT_AMPDU_LEN_EXPONENT_MIN ( 0 )
#define CFG_VHT_AMPDU_LEN_EXPONENT_MAX ( 7 )
#define CFG_VHT_AMPDU_LEN_EXPONENT_DEFAULT ( 7 )
#define CFG_VHT_MPDU_LEN_NAME "gVhtMpduLen"
#define CFG_VHT_MPDU_LEN_MIN ( 0 )
#define CFG_VHT_MPDU_LEN_MAX ( 2 )
#define CFG_VHT_MPDU_LEN_DEFAULT ( 0 )
#endif
#define CFG_MAX_WOW_FILTERS_NAME "gMaxWoWFilters"
#define CFG_MAX_WOW_FILTERS_MIN ( 0 )
#define CFG_MAX_WOW_FILTERS_MAX ( 22 )
#define CFG_MAX_WOW_FILTERS_DEFAULT ( 22 )
/*
* WOW Enable/Disable.
* 0 - Disable both magic pattern match and pattern byte match.
* 1 - Enable magic pattern match on all interfaces.
* 2 - Enable pattern byte match on all interfaces.
* 3 - Enable both magic patter and pattern byte match on all interfaces.
*/
#define CFG_WOW_STATUS_NAME "gEnableWoW"
#define CFG_WOW_ENABLE_MIN ( 0 )
#define CFG_WOW_ENABLE_MAX ( 3 )
#define CFG_WOW_STATUS_DEFAULT ( 3 )
#define CFG_COALESING_IN_IBSS_NAME "gCoalesingInIBSS"
#define CFG_COALESING_IN_IBSS_MIN (0)
#define CFG_COALESING_IN_IBSS_MAX (1)
#define CFG_COALESING_IN_IBSS_DEFAULT (0) //disabled
#define CFG_IBSS_ATIM_WIN_SIZE_NAME "gIbssATIMWinSize"
#define CFG_IBSS_ATIM_WIN_SIZE_MIN (0)
#define CFG_IBSS_ATIM_WIN_SIZE_MAX (50)
#define CFG_IBSS_ATIM_WIN_SIZE_DEFAULT (0)
/*
* Indicates if IBSS Power Save is
* supported or not. When not allowed,
* IBSS station has to stay awake all
* the time and should never set PM=1
* in its transmitted frames. This
* parameter is meaningful/valid only
* when gIbssATIMWinSize is non-zero
*/
#define CFG_IBSS_IS_POWER_SAVE_ALLOWED_NAME "gIbssIsPowerSaveAllowed"
#define CFG_IBSS_IS_POWER_SAVE_ALLOWED_MIN (0)
#define CFG_IBSS_IS_POWER_SAVE_ALLOWED_MAX (1)
#define CFG_IBSS_IS_POWER_SAVE_ALLOWED_DEFAULT (1)
/*
* Indicates if IBSS Power Collapse
* is allowed or not.
*/
#define CFG_IBSS_IS_POWER_COLLAPSE_ALLOWED_NAME "gIbssIsPowerCollapseAllowed"
#define CFG_IBSS_IS_POWER_COLLAPSE_ALLOWED_MIN (0)
#define CFG_IBSS_IS_POWER_COLLAPSE_ALLOWED_MAX (1)
#define CFG_IBSS_IS_POWER_COLLAPSE_ALLOWED_DEFAULT (1)
/*
* This parameter indicates whether IBSS station
* can exit power save mode and enter power active
* state whenever there is a TX/RX activity.
*/
#define CFG_IBSS_AWAKE_ON_TX_RX_NAME "gIbssAwakeOnTxRx"
#define CFG_IBSS_AWAKE_ON_TX_RX_MIN (0)
#define CFG_IBSS_AWAKE_ON_TX_RX_MAX (1)
#define CFG_IBSS_AWAKE_ON_TX_RX_DEFAULT (0)
/*
* In IBSS mode if Awake on TX/RX activity is enabled
* Ibss Inactivity parameter indicates the data
* inactivity time in number of beacon intervals
* after which IBSS station re-inters power save
* by sending Null frame with PM=1
*/
#define CFG_IBSS_INACTIVITY_TIME_NAME "gIbssInactivityTime"
#define CFG_IBSS_INACTIVITY_TIME_MIN (1)
#define CFG_IBSS_INACTIVITY_TIME_MAX (10)
#define CFG_IBSS_INACTIVITY_TIME_DEFAULT (1)
/*
* In IBSS mode Tx Service Period Inactivity
* time in msecs indicates the time after
* which TX Service Period is terminated by
* sending a Qos Null frame with EOSP.
* If value is 0, TX SP is terminated with the
* last buffered packet itself instead of waiting
* for the inactivity
*/
#define CFG_IBSS_TXSP_END_INACTIVITY_NAME "gIbssTxSpEndInactivityTime"
#define CFG_IBSS_TXSP_END_INACTIVITY_MIN (0)
#define CFG_IBSS_TXSP_END_INACTIVITY_MAX (100)
#define CFG_IBSS_TXSP_END_INACTIVITY_DEFAULT (0)
/*
* When IBSS network is initialized, PS-supporting device
* does not enter protocol sleep state during first
* gIbssPsWarmupTime seconds.
*/
#define CFG_IBSS_PS_WARMUP_TIME_NAME "gIbssPsWarmupTime"
#define CFG_IBSS_PS_WARMUP_TIME_MIN (0)
/* Allow unsigned Int Max for now */
#define CFG_IBSS_PS_WARMUP_TIME_MAX (65535)
#define CFG_IBSS_PS_WARMUP_TIME_DEFAULT (0)
/*
* IBSS Power Save Enable/Disable 1 RX
* chain usage during the ATIM window
*/
#define CFG_IBSS_PS_1RX_CHAIN_IN_ATIM_WINDOW_NAME "gIbssPs1RxChainInAtim"
#define CFG_IBSS_PS_1RX_CHAIN_IN_ATIM_WINDOW_MIN (0)
#define CFG_IBSS_PS_1RX_CHAIN_IN_ATIM_WINDOW_MAX (1)
#define CFG_IBSS_PS_1RX_CHAIN_IN_ATIM_WINDOW_DEFAULT (0)
/*
* Max peers number of SAP
*/
#define CFG_SAP_MAX_NO_PEERS "gSoftApMaxPeers"
#define CFG_SAP_MAX_NO_PEERS_MIN (1)
#define CFG_SAP_MAX_NO_PEERS_MAX (32)
#define CFG_SAP_MAX_NO_PEERS_DEFAULT (32)
/*
* Max peers number of P2P GO
* To make it backward compatible with old INI file which only set
* gSoftApMaxPeers, set gGoMaxPeers default value to 0, and add logic
* to set this item same as gSoftApMaxPeers if the value is 0
*/
#define CFG_GO_MAX_NO_PEERS "gGoMaxPeers"
#define CFG_GO_MAX_NO_PEERS_MIN (0)
#define CFG_GO_MAX_NO_PEERS_MAX (32)
#define CFG_GO_MAX_NO_PEERS_DEFAULT (0)
/*
* Connection related log Enable/Disable.
* 0x1 - Enable mgmt pkt logs (no probe req/rsp).
* 0x2 - Enable EAPOL pkt logs.
* 0x4 - Enable DHCP pkt logs.
* 0x8 - Enable mgmt. action pkt logs.
* 0x10 - Enable ARP packet logs.
* 0x20 - Enable ICMPv6 NS packet logs.
* 0x40 - Enable ICMPv6 NA packet logs.
* 0x0 - Disable all the above connection related logs.
*/
#define CFG_ENABLE_DEBUG_CONNECT_ISSUE "gEnableDebugLog"
#define CFG_ENABLE_DEBUG_CONNECT_ISSUE_MIN (0)
#define CFG_ENABLE_DEBUG_CONNECT_ISSUE_MAX (0xFF)
#define CFG_ENABLE_DEBUG_CONNECT_ISSUE_DEFAULT (0x76)
/*
* RX packet handling options
* 0: no rx thread, no RPS, for MDM
* 1: RX thread
* 2: RPS
* MSM default RX thread
* MDM default irq
*/
#define CFG_RX_HANDLE "rxhandle"
#define CFG_RX_HANDLE_MIN (WLAN_HDD_RX_HANDLE_MIN)
#define CFG_RX_HANDLE_MAX (WLAN_HDD_RX_HANDLE_MAX)
#ifdef MDM_PLATFORM
#define CFG_RX_HANDLE_DEFAULT (WLAN_HDD_RX_HANDLE_IRQ)
#else
#define CFG_RX_HANDLE_DEFAULT (WLAN_HDD_RX_HANDLE_RX_THREAD)
#endif /* MDM_PLATFORM */
/* List of RPS CPU maps for different rx queues registered by WLAN driver
* Ref - Kernel/Documentation/networking/scaling.txt
* RPS CPU map for a particular RX queue, selects CPU(s) for bottom half
* processing of RX packets. For example, for a system with 4 CPUs,
* 0xe: Use CPU1 - CPU3 and donot use CPU0.
* 0x0: RPS is disabled, packets are processed on the interrupting CPU.
.*
* WLAN driver registers NUM_TX_QUEUES queues for tx and rx each during
* alloc_netdev_mq. Hence, we need to have a cpu mask for each of the rx queues.
*
* For example, if the NUM_TX_QUEUES is 4, a sample WLAN ini entry may look like
* rpsRxQueueCpuMapList=a b c d
* For a 4 CPU system (CPU0 - CPU3), this implies:
* 0xa - (1010) use CPU1, CPU3 for rx queue 0
* 0xb - (1011) use CPU0, CPU1 and CPU3 for rx queue 1
* 0xc - (1100) use CPU2, CPU3 for rx queue 2
* 0xd - (1101) use CPU0, CPU2 and CPU3 for rx queue 3
* In practice, we may want to avoid the cores which are heavily loaded.
*/
/* Name of the ini file entry to specify RPS map for different RX queus */
#define CFG_RPS_RX_QUEUE_CPU_MAP_LIST_NAME "rpsRxQueueCpuMapList"
/* Default value of rpsRxQueueCpuMapList. Different platforms may have
* different configurations for NUM_TX_QUEUES and # of cpus, and will need to
* configure an appropriate value via ini file. Setting default value to 'e' to
* avoid use of CPU0 (since its heavily used by other system processes) by rx
* queue 0, which is currently being used for rx packet processing.
*/
#define CFG_RPS_RX_QUEUE_CPU_MAP_LIST_DEFAULT "e"
/* Maximum length of string used to hold a list of cpu maps for various rx
* queues. Considering a 16 core system with 5 rx queues, a RPS CPU map
* list may look like -
* rpsRxQueueCpuMapList = ffff ffff ffff ffff ffff
* (all 5 rx queues can be processed on all 16 cores)
* max string len = 24 + 1(for '\0'). Considering 30 to be on safe side.
*/
#define CFG_RPS_RX_QUEUE_CPU_MAP_LIST_LEN 30
/* SAR Thermal limit values for 2g and 5g */
#define CFG_SET_TXPOWER_LIMIT2G_NAME "TxPower2g"
#define CFG_SET_TXPOWER_LIMIT2G_MIN ( 0 )
#define CFG_SET_TXPOWER_LIMIT2G_MAX ( 30 )
#define CFG_SET_TXPOWER_LIMIT2G_DEFAULT ( 30 )
#define CFG_SET_TXPOWER_LIMIT5G_NAME "TxPower5g"
#define CFG_SET_TXPOWER_LIMIT5G_MIN ( 0 )
#define CFG_SET_TXPOWER_LIMIT5G_MAX ( 30 )
#define CFG_SET_TXPOWER_LIMIT5G_DEFAULT ( 30 )
#ifdef QCA_LL_TX_FLOW_CT
/* Default, single interface case flow control parameters */
#define CFG_LL_TX_FLOW_LWM "TxFlowLowWaterMark"
#define CFG_LL_TX_FLOW_LWM_MIN ( 0 )
#define CFG_LL_TX_FLOW_LWM_MAX ( 1000 )
#if defined(CONFIG_HL_SUPPORT)
#define CFG_LL_TX_FLOW_LWM_DEFAULT ( 0 )
#else
#define CFG_LL_TX_FLOW_LWM_DEFAULT ( 300 )
#endif /* defined(CONFIG_HL_SUPPORT) */
#define CFG_LL_TX_FLOW_HWM_OFFSET "TxFlowHighWaterMarkOffset"
#define CFG_LL_TX_FLOW_HWM_OFFSET_MIN ( 0 )
#define CFG_LL_TX_FLOW_HWM_OFFSET_MAX ( 300 )
#if defined(CONFIG_HL_SUPPORT)
#define CFG_LL_TX_FLOW_HWM_OFFSET_DEFAULT ( 0 )
#else
#define CFG_LL_TX_FLOW_HWM_OFFSET_DEFAULT ( 94 )
#endif /* defined(CONFIG_HL_SUPPORT) */
#define CFG_LL_TX_FLOW_MAX_Q_DEPTH "TxFlowMaxQueueDepth"
#define CFG_LL_TX_FLOW_MAX_Q_DEPTH_MIN ( 400 )
#define CFG_LL_TX_FLOW_MAX_Q_DEPTH_MAX ( 3500 )
#define CFG_LL_TX_FLOW_MAX_Q_DEPTH_DEFAULT ( 1500 )
#define CFG_LL_TX_LBW_FLOW_LWM "TxLbwFlowLowWaterMark"
#define CFG_LL_TX_LBW_FLOW_LWM_MIN ( 0 )
#if defined(CONFIG_HL_SUPPORT)
#define CFG_LL_TX_LBW_FLOW_LWM_MAX ( 2300 )
#define CFG_LL_TX_LBW_FLOW_LWM_DEFAULT ( 2250 )
#else
#define CFG_LL_TX_LBW_FLOW_LWM_MAX ( 1000 )
#define CFG_LL_TX_LBW_FLOW_LWM_DEFAULT ( 450 )
#endif /* defined(CONFIG_HL_SUPPORT) */
#define CFG_LL_TX_LBW_FLOW_HWM_OFFSET "TxLbwFlowHighWaterMarkOffset"
#define CFG_LL_TX_LBW_FLOW_HWM_OFFSET_MIN ( 0 )
#define CFG_LL_TX_LBW_FLOW_HWM_OFFSET_MAX ( 300 )
#if defined(CONFIG_HL_SUPPORT)
#define CFG_LL_TX_LBW_FLOW_HWM_OFFSET_DEFAULT ( 40 )
#else
#define CFG_LL_TX_LBW_FLOW_HWM_OFFSET_DEFAULT ( 50 )
#endif /* defined(CONFIG_HL_SUPPORT) */
#define CFG_LL_TX_LBW_FLOW_MAX_Q_DEPTH "TxLbwFlowMaxQueueDepth"
#define CFG_LL_TX_LBW_FLOW_MAX_Q_DEPTH_MIN ( 400 )
#define CFG_LL_TX_LBW_FLOW_MAX_Q_DEPTH_MAX ( 3500 )
#define CFG_LL_TX_LBW_FLOW_MAX_Q_DEPTH_DEFAULT ( 750 )
#define CFG_LL_TX_HBW_FLOW_LWM "TxHbwFlowLowWaterMark"
#define CFG_LL_TX_HBW_FLOW_LWM_MIN ( 0 )
#if defined(CONFIG_HL_SUPPORT)
#define CFG_LL_TX_HBW_FLOW_LWM_MAX ( 2300 )
#define CFG_LL_TX_HBW_FLOW_LWM_DEFAULT ( 2150 )
#else
#define CFG_LL_TX_HBW_FLOW_LWM_MAX ( 1000 )
#define CFG_LL_TX_HBW_FLOW_LWM_DEFAULT ( 406 )
#endif /* defined(CONFIG_HL_SUPPORT) */
#define CFG_LL_TX_HBW_FLOW_HWM_OFFSET "TxHbwFlowHighWaterMarkOffset"
#define CFG_LL_TX_HBW_FLOW_HWM_OFFSET_MIN ( 0 )
#define CFG_LL_TX_HBW_FLOW_HWM_OFFSET_MAX ( 300 )
#if defined(CONFIG_HL_SUPPORT)
#define CFG_LL_TX_HBW_FLOW_HWM_OFFSET_DEFAULT ( 140 )
#else
#define CFG_LL_TX_HBW_FLOW_HWM_OFFSET_DEFAULT ( 94 )
#endif /* defined(CONFIG_HL_SUPPORT) */
#define CFG_LL_TX_HBW_FLOW_MAX_Q_DEPTH "TxHbwFlowMaxQueueDepth"
#define CFG_LL_TX_HBW_FLOW_MAX_Q_DEPTH_MIN ( 400 )
#define CFG_LL_TX_HBW_FLOW_MAX_Q_DEPTH_MAX ( 3500 )
#define CFG_LL_TX_HBW_FLOW_MAX_Q_DEPTH_DEFAULT ( 1500 )
#endif /* QCA_LL_TX_FLOW_CT */
#define CFG_SAP_MAX_OFFLOAD_PEERS "gMaxOffloadPeers"
#define CFG_SAP_MAX_OFFLOAD_PEERS_MIN (2)
#define CFG_SAP_MAX_OFFLOAD_PEERS_MAX (12)
#define CFG_SAP_MAX_OFFLOAD_PEERS_DEFAULT (2)
#define CFG_SAP_MAX_OFFLOAD_REORDER_BUFFS "gMaxOffloadReorderBuffs"
#define CFG_SAP_MAX_OFFLOAD_REORDER_BUFFS_MIN (0)
#define CFG_SAP_MAX_OFFLOAD_REORDER_BUFFS_MAX (12)
#define CFG_SAP_MAX_OFFLOAD_REORDER_BUFFS_DEFAULT (2)
#ifdef FEATURE_WLAN_RA_FILTERING
#define CFG_RA_FILTER_ENABLE_NAME "gRAFilterEnable"
#define CFG_RA_FILTER_ENABLE_MIN (0)
#define CFG_RA_FILTER_ENABLE_MAX (1)
#define CFG_RA_FILTER_ENABLE_DEFAULT (0)
#define CFG_RA_RATE_LIMIT_INTERVAL_NAME "gRArateLimitInterval"
#define CFG_RA_RATE_LIMIT_INTERVAL_MIN (60)
#define CFG_RA_RATE_LIMIT_INTERVAL_MAX (3600)
#define CFG_RA_RATE_LIMIT_INTERVAL_DEFAULT (60)/*60 SEC*/
#endif
#define CFG_IGNORE_PEER_ERP_INFO_NAME "gIgnorePeerErpInfo"
#define CFG_IGNORE_PEER_ERP_INFO_MIN ( 0 )
#define CFG_IGNORE_PEER_ERP_INFO_MAX ( 1 )
#define CFG_IGNORE_PEER_ERP_INFO_DEFAULT ( 0 )
#define CFG_INITIAL_DWELL_TIME_NAME "gInitialDwellTime"
#define CFG_INITIAL_DWELL_TIME_DEFAULT (0)
#define CFG_INITIAL_DWELL_TIME_MIN (0)
#define CFG_INITIAL_DWELL_TIME_MAX (100)
#define CFG_INITIAL_SCAN_NO_DFS_CHNL_NAME "gInitialScanNoDFSChnl"
#define CFG_INITIAL_SCAN_NO_DFS_CHNL_DEFAULT (0)
#define CFG_INITIAL_SCAN_NO_DFS_CHNL_MIN (0)
#define CFG_INITIAL_SCAN_NO_DFS_CHNL_MAX (1)
#define CFG_OVERRIDE_COUNTRY_CODE "gStaCountryCode"
#define CFG_OVERRIDE_COUNTRY_CODE_DEFAULT "000"
#define CFG_ROAMING_DFS_CHANNEL_NAME "gAllowDFSChannelRoam"
#define CFG_ROAMING_DFS_CHANNEL_DISABLED (0)
#define CFG_ROAMING_DFS_CHANNEL_ENABLED_NORMAL (1)
#define CFG_ROAMING_DFS_CHANNEL_ENABLED_ACTIVE (2)
#define CFG_ROAMING_DFS_CHANNEL_MIN (CFG_ROAMING_DFS_CHANNEL_DISABLED)
#define CFG_ROAMING_DFS_CHANNEL_MAX (CFG_ROAMING_DFS_CHANNEL_ENABLED_ACTIVE)
#define CFG_ROAMING_DFS_CHANNEL_DEFAULT (CFG_ROAMING_DFS_CHANNEL_DISABLED)
#ifdef FEATURE_BUS_BANDWIDTH
#define CFG_BUS_BANDWIDTH_HIGH_THRESHOLD "gBusBandwidthHighThreshold"
#define CFG_BUS_BANDWIDTH_HIGH_THRESHOLD_DEFAULT ( 2000 )
#define CFG_BUS_BANDWIDTH_HIGH_THRESHOLD_MIN ( 0 )
#define CFG_BUS_BANDWIDTH_HIGH_THRESHOLD_MAX ( 4294967295UL )
#define CFG_BUS_BANDWIDTH_MEDIUM_THRESHOLD "gBusBandwidthMediumThreshold"
#define CFG_BUS_BANDWIDTH_MEDIUM_THRESHOLD_DEFAULT ( 500 )
#define CFG_BUS_BANDWIDTH_MEDIUM_THRESHOLD_MIN ( 0 )
#define CFG_BUS_BANDWIDTH_MEDIUM_THRESHOLD_MAX ( 4294967295UL )
#define CFG_BUS_BANDWIDTH_LOW_THRESHOLD "gBusBandwidthLowThreshold"
#define CFG_BUS_BANDWIDTH_LOW_THRESHOLD_DEFAULT ( 150 )
#define CFG_BUS_BANDWIDTH_LOW_THRESHOLD_MIN ( 0 )
#define CFG_BUS_BANDWIDTH_LOW_THRESHOLD_MAX ( 4294967295UL )
#define CFG_BUS_BANDWIDTH_COMPUTE_INTERVAL "gBusBandwidthComputeInterval"
#define CFG_BUS_BANDWIDTH_COMPUTE_INTERVAL_DEFAULT ( 100 )
#define CFG_BUS_BANDWIDTH_COMPUTE_INTERVAL_MIN ( 0 )
#define CFG_BUS_BANDWIDTH_COMPUTE_INTERVAL_MAX ( 10000 )
#define CFG_TCP_DELACK_THRESHOLD_HIGH "gTcpDelAckThresholdHigh"
#define CFG_TCP_DELACK_THRESHOLD_HIGH_DEFAULT ( 500 )
#define CFG_TCP_DELACK_THRESHOLD_HIGH_MIN ( 0 )
#define CFG_TCP_DELACK_THRESHOLD_HIGH_MAX ( 16000 )
#define CFG_TCP_DELACK_THRESHOLD_LOW "gTcpDelAckThresholdLow"
#define CFG_TCP_DELACK_THRESHOLD_LOW_DEFAULT ( 1000 )
#define CFG_TCP_DELACK_THRESHOLD_LOW_MIN ( 0 )
#define CFG_TCP_DELACK_THRESHOLD_LOW_MAX ( 10000 )
#define CFG_TCP_DELACK_TIMER_COUNT "gTcpDelAckTimerCount"
#define CFG_TCP_DELACK_TIMER_COUNT_DEFAULT ( 30 )
#define CFG_TCP_DELACK_TIMER_COUNT_MIN ( 1 )
#define CFG_TCP_DELACK_TIMER_COUNT_MAX ( 1000 )
/* TCP_TX_HIGH_TPUT_THRESHOLD specifies the threshold of packets transmitted
* over a period of 100 ms beyond which TCP can be considered to have a high
* TX throughput requirement. The driver uses this condition to tweak TCP TX
* specific parameters (via cnss-daemon).
* default - 500
*/
#define CFG_TCP_TX_HIGH_TPUT_THRESHOLD_NAME "gTcpTxHighTputThreshold"
#define CFG_TCP_TX_HIGH_TPUT_THRESHOLD_DEFAULT ( 500 )
#define CFG_TCP_TX_HIGH_TPUT_THRESHOLD_MIN ( 0 )
#define CFG_TCP_TX_HIGH_TPUT_THRESHOLD_MAX ( 16000 )
#endif /* FEATURE_BUS_BANDWIDTH */
#ifdef QCA_SUPPORT_TXRX_HL_BUNDLE
/*
* PKT_BUNDLE_THRESHOLD_HIGH specifies threshold of packets transmitted
* over a period of 100ms beyond which bundling will be enabled and
* TXRX layer bundle packets before giving to scheduler. If numbers
* of packets falls below PKT_BUNDLE_THRESHOLD_LOW than bundling will
* stop.
*/
#define CFG_PKT_BUNDLE_THRESHOLD_HIGH "gPacketBundleHighThreshold"
#define CFG_PKT_BUNDLE_THRESHOLD_HIGH_DEFAULT ( 4330 )
#define CFG_PKT_BUNDLE_THRESHOLD_HIGH_MIN ( 0 )
#define CFG_PKT_BUNDLE_THRESHOLD_HIGH_MAX ( 70000 )
#define CFG_PKT_BUNDLE_THRESHOLD_LOW "gPacketBundleLowThreshold"
#define CFG_PKT_BUNDLE_THRESHOLD_LOW_DEFAULT ( 4000 )
#define CFG_PKT_BUNDLE_THRESHOLD_LOW_MIN ( 0 )
#define CFG_PKT_BUNDLE_THRESHOLD_LOW_MAX ( 70000 )
#define CFG_PKT_BUNDLE_TIMER_IN_MS "gPacketBundleTimerValue"
#define CFG_PKT_BUNDLE_TIMER_IN_MS_DEFAULT ( 100 )
#define CFG_PKT_BUNDLE_TIMER_IN_MS_MIN ( 10 )
#define CFG_PKT_BUNDLE_TIMER_IN_MS_MAX ( 10000 )
#define CFG_PKT_BUNDLE_SIZE "gPacketBundleSize"
#define CFG_PKT_BUNDLE_SIZE_DEFAULT ( 10 )
#define CFG_PKT_BUNDLE_SIZE_MIN ( 0 )
#define CFG_PKT_BUNDLE_SIZE_MAX ( 32 )
#endif /* QCA_SUPPORT_TXRX_HL_BUNDLE */
#ifdef QCA_SUPPORT_TXRX_DRIVER_TCP_DEL_ACK
#define CFG_DEL_ACK_THRESHOLD_HIGH "gDriverDelAckHighThreshold"
#define CFG_DEL_ACK_THRESHOLD_HIGH_DEFAULT (300)
#define CFG_DEL_ACK_THRESHOLD_HIGH_MIN (0)
#define CFG_DEL_ACK_THRESHOLD_HIGH_MAX (70000)
#define CFG_DEL_ACK_THRESHOLD_LOW "gDriverDelAckLowThreshold"
#define CFG_DEL_ACK_THRESHOLD_LOW_DEFAULT (100)
#define CFG_DEL_ACK_THRESHOLD_LOW_MIN (0)
#define CFG_DEL_ACK_THRESHOLD_LOW_MAX (70000)
#define CFG_DEL_ACK_TIMER_IN_MS "gDriverDelAckTimerValue"
#define CFG_DEL_ACK_TIMER_IN_MS_DEFAULT (3)
#define CFG_DEL_ACK_TIMER_IN_MS_MIN (1)
#define CFG_DEL_ACK_TIMER_IN_MS_MAX (15)
#define CFG_DEL_ACK_PKT_COUNT "gDriverDelAckPktCount"
#define CFG_DEL_ACK_PKT_COUNT_DEFAULT (20)
#define CFG_DEL_ACK_PKT_COUNT_MIN (0)
#define CFG_DEL_ACK_PKT_COUNT_MAX (50)
#define CFG_DEL_ACK_ENABLE "gDriverDelAckEnable"
#define CFG_DEL_ACK_ENABLE_DEFAULT (1)
#define CFG_DEL_ACK_ENABLE_MIN (0)
#define CFG_DEL_ACK_ENABLE_MAX (1)
#endif /* QCA_SUPPORT_TXRX_DRIVER_TCP_DEL_ACK */
#ifdef WLAN_FEATURE_11W
#define CFG_PMF_SA_QUERY_MAX_RETRIES_NAME "pmfSaQueryMaxRetries"
#define CFG_PMF_SA_QUERY_MAX_RETRIES_DEFAULT ( 5 )
#define CFG_PMF_SA_QUERY_MAX_RETRIES_MIN ( 0 )
#define CFG_PMF_SA_QUERY_MAX_RETRIES_MAX ( 20 )
#define CFG_PMF_SA_QUERY_RETRY_INTERVAL_NAME "pmfSaQueryRetryInterval"
#define CFG_PMF_SA_QUERY_RETRY_INTERVAL_DEFAULT ( 200 )
#define CFG_PMF_SA_QUERY_RETRY_INTERVAL_MIN ( 0 )
#define CFG_PMF_SA_QUERY_RETRY_INTERVAL_MAX ( 2000 )
#endif
#define CFG_MAX_CONCURRENT_CONNECTIONS_NAME "gMaxConcurrentActiveSessions"
#ifdef WLAN_4SAP_CONCURRENCY
#define CFG_MAX_CONCURRENT_CONNECTIONS_DEFAULT ( 4 )
#else
#define CFG_MAX_CONCURRENT_CONNECTIONS_DEFAULT ( 2 )
#endif
#define CFG_MAX_CONCURRENT_CONNECTIONS_MIN ( 1 )
#define CFG_MAX_CONCURRENT_CONNECTIONS_MAX ( 4 )
#define CFG_IGNORE_CAC_NAME "gIgnoreCAC"
#define CFG_IGNORE_CAC_MIN ( 0 )
#define CFG_IGNORE_CAC_MAX ( 1 )
#define CFG_IGNORE_CAC_DEFAULT ( 0 )
#define CFG_ENABLE_SAP_DFS_CH_SIFS_BURST_NAME "gEnableSAPDfsChSifsBurst"
#define CFG_ENABLE_SAP_DFS_CH_SIFS_BURST_MIN ( 0 )
#define CFG_ENABLE_SAP_DFS_CH_SIFS_BURST_MAX ( 1 )
#define CFG_ENABLE_SAP_DFS_CH_SIFS_BURST_DEFAULT ( 1 )
#define CFG_DFS_RADAR_PRI_MULTIPLIER_NAME "gDFSradarMappingPriMultiplier"
#define CFG_DFS_RADAR_PRI_MULTIPLIER_DEFAULT ( 4 )
#define CFG_DFS_RADAR_PRI_MULTIPLIER_MIN ( 0 )
#define CFG_DFS_RADAR_PRI_MULTIPLIER_MAX ( 10 )
#define CFG_REORDER_OFFLOAD_SUPPORT_NAME "gReorderOffloadSupported"
#define CFG_REORDER_OFFLOAD_SUPPORT_MIN ( 0 )
#define CFG_REORDER_OFFLOAD_SUPPORT_MAX ( 1 )
#define CFG_REORDER_OFFLOAD_SUPPORT_DEFAULT ( 0 )
/*
* <ini>
* gEnableHostapdEdca - Use hostapd EDCA local params
* @Min: 0
* @Max: 1
* @Default: 0
*
* This ini is used to enable using hostapd
* EDCA local params.
*
* Supported Feature: EDCA
*
* Usage: Internal/External
*
* </ini>
*/
#define CFG_EDCA_FROM_HOSTAPD "gEnableHostapdEdcaLocal"
#define CFG_EDCA_FROM_HOSTAPD_MIN ( 0 )
#define CFG_EDCA_FROM_HOSTAPD_MAX ( 1 )
#define CFG_EDCA_FROM_HOSTAPD_DEFAULT ( 0 )
#ifdef WLAN_FEATURE_ROAM_OFFLOAD
#define CFG_ROAMING_OFFLOAD_NAME "gRoamOffloadEnabled"
#define CFG_ROAMING_OFFLOAD_MIN (0)
#define CFG_ROAMING_OFFLOAD_MAX (1)
#define CFG_ROAMING_OFFLOAD_DEFAULT (0)
#endif
#ifdef IPA_UC_OFFLOAD
#define CFG_IPA_UC_OFFLOAD_ENABLED_NAME "IpaUcOffloadEnabled"
#define CFG_IPA_UC_OFFLOAD_ENABLED_MIN ( 0 )
#define CFG_IPA_UC_OFFLOAD_ENABLED_MAX ( 1 )
#define CFG_IPA_UC_OFFLOAD_ENABLED_DEFAULT ( 0 )
/* IpaUcTxBufCount should be power of 2 */
#define CFG_IPA_UC_TX_BUF_COUNT_NAME "IpaUcTxBufCount"
#define CFG_IPA_UC_TX_BUF_COUNT_MIN ( 0 )
#define CFG_IPA_UC_TX_BUF_COUNT_MAX ( 2048 )
#define CFG_IPA_UC_TX_BUF_COUNT_DEFAULT ( 512 )
#define CFG_IPA_UC_TX_BUF_SIZE_NAME "IpaUcTxBufSize"
#define CFG_IPA_UC_TX_BUF_SIZE_MIN ( 0 )
#define CFG_IPA_UC_TX_BUF_SIZE_MAX ( 4096 )
#define CFG_IPA_UC_TX_BUF_SIZE_DEFAULT ( 2048 )
/* IpaUcRxIndRingCount should be power of 2 */
#define CFG_IPA_UC_RX_IND_RING_COUNT_NAME "IpaUcRxIndRingCount"
#define CFG_IPA_UC_RX_IND_RING_COUNT_MIN ( 0 )
#define CFG_IPA_UC_RX_IND_RING_COUNT_MAX ( 2048 )
#define CFG_IPA_UC_RX_IND_RING_COUNT_DEFAULT ( 1024 )
#define CFG_IPA_UC_TX_PARTITION_BASE_NAME "IpaUcTxPartitionBase"
#define CFG_IPA_UC_TX_PARTITION_BASE_MIN ( 0 )
#define CFG_IPA_UC_TX_PARTITION_BASE_MAX ( 9000 )
#define CFG_IPA_UC_TX_PARTITION_BASE_DEFAULT ( 3000 )
#endif /* IPA_UC_OFFLOAD */
#ifdef WLAN_LOGGING_SOCK_SVC_ENABLE
/* Enable WLAN Logging to app space */
#define CFG_WLAN_LOGGING_SUPPORT_NAME "wlanLoggingEnable"
#define CFG_WLAN_LOGGING_SUPPORT_ENABLE ( 1 )
#define CFG_WLAN_LOGGING_SUPPORT_DISABLE ( 0 )
#define CFG_WLAN_LOGGING_SUPPORT_DEFAULT ( 1 )
/* Enable FATAL and ERROR logs for kmsg console */
#define CFG_WLAN_LOGGING_FE_CONSOLE_SUPPORT_NAME "wlanLoggingFEToConsole"
#define CFG_WLAN_LOGGING_FE_CONSOLE_SUPPORT_ENABLE ( 1 )
#define CFG_WLAN_LOGGING_FE_CONSOLE_SUPPORT_DISABLE ( 0 )
#define CFG_WLAN_LOGGING_FE_CONSOLE_SUPPORT_DEFAULT ( 1 )
/* Number of buffers to be used for WLAN logging */
#define CFG_WLAN_LOGGING_NUM_BUF_NAME "wlanLoggingNumBuf"
#define CFG_WLAN_LOGGING_NUM_BUF_MIN ( 4 )
#define CFG_WLAN_LOGGING_NUM_BUF_MAX ( 512 )
#define CFG_WLAN_LOGGING_NUM_BUF_DEFAULT ( 256 )
#endif /* WLAN_LOGGING_SOCK_SVC_ENABLE */
/*
* Sifs burst feature configuration
* gEnableSifsBurst = 0 means sifs burst toally disable
* gEnableSifsBurst = 1 means sifs burst enabled but disabled for legacy mode
* gEnableSifsBurst = 3 means sifs burst enabled and also for legacy mode
*/
#define CFG_ENABLE_SIFS_BURST "gEnableSifsBurst"
#define CFG_ENABLE_SIFS_BURST_MIN ( 0 )
#define CFG_ENABLE_SIFS_BURST_MAX (3)
#define CFG_ENABLE_SIFS_BURST_DEFAULT ( 0 )
#ifdef WLAN_FEATURE_LPSS
#define CFG_ENABLE_LPASS_SUPPORT "gEnableLpassSupport"
#define CFG_ENABLE_LPASS_SUPPORT_DEFAULT ( 0 )
#define CFG_ENABLE_LPASS_SUPPORT_MIN ( 0 )
#define CFG_ENABLE_LPASS_SUPPORT_MAX ( 1 )
#endif
/*
* NaN feature support configuration
* gEnableNanSupport = 0 means NaN is not supported
* gEnableNanSupport = 1 means NaN is supported
*/
#ifdef WLAN_FEATURE_NAN
#define CFG_ENABLE_NAN_SUPPORT "gEnableNanSupport"
#define CFG_ENABLE_NAN_SUPPORT_DEFAULT (0)
#define CFG_ENABLE_NAN_SUPPORT_MIN (0)
#define CFG_ENABLE_NAN_SUPPORT_MAX (1)
#endif
/*
* <ini>
* gEnableAcTxqOptimize
* @Min: 0
* @Max: 0x13
* @Default: 0
*
* This ini is used to enable one AC tx queue optimize
*
* Usage: Internal/External
*
* bits 0-1: WMM_AC_BE 0
* WMM_AC_BK 1
* WMM_AC_VI 2
* WMM_AC_VO 3
* bits 2-3: reserved
* bits 4: Enalbe
* bits 5-7: reserved
*
* </ini>
*/
#define CFG_ENABLE_AC_TXQ_OPTIMIZE "gEnableAcTxqOptimize"
#define CFG_ENABLE_AC_TXQ_OPTIMIZE_MIN ( 0x0 )
#define CFG_ENABLE_AC_TXQ_OPTIMIZE_MAX ( 0x13 )
#define CFG_ENABLE_AC_TXQ_OPTIMIZE_DEFAULT ( 0x0 )
#define CFG_ENABLE_SELF_RECOVERY "gEnableSelfRecovery"
#define CFG_ENABLE_SELF_RECOVERY_MIN ( 0 )
#define CFG_ENABLE_SELF_RECOVERY_MAX ( 1 )
#define CFG_ENABLE_SELF_RECOVERY_DEFAULT ( 0 )
#define CFG_ENABLE_SAP_SUSPEND "gEnableSapSuspend"
#define CFG_ENABLE_SAP_SUSPEND_MIN ( 0 )
#define CFG_ENABLE_SAP_SUSPEND_MAX ( 1 )
#define CFG_ENABLE_SAP_SUSPEND_DEFAULT ( 1 )
#ifdef WLAN_FEATURE_EXTWOW_SUPPORT
#define CFG_EXTWOW_GO_TO_SUSPEND "gExtWoWgotoSuspend"
#define CFG_EXTWOW_GO_TO_SUSPEND_MIN ( 0 )
#define CFG_EXTWOW_GO_TO_SUSPEND_MAX ( 1 )
#define CFG_EXTWOW_GO_TO_SUSPEND_DEFAULT ( 1 )
#define CFG_EXTWOW_APP1_WAKE_PIN_NUMBER "gExtWowApp1WakeupPinNumber"
#define CFG_EXTWOW_APP1_WAKE_PIN_NUMBER_MIN ( 0 )
#define CFG_EXTWOW_APP1_WAKE_PIN_NUMBER_MAX ( 255 )
#define CFG_EXTWOW_APP1_WAKE_PIN_NUMBER_DEFAULT ( 12 )
#define CFG_EXTWOW_APP2_WAKE_PIN_NUMBER "gExtWowApp2WakeupPinNumber"
#define CFG_EXTWOW_APP2_WAKE_PIN_NUMBER_MIN ( 0 )
#define CFG_EXTWOW_APP2_WAKE_PIN_NUMBER_MAX ( 255 )
#define CFG_EXTWOW_APP2_WAKE_PIN_NUMBER_DEFAULT ( 16 )
#define CFG_EXTWOW_KA_INIT_PING_INTERVAL "gExtWoWApp2KAInitPingInterval"
#define CFG_EXTWOW_KA_INIT_PING_INTERVAL_MIN ( 0 )
#define CFG_EXTWOW_KA_INIT_PING_INTERVAL_MAX ( 0xffffffff )
#define CFG_EXTWOW_KA_INIT_PING_INTERVAL_DEFAULT ( 240 )
#define CFG_EXTWOW_KA_MIN_PING_INTERVAL "gExtWoWApp2KAMinPingInterval"
#define CFG_EXTWOW_KA_MIN_PING_INTERVAL_MIN ( 0 )
#define CFG_EXTWOW_KA_MIN_PING_INTERVAL_MAX ( 0xffffffff )
#define CFG_EXTWOW_KA_MIN_PING_INTERVAL_DEFAULT ( 240 )
#define CFG_EXTWOW_KA_MAX_PING_INTERVAL "gExtWoWApp2KAMaxPingInterval"
#define CFG_EXTWOW_KA_MAX_PING_INTERVAL_MIN ( 0 )
#define CFG_EXTWOW_KA_MAX_PING_INTERVAL_MAX ( 0xffffffff )
#define CFG_EXTWOW_KA_MAX_PING_INTERVAL_DEFAULT ( 1280 )
#define CFG_EXTWOW_KA_INC_PING_INTERVAL "gExtWoWApp2KAIncPingInterval"
#define CFG_EXTWOW_KA_INC_PING_INTERVAL_MIN ( 0 )
#define CFG_EXTWOW_KA_INC_PING_INTERVAL_MAX ( 0xffffffff )
#define CFG_EXTWOW_KA_INC_PING_INTERVAL_DEFAULT ( 4 )
#define CFG_EXTWOW_TCP_SRC_PORT "gExtWoWApp2TcpSrcPort"
#define CFG_EXTWOW_TCP_SRC_PORT_MIN ( 0 )
#define CFG_EXTWOW_TCP_SRC_PORT_MAX ( 65535 )
#define CFG_EXTWOW_TCP_SRC_PORT_DEFAULT ( 5000 )
#define CFG_EXTWOW_TCP_DST_PORT "gExtWoWApp2TcpDstPort"
#define CFG_EXTWOW_TCP_DST_PORT_MIN ( 0 )
#define CFG_EXTWOW_TCP_DST_PORT_MAX ( 65535 )
#define CFG_EXTWOW_TCP_DST_PORT_DEFAULT ( 5001 )
#define CFG_EXTWOW_TCP_TX_TIMEOUT "gExtWoWApp2TcpTxTimeout"
#define CFG_EXTWOW_TCP_TX_TIMEOUT_MIN ( 0 )
#define CFG_EXTWOW_TCP_TX_TIMEOUT_MAX ( 0xffffffff )
#define CFG_EXTWOW_TCP_TX_TIMEOUT_DEFAULT ( 200 )
#define CFG_EXTWOW_TCP_RX_TIMEOUT "gExtWoWApp2TcpRxTimeout"
#define CFG_EXTWOW_TCP_RX_TIMEOUT_MIN ( 0 )
#define CFG_EXTWOW_TCP_RX_TIMEOUT_MAX ( 0xffffffff )
#define CFG_EXTWOW_TCP_RX_TIMEOUT_DEFAULT ( 200 )
#endif
#define CFG_ENABLE_DEAUTH_TO_DISASSOC_MAP_NAME "gEnableDeauthToDisassocMap"
#define CFG_ENABLE_DEAUTH_TO_DISASSOC_MAP_MIN ( 0 )
#define CFG_ENABLE_DEAUTH_TO_DISASSOC_MAP_MAX ( 1 )
#define CFG_ENABLE_DEAUTH_TO_DISASSOC_MAP_DEFAULT ( 0 )
#ifdef DHCP_SERVER_OFFLOAD
/*
* Enable/Disable DHCP Server Offload
* Default: Disable
*/
#define CFG_DHCP_SERVER_OFFLOAD_SUPPORT_NAME "gDHCPServerOffloadEnable"
#define CFG_DHCP_SERVER_OFFLOAD_SUPPORT_MIN ( 0 )
#define CFG_DHCP_SERVER_OFFLOAD_SUPPORT_MAX ( 1 )
#define CFG_DHCP_SERVER_OFFLOAD_SUPPORT_DEFAULT ( CFG_DHCP_SERVER_OFFLOAD_SUPPORT_MIN )
/* Max number of DHCP clients to be supported */
#define CFG_DHCP_SERVER_OFFLOAD_NUM_CLIENT_NAME "gDHCPMaxNumClients"
#define CFG_DHCP_SERVER_OFFLOAD_NUM_CLIENT_MIN ( 1 )
#define CFG_DHCP_SERVER_OFFLOAD_NUM_CLIENT_MAX ( 10 )
#define CFG_DHCP_SERVER_OFFLOAD_NUM_CLIENT_DEFAULT ( CFG_DHCP_SERVER_OFFLOAD_NUM_CLIENT_MAX )
/* Starting address assigned to DHCP client */
#define CFG_DHCP_SERVER_OFFLOAD_CLIENT_IPBASE_NAME "gDHCPClientStartIP"
#define CFG_DHCP_SERVER_OFFLOAD_CLIENT_IPBASE_MIN ( 100 )
#define CFG_DHCP_SERVER_OFFLOAD_CLIENT_IPBASE_MAX ( 255 )
#define CFG_DHCP_SERVER_OFFLOAD_CLIENT_IPBASE_DEFAULT ( CFG_DHCP_SERVER_OFFLOAD_CLIENT_IPBASE_MIN )
/* DHCP Server IP*/
#define CFG_DHCP_SERVER_IP_NAME "gDHCPServerIP"
#define CFG_DHCP_SERVER_IP_DEFAULT ""
#endif /* DHCP_SERVER_OFFLOAD */
/*
* If last disconnection was due to HB failure and we reconnect
* to same AP next time, send Deauth before starting connection
*/
#define CFG_ENABLE_DEAUTH_BEFORE_CONNECTION "gSendDeauthBeforeCon"
#define CFG_ENABLE_DEAUTH_BEFORE_CONNECTION_MIN (0)
#define CFG_ENABLE_DEAUTH_BEFORE_CONNECTION_MAX (1)
#define CFG_ENABLE_DEAUTH_BEFORE_CONNECTION_DEFAULT (0)
#define CFG_ENABLE_MAC_ADDR_SPOOFING "gEnableMacAddrSpoof"
#define CFG_ENABLE_MAC_ADDR_SPOOFING_MIN (0)
#define CFG_ENABLE_MAC_ADDR_SPOOFING_MAX (1)
#define CFG_ENABLE_MAC_ADDR_SPOOFING_DEFAULT (1)
#define CFG_SAP_DOT11MC "gSapDot11mc"
#define CFG_SAP_DOT11MC_MIN (0)
#define CFG_SAP_DOT11MC_MAX (1)
#define CFG_SAP_DOT11MC_DEFAULT (0)
/*
* Custom concurrency rule1:
* If SAP comes up first and STA comes up later then SAP
* needs to follow STA's channel.
*/
#define CFG_ENABLE_CUSTOM_CONC_RULE1_NAME "gEnableCustomConcRule1"
#define CFG_ENABLE_CUSTOM_CONC_RULE1_NAME_MIN (0)
#define CFG_ENABLE_CUSTOM_CONC_RULE1_NAME_MAX (1)
#define CFG_ENABLE_CUSTOM_CONC_RULE1_NAME_DEFAULT (0)
#define CFG_ENABLE_CUSTOM_CONC_RULE2_NAME "gEnableCustomConcRule2"
#define CFG_ENABLE_CUSTOM_CONC_RULE2_NAME_MIN (0)
#define CFG_ENABLE_CUSTOM_CONC_RULE2_NAME_MAX (1)
#define CFG_ENABLE_CUSTOM_CONC_RULE2_NAME_DEFAULT (0)
#define CFG_ENABLE_STA_CONNECTION_IN_5GHZ "gEnableStaConnectionIn5Ghz"
#define CFG_ENABLE_STA_CONNECTION_IN_5GHZ_MIN (0)
#define CFG_ENABLE_STA_CONNECTION_IN_5GHZ_MAX (1)
#define CFG_ENABLE_STA_CONNECTION_IN_5GHZ_DEFAULT (1)
#ifdef MDNS_OFFLOAD
/*
* Enable/Disable multicast DNS Offload
* 0x0 - Disable mDNS (Default)
* 0x1 - Enable mDNS
*/
#define CFG_MDNS_OFFLOAD_SUPPORT_NAME "gMDNSOffloadEnable"
#define CFG_MDNS_OFFLOAD_SUPPORT_MIN ( 0 )
#define CFG_MDNS_OFFLOAD_SUPPORT_MAX ( 1 )
#define CFG_MDNS_OFFLOAD_SUPPORT_ENABLE ( 1 )
#define CFG_MDNS_OFFLOAD_SUPPORT_DEFAULT ( CFG_MDNS_OFFLOAD_SUPPORT_MIN )
/* Set FQDN string for mDNS */
#define CFG_MDNS_FQDN_NAME "gMDNSFqdn"
#define CFG_MDNS_FQDN_DEFAULT ""
/* Set UFQDN string for mDNS */
#define CFG_MDNS_UNIQUE_FQDN_NAME "gMDNSUniqueFqdn"
#define CFG_MDNS_UNIQUE_FQDN_DEFAULT ""
/* Set the response Type A to mDNS queries */
#define CFG_MDNS_RESPONSE_TYPE_A_NAME "gMDNSResponseTypeA"
#define CFG_MDNS_RESPONSE_TYPE_A_DEFAULT ""
#define CFG_MDNS_RESPONSE_TYPE_A_IPV4_NAME "gMDNSResponseTypeAIpv4Addr"
#define CFG_MDNS_RESPONSE_TYPE_A_IPV4_MIN ( 1 )
#define CFG_MDNS_RESPONSE_TYPE_A_IPV4_MAX ( 0xffffffff )
#define CFG_MDNS_RESPONSE_TYPE_A_IPV4_DEFAULT ( 0xffffffff )
/* Set the response Type TXT to mDNS queries */
#define CFG_MDNS_RESPONSE_TYPE_TXT_NAME "gMDNSResponseTypeTXT"
#define CFG_MDNS_RESPONSE_TYPE_TXT_DEFAULT ""
#define CFG_MDNS_RESPONSE_TYPE_TXT_CNT_NAME "gMDNSResponseTypeTXTContent"
#define CFG_MDNS_RESPONSE_TYPE_TXT_CNT_DEFAULT ""
/* Set the response Type PTR to mDNS queries */
#define CFG_MDNS_RESPONSE_TYPE_PTR_NAME "gMDNSResponseTypePTR"
#define CFG_MDNS_RESPONSE_TYPE_PTR_DEFAULT ""
#define CFG_MDNS_RESPONSE_TYPE_PTR_DN_NAME "gMDNSResponseTypePTRDomainName"
#define CFG_MDNS_RESPONSE_TYPE_PTR_DN_DEFAULT ""
/* Set the response Type SRV to mDNS queries */
#define CFG_MDNS_RESPONSE_TYPE_SRV_NAME "gMDNSResponseTypeSRV"
#define CFG_MDNS_RESPONSE_TYPE_SRV_DEFAULT ""
/* Set the response Type SRV Priority to mDNS queries */
#define CFG_MDNS_RESPONSE_TYPE_SRV_PRIORITY_NAME "gMDNSResponseTypeSRVPriority"
#define CFG_MDNS_RESPONSE_TYPE_SRV_PRIORITY_MIN ( 0 )
#define CFG_MDNS_RESPONSE_TYPE_SRV_PRIORITY_MAX ( 65535 )
#define CFG_MDNS_RESPONSE_TYPE_SRV_PRIORITY_DEFAULT ( CFG_MDNS_RESPONSE_TYPE_SRV_PRIORITY_MIN )
/* Set the response Type SRV Weight to mDNS queries */
#define CFG_MDNS_RESPONSE_TYPE_SRV_WEIGHT_NAME "gMDNSResponseTypeSRVWeight"
#define CFG_MDNS_RESPONSE_TYPE_SRV_WEIGHT_MIN ( 0 )
#define CFG_MDNS_RESPONSE_TYPE_SRV_WEIGHT_MAX ( 65525 )
#define CFG_MDNS_RESPONSE_TYPE_SRV_WEIGHT_DEFAULT ( CFG_MDNS_RESPONSE_TYPE_SRV_WEIGHT_MIN )
/* Set the response Type SRV Port to mDNS queries */
#define CFG_MDNS_RESPONSE_TYPE_SRV_PORT_NAME "gMDNSResponseTypeSRVPort"
#define CFG_MDNS_RESPONSE_TYPE_SRV_PORT_MIN ( 0 )
#define CFG_MDNS_RESPONSE_TYPE_SRV_PORT_MAX ( 65525 )
#define CFG_MDNS_RESPONSE_TYPE_SRV_PORT_DEFAULT ( 80 )
/* Set the response Type SRV Target to mDNS queries */
#define CFG_MDNS_RESPONSE_TYPE_SRV_TGT_NAME "gMDNSResponseTypeSRVTarget"
#define CFG_MDNS_RESPONSE_TYPE_SRV_TGT_DEFAULT ""
#endif /* MDNS_OFFLOAD */
#ifdef SAP_AUTH_OFFLOAD
/* Enable/Disable SAP Authentication offload
* Default: Disable
*/
#define CFG_ENABLE_SAP_AUTH_OFL_NAME "gEnableSAPAuthOffload"
#define CFG_ENABLE_SAP_AUTH_OFL_MIN ( 0 )
#define CFG_ENABLE_SAP_AUTH_OFL_MAX ( 1 )
#define CFG_ENABLE_SAP_AUTH_OFL_DEFAULT ( 0 )
/* SAP Authentication offload Security Type
* 0: None Security
* 1: WPA2-PSK CCMP
*/
#define CFG_SAP_AUTH_OFL_SECURITY_TYPE_NAME "gSAPAuthOffloadSec"
#define CFG_SAP_AUTH_OFL_SECURITY_TYPE_MIN ( 0 )
#define CFG_SAP_AUTH_OFL_SECURITY_TYPE_MAX ( 1 )
#define CFG_SAP_AUTH_OFL_SECURITY_TYPE_DEFAULT ( 0 )
/* SAP Authentication offload Security Key */
#define CFG_SAP_AUTH_OFL_KEY_NAME "gSAPAuthOffloadKey"
#define CFG_SAP_AUTH_OFL_KEY_DEFAULT ""
#endif /* SAP_AUTH_OFFLOAD */
enum dot11p_mode {
WLAN_HDD_11P_DISABLED = 0,
WLAN_HDD_11P_STANDALONE,
WLAN_HDD_11P_CONCURRENT,
};
#define CFG_DOT11P_MODE_NAME "gDot11PMode"
#define CFG_DOT11P_MODE_DEFAULT ( WLAN_HDD_11P_DISABLED )
#define CFG_DOT11P_MODE_MIN ( WLAN_HDD_11P_DISABLED )
#define CFG_DOT11P_MODE_MAX ( WLAN_HDD_11P_CONCURRENT )
#define CFG_P2P_LISTEN_DEFER_INTERVAL_NAME "gP2PListenDeferInterval"
#define CFG_P2P_LISTEN_DEFER_INTERVAL_MIN (100)
#define CFG_P2P_LISTEN_DEFER_INTERVAL_MAX (200)
#define CFG_P2P_LISTEN_DEFER_INTERVAL_DEFAULT (100)
#define CFG_STA_MIRACAST_MCC_REST_TIME_VAL "gStaMiracastMccRestTimeVal"
#define CFG_STA_MIRACAST_MCC_REST_TIME_VAL_MIN (100)
#define CFG_STA_MIRACAST_MCC_REST_TIME_VAL_MAX (500)
#define CFG_STA_MIRACAST_MCC_REST_TIME_VAL_DEFAULT (400)
#ifdef FEATURE_AP_MCC_CH_AVOIDANCE
#define CFG_SAP_MCC_CHANNEL_AVOIDANCE_NAME "gSapChannelAvoidance"
#define CFG_SAP_MCC_CHANNEL_AVOIDANCE_MIN ( 0 )
#define CFG_SAP_MCC_CHANNEL_AVOIDANCE_MAX ( 1 )
#define CFG_SAP_MCC_CHANNEL_AVOIDANCE_DEFAULT ( 0 )
#endif /* FEATURE_AP_MCC_CH_AVOIDANCE */
#define CFG_SAP_P2P_11AC_OVERRIDE_NAME "gAP11ACOverride"
#define CFG_SAP_P2P_11AC_OVERRIDE_MIN (0)
#define CFG_SAP_P2P_11AC_OVERRIDE_MAX (1)
#ifdef MDM_SAP_11AC_NO_OVERRIDE
#define CFG_SAP_P2P_11AC_OVERRIDE_DEFAULT (0)
#else
#define CFG_SAP_P2P_11AC_OVERRIDE_DEFAULT (1)
#endif
#define CFG_ENABLE_NON_DFS_CHAN_ON_RADAR "gPreferNonDfsChanOnRadar"
#define CFG_ENABLE_NON_DFS_CHAN_ON_RADAR_MIN (0)
#define CFG_ENABLE_NON_DFS_CHAN_ON_RADAR_MAX (1)
#define CFG_ENABLE_NON_DFS_CHAN_ON_RADAR_DEFAULT (0)
/**
* For P2P
* gBTIntervalPageP2P/gWLIntervalPageP2P intervals length (in ms) during
* WLAN P2P (single vdev) + BT Paging, min 20ms, max 200ms.
* Customer could change these parameters' value in qcom_cfg.ini file to improve
* P2P throughput when BT doing Page. Example as:
* gBTIntervalPageP2P=30
* gWLIntervalPageP2P=120
*/
#define CFG_BTC_BT_INTERVAL_PAGE_P2P "gBTIntervalPageP2P"
#define CFG_BTC_BT_INTERVAL_PAGE_P2P_MIN (20)
#define CFG_BTC_BT_INTERVAL_PAGE_P2P_MAX (200)
#define CFG_BTC_BT_INTERVAL_PAGE_P2P_DEFAULT (30)
#define CFG_BTC_WLAN_INTERVAL_PAGE_P2P "gWLIntervalPageP2P"
#define CFG_BTC_WLAN_INTERVAL_PAGE_P2P_MIN (20)
#define CFG_BTC_WLAN_INTERVAL_PAGE_P2P_MAX (200)
#define CFG_BTC_WLAN_INTERVAL_PAGE_P2P_DEFAULT (30)
/**
* For STA
* gBTIntervalPageSTA/gWLIntervalPageSTA intervals length (in ms) during
* WLAN STA (single vdev) + BT Paging, min 20ms, max 200ms.
* Customer could change these parameters' value in qcom_cfg.ini file to improve
* STA throughput when BT doing Page. Example as:
* gBTIntervalPageSTA=30
* gWLIntervalPageSTA=120
*/
#define CFG_BTC_BT_INTERVAL_PAGE_STA "gBTIntervalPageSTA"
#define CFG_BTC_BT_INTERVAL_PAGE_STA_MIN (20)
#define CFG_BTC_BT_INTERVAL_PAGE_STA_MAX (200)
#define CFG_BTC_BT_INTERVAL_PAGE_STA_DEFAULT (30)
#define CFG_BTC_WLAN_INTERVAL_PAGE_STA "gWLIntervalPageSTA"
#define CFG_BTC_WLAN_INTERVAL_PAGE_STA_MIN (20)
#define CFG_BTC_WLAN_INTERVAL_PAGE_STA_MAX (200)
#define CFG_BTC_WLAN_INTERVAL_PAGE_STA_DEFAULT (30)
/**
* For SAP
* gBTIntervalPageSAP/gWLIntervalPageSAP intervals length (in ms) during
* WLAN SAP (single vdev) + BT Paging, min 20ms, max 200ms.
* Customer could change these parameters' value in qcom_cfg.ini file to improve
* SAP throughput when BT doing Page. Example as:
* gBTIntervalPageSAP=30
* gWLIntervalPageSAP=120
*/
#define CFG_BTC_BT_INTERVAL_PAGE_SAP "gBTIntervalPageSAP"
#define CFG_BTC_BT_INTERVAL_PAGE_SAP_MIN (20)
#define CFG_BTC_BT_INTERVAL_PAGE_SAP_MAX (200)
#define CFG_BTC_BT_INTERVAL_PAGE_SAP_DEFAULT (30)
#define CFG_BTC_WLAN_INTERVAL_PAGE_SAP "gWLIntervalPageSAP"
#define CFG_BTC_WLAN_INTERVAL_PAGE_SAP_MIN (20)
#define CFG_BTC_WLAN_INTERVAL_PAGE_SAP_MAX (200)
#define CFG_BTC_WLAN_INTERVAL_PAGE_SAP_DEFAULT (30)
/**
* Config to set WLAN connection params
* 0: coex preference
* 1: reserved
*/
#define CFG_BTC_WLAN_CONN_PARAM0 "gWlanConnVal0"
#define CFG_BTC_WLAN_CONN_PARAM0_MIN (0)
#define CFG_BTC_WLAN_CONN_PARAM0_MAX (0xffffffff)
#define CFG_BTC_WLAN_CONN_PARAM0_DEFAULT (0)
#define CFG_BTC_WLAN_CONN_PARAM1 "gWlanConnVal1"
#define CFG_BTC_WLAN_CONN_PARAM1_MIN (0)
#define CFG_BTC_WLAN_CONN_PARAM1_MAX (0xffffffff)
#define CFG_BTC_WLAN_CONN_PARAM1_DEFAULT (0)
/**
* Config to set BT WLAN co-existing
* 0: enable BT WLAN co-existing
* 1: dynamically disable BT WLAN co-existing
*/
#define CFG_BTC_DYNAMIC_WLAN_BT_COEX "gDynamicBTCOEX"
#define CFG_BTC_DYNAMIC_WLAN_BT_COEX_MIN (0)
#define CFG_BTC_DYNAMIC_WLAN_BT_COEX_MAX (1)
#define CFG_BTC_DYNAMIC_WLAN_BT_COEX_DEFAULT (0)
/**
* Config to set antenna isolation
* range: 0 - 100 db
* default: 0 db
*/
#define CFG_BTC_ANTENNA_ISOLATION "gAntennaIsolation"
#define CFG_BTC_ANTENNA_ISOLATION_MIN (0)
#define CFG_BTC_ANTENNA_ISOLATION_MAX (100)
#define CFG_BTC_ANTENNA_ISOLATION_DEFAULT (0)
/**
* For P2P + STA + BT Paging
* gBTIntervalPageP2PSTA/gWLIntervalPageP2PSTA intervals length (in ms) during
* intervals length (in ms) during WLAN P2P + STA (multi vdev) + BT Paging,
* min 20ms, max 200ms
* Customer could change these parameters' value to improve P2P throughput
* during BT Page
* gBTIntervalPageP2PSTA=80
* gWLIntervalPageP2PSTA=30
*/
#define CFG_BTC_BT_INTERVAL_PAGE_P2P_STA "gBTIntervalPageP2PSTA"
#define CFG_BTC_BT_INTERVAL_PAGE_P2P_STA_MIN (20)
#define CFG_BTC_BT_INTERVAL_PAGE_P2P_STA_MAX (200)
#define CFG_BTC_BT_INTERVAL_PAGE_P2P_STA_DEFAULT (80)
#define CFG_BTC_WLAN_INTERVAL_PAGE_P2P_STA "gWLIntervalPageP2PSTA"
#define CFG_BTC_WLAN_INTERVAL_PAGE_P2P_STA_MIN (20)
#define CFG_BTC_WLAN_INTERVAL_PAGE_P2P_STA_MAX (200)
#define CFG_BTC_WLAN_INTERVAL_PAGE_P2P_STA_DEFAULT (30)
/**
FG_BTC_BT_INTERVAL_PAGE_P2P_STA_DEFAULT
* intervals length (in ms) during WLAN STA (single vdev) + BT Inquiry,
* min 20ms, max 200ms
* Customer could change these parameters' value to improve STA throughput
* during BT Inquiry
* gBTIntervalInquirySTA=120
* gWLIntervalInquirySTA=30
*/
#define CFG_BTC_BT_INTERVAL_INQ_STA "gBTIntervalInquirySTA"
#define CFG_BTC_BT_INTERVAL_INQ_STA_MIN (20)
#define CFG_BTC_BT_INTERVAL_INQ_STA_MAX (200)
#define CFG_BTC_BT_INTERVAL_INQ_STA_DEFAULT (120)
#define CFG_BTC_WLAN_INTERVAL_INQ_STA "gWLIntervalInquirySTA"
#define CFG_BTC_WLAN_INTERVAL_INQ_STA_MIN (20)
#define CFG_BTC_WLAN_INTERVAL_INQ_STA_MAX (200)
#define CFG_BTC_WLAN_INTERVAL_INQ_STA_DEFAULT (30)
/**
* For SAP + BT Inquiry
* intervals length (in ms) during WLAN SAP (single vdev) + BT Inquiry,
* min 20ms, max 200ms
* Customer could change these parameters' value to improve SAP throughput
* during BT Inquiry
* gBTIntervalInquirySAP=120
* gWLIntervalInquirySAP=30
*/
#define CFG_BTC_BT_INTERVAL_INQ_SAP "gBTIntervalInquirySAP"
#define CFG_BTC_BT_INTERVAL_INQ_SAP_MIN (20)
#define CFG_BTC_BT_INTERVAL_INQ_SAP_MAX (200)
#define CFG_BTC_BT_INTERVAL_INQ_SAP_DEFAULT (120)
#define CFG_BTC_WLAN_INTERVAL_INQ_SAP "gWLIntervalInquirySAP"
#define CFG_BTC_WLAN_INTERVAL_INQ_SAP_MIN (20)
#define CFG_BTC_WLAN_INTERVAL_INQ_SAP_MAX (200)
#define CFG_BTC_WLAN_INTERVAL_INQ_SAP_DEFAULT (30)
/**
* For P2P + BT Inquiry
* intervals length (in ms) during WLAN P2P (single vdev) + BT Inquiry,
* min 20ms, max 200ms
* Customer could change these parameters' value to improve P2P throughput
* during BT Inquiry
* gBTIntervalInquiryP2P=120
* gWLIntervalInquiryP2P=30
*/
#define CFG_BTC_BT_INTERVAL_INQ_P2P "gBTIntervalInquiryP2P"
#define CFG_BTC_BT_INTERVAL_INQ_P2P_MIN (20)
#define CFG_BTC_BT_INTERVAL_INQ_P2P_MAX (200)
#define CFG_BTC_BT_INTERVAL_INQ_P2P_DEFAULT (120)
#define CFG_BTC_WLAN_INTERVAL_INQ_P2P "gWLIntervalInquiryP2P"
#define CFG_BTC_WLAN_INTERVAL_INQ_P2P_MIN (20)
#define CFG_BTC_WLAN_INTERVAL_INQ_P2P_MAX (200)
#define CFG_BTC_WLAN_INTERVAL_INQ_P2P_DEFAULT (30)
/**
* For P2P + STA + BT Inquiry
* intervals length (in ms) during WLAN P2P + STA (multi vdev) + BT Inquiry,
* min 20ms, max 200ms
* Customer could change these parameters' value to improve P2P throughput
* during BT Inquiry
* gBTIntervalInquiryP2PSTA=80
* gWLIntervalInquiryP2PSTA=30
*/
#define CFG_BTC_BT_INTERVAL_INQ_P2P_STA "gBTIntervalInquiryP2PSTA"
#define CFG_BTC_BT_INTERVAL_INQ_P2P_STA_MIN (20)
#define CFG_BTC_BT_INTERVAL_INQ_P2P_STA_MAX (200)
#define CFG_BTC_BT_INTERVAL_INQ_P2P_STA_DEFAULT (80)
#define CFG_BTC_WLAN_INTERVAL_INQ_P2P_STA "gWLIntervalInquiryP2PSTA"
#define CFG_BTC_WLAN_INTERVAL_INQ_P2P_STA_MIN (20)
#define CFG_BTC_WLAN_INTERVAL_INQ_P2P_STA_MAX (200)
#define CFG_BTC_WLAN_INTERVAL_INQ_P2P_STA_DEFAULT (30)
/**
* Config to set WLAN/BT coex tx power
* range: 0 - 63
* default: 63
*/
#define CFG_BTC_WLAN_COEX_TX_POWER "gWLCoexTxPower"
#define CFG_BTC_WLAN_COEX_TX_POWER_MIN (0)
#define CFG_BTC_WLAN_COEX_TX_POWER_MAX (63)
#define CFG_BTC_WLAN_COEX_TX_POWER_DEFAULT (63)
/* Parameters for roaming scans performed at high RSSI */
/* Maximum number of scans after RSSI change */
#define CFG_ROAM_SCAN_HI_RSSI_MAXCOUNT_NAME "gRoamScanHiRssiMaxCount"
#define CFG_ROAM_SCAN_HI_RSSI_MAXCOUNT_MIN (0)
#define CFG_ROAM_SCAN_HI_RSSI_MAXCOUNT_MAX (10)
#define CFG_ROAM_SCAN_HI_RSSI_MAXCOUNT_DEFAULT (3)
/* Change in RSSI at which scan is triggered */
#define CFG_ROAM_SCAN_HI_RSSI_DELTA_NAME "gRoamScanHiRssiDelta"
#define CFG_ROAM_SCAN_HI_RSSI_DELTA_MIN (0)
#define CFG_ROAM_SCAN_HI_RSSI_DELTA_MAX (16)
#define CFG_ROAM_SCAN_HI_RSSI_DELTA_DEFAULT (10)
/* Delay between consecutive scans in milliseconds */
#define CFG_ROAM_SCAN_HI_RSSI_DELAY_NAME "gRoamScanHiRssiDelay"
#define CFG_ROAM_SCAN_HI_RSSI_DELAY_MIN (5000)
#define CFG_ROAM_SCAN_HI_RSSI_DELAY_MAX (0x7fffffff)
#define CFG_ROAM_SCAN_HI_RSSI_DELAY_DEFAULT (15000)
/* Upper bound after which scan will not be performed */
#define CFG_ROAM_SCAN_HI_RSSI_UB_NAME "gRoamScanHiRssiUpperBound"
#define CFG_ROAM_SCAN_HI_RSSI_UB_MIN (-66)
#define CFG_ROAM_SCAN_HI_RSSI_UB_MAX (0)
#define CFG_ROAM_SCAN_HI_RSSI_UB_DEFAULT (-30)
/* Option to report rssi in cfg80211_inform_bss_frame()
* 0 = use rssi value based on noise floor = -96 dBm
* 1 = use rssi value based on actual noise floor in hardware
*/
#define CFG_INFORM_BSS_RSSI_RAW_NAME "gInformBssRssiRaw"
#define CFG_INFORM_BSS_RSSI_RAW_MIN (0)
#define CFG_INFORM_BSS_RSSI_RAW_MAX (1)
#define CFG_INFORM_BSS_RSSI_RAW_DEFAULT (1)
/* GPIO pin to toogle when capture tsf */
#define CFG_SET_TSF_GPIO_PIN_NAME "gtsf_gpio_pin"
#define CFG_SET_TSF_GPIO_PIN_MIN (0)
#define CFG_SET_TSF_GPIO_PIN_MAX (254)
#define TSF_GPIO_PIN_INVALID (255)
#define CFG_SET_TSF_GPIO_PIN_DEFAULT (TSF_GPIO_PIN_INVALID)
#ifdef WLAN_FEATURE_TSF_PLUS
/* PTP options */
#define CFG_SET_TSF_PTP_OPT_NAME "gtsf_ptp_options"
#define CFG_SET_TSF_PTP_OPT_MIN (0)
#define CFG_SET_TSF_PTP_OPT_MAX (0xff)
#define CFG_SET_TSF_PTP_OPT_RX (0x1)
#define CFG_SET_TSF_PTP_OPT_TX (0x2)
#define CFG_SET_TSF_PTP_OPT_RAW (0x4)
#define CFG_SET_TSF_DBG_FS (0x8)
#define CFG_SET_TSF_PTP_OPT_DEFAULT (0xf)
#endif
#define CFG_MULTICAST_HOST_FW_MSGS "gMulticastHostFwMsgs"
#define CFG_MULTICAST_HOST_FW_MSGS_MIN (0)
#define CFG_MULTICAST_HOST_FW_MSGS_MAX (1)
#define CFG_MULTICAST_HOST_FW_MSGS_DEFAULT (1)
#define CFG_TX_CHAIN_MASK_CCK "gCckChainMaskEnable"
#define CFG_TX_CHAIN_MASK_CCK_MIN (0)
#define CFG_TX_CHAIN_MASK_CCK_MAX (1)
#define CFG_TX_CHAIN_MASK_CCK_DEFAULT (0)
#define CFG_TX_CHAIN_MASK_1SS "gTxChainMask1ss"
#define CFG_TX_CHAIN_MASK_1SS_MIN (0)
#define CFG_TX_CHAIN_MASK_1SS_MAX (3)
#define CFG_TX_CHAIN_MASK_1SS_DEFAULT (1)
#define CFG_TX_SCH_DELAY "gTxSchDelay"
#define CFG_TX_SCH_DELAY_MIN (0)
#define CFG_TX_SCH_DELAY_MAX (1)
#define CFG_TX_SCH_DELAY_DEFAULT (1)
#define CFG_SELF_GEN_FRM_PWR "gSelfGenFrmPwr"
#define CFG_SELF_GEN_FRM_PWR_MIN (0)
#define CFG_SELF_GEN_FRM_PWR_MAX (0xffff)
#define CFG_SELF_GEN_FRM_PWR_DEFAULT (0)
/*
* gTxAggregationSize gives an option to configure Tx aggregation size
* in no of MPDUs. This can be useful in debugging throughput issues
*/
#define CFG_TX_AGGREGATION_SIZE "gTxAggregationSize"
#define CFG_TX_AGGREGATION_SIZE_MIN (0)
#define CFG_TX_AGGREGATION_SIZE_MAX (64)
#define CFG_TX_AGGREGATION_SIZE_DEFAULT (64)
/*
* gRxAggregationSize gives an option to configure Rx aggregation size
* in no of MPDUs. This can be useful in debugging throughput issues
*/
#define CFG_RX_AGGREGATION_SIZE "gRxAggregationSize"
#define CFG_RX_AGGREGATION_SIZE_MIN (1)
#define CFG_RX_AGGREGATION_SIZE_MAX (64)
#define CFG_RX_AGGREGATION_SIZE_DEFAULT (64)
/*
* fine timing measurement capability information
*
* <----- fine_time_meas_cap (in bits) ----->
*+----------+-----+-----+------+------+-------+-------+-----+-----+
*| 9-31 | 8 | 7 | 5 | 4 | 3 | 2 | 1 | 0 |
*+----------+-----+-----+------+------+-------+-------+-----+-----+
*| reserved | SAP | SAP |P2P-GO|P2P-GO|P2P-CLI|P2P-CLI| STA | STA |
*| |resp |init |resp |init |resp |init |resp |init |
*+----------+-----+-----+------+------+-------+-------+-----+-----+
*
* resp - responder role; init- initiator role
*
* CFG_FINE_TIME_MEAS_CAPABILITY_MAX computed based on the table
* +-----------------+-----------------+-----------+
* | Device Role | Initiator | Responder |
* +-----------------+-----------------+-----------+
* | Station | Y | N |
* | P2P-CLI | Y | Y |
* | P2P-GO | Y | Y |
* | SAP | N | Y |
* +-----------------+-----------------+-----------+
*/
#define CFG_FINE_TIME_MEAS_CAPABILITY "gfine_time_meas_cap"
#define CFG_FINE_TIME_MEAS_CAPABILITY_MIN (0x0000)
#define CFG_FINE_TIME_MEAS_CAPABILITY_MAX (0x00BD)
#define CFG_FINE_TIME_MEAS_CAPABILITY_DEFAULT (0x000D)
#ifdef FEATURE_WLAN_EXTSCAN
/*
* This ini is added to control the enabling of extscan feature outside of code
* To enable , gExtScanEnable=1 need to be declared in ini file.
* Otherwise, Extscan feature will remain disabled.
*/
#define CFG_EXTSCAN_ALLOWED_NAME "gExtScanEnable"
#define CFG_EXTSCAN_ALLOWED_MIN (0)
#define CFG_EXTSCAN_ALLOWED_MAX (1)
#define CFG_EXTSCAN_ALLOWED_DEF (0)
#define CFG_EXTSCAN_PASSIVE_MAX_CHANNEL_TIME_NAME "gExtScanPassiveMaxChannelTime"
#define CFG_EXTSCAN_PASSIVE_MAX_CHANNEL_TIME_MIN (0)
#define CFG_EXTSCAN_PASSIVE_MAX_CHANNEL_TIME_MAX (500)
#define CFG_EXTSCAN_PASSIVE_MAX_CHANNEL_TIME_DEFAULT (110)
#define CFG_EXTSCAN_PASSIVE_MIN_CHANNEL_TIME_NAME "gExtScanPassiveMinChannelTime"
#define CFG_EXTSCAN_PASSIVE_MIN_CHANNEL_TIME_MIN (0)
#define CFG_EXTSCAN_PASSIVE_MIN_CHANNEL_TIME_MAX (500)
#define CFG_EXTSCAN_PASSIVE_MIN_CHANNEL_TIME_DEFAULT (60)
#define CFG_EXTSCAN_ACTIVE_MAX_CHANNEL_TIME_NAME "gExtScanActiveMaxChannelTime"
#define CFG_EXTSCAN_ACTIVE_MAX_CHANNEL_TIME_MIN (0)
#define CFG_EXTSCAN_ACTIVE_MAX_CHANNEL_TIME_MAX (110)
#define CFG_EXTSCAN_ACTIVE_MAX_CHANNEL_TIME_DEFAULT (40)
#define CFG_EXTSCAN_ACTIVE_MIN_CHANNEL_TIME_NAME "gExtScanActiveMinChannelTime"
#define CFG_EXTSCAN_ACTIVE_MIN_CHANNEL_TIME_MIN (0)
#define CFG_EXTSCAN_ACTIVE_MIN_CHANNEL_TIME_MAX (110)
#define CFG_EXTSCAN_ACTIVE_MIN_CHANNEL_TIME_DEFAULT (20)
#endif
/* 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.
*/
#define CFG_ENABLE_GO_CTS2SELF_FOR_STA "gEnable_go_cts2self_for_sta"
#define CFG_ENABLE_GO_CTS2SELF_FOR_STA_DEFAULT (0)
#define CFG_ENABLE_GO_CTS2SELF_FOR_STA_MIN (0)
#define CFG_ENABLE_GO_CTS2SELF_FOR_STA_MAX (1)
/* client failure connection count*/
#define CFG_CONNECT_FAIL_COUNT_NAME "gconnect_fail_count"
#define CFG_CONNECT_FAIL_COUNT_MIN ( 0 )
#define CFG_CONNECT_FAIL_COUNT_MAX ( 10 )
#define CFG_CONNECT_FAIL_COUNT_DEFAULT ( 0 )
/* time during which the client's failure connection attempts are recorded */
#define CFG_CONNECT_FAIL_DURATION_NAME "gconnect_fail_duration"
#define CFG_CONNECT_FAIL_DURATION_MIN ( 1000 )
#define CFG_CONNECT_FAIL_DURATION_MAX ( 0xffffffff )
#define CFG_CONNECT_FAIL_DURATION_DEFAULT ( 60000 )
/* client are not permitted to connect to sap in this duration */
#define CFG_CONNECT_BLOCK_DURATION_NAME "gconnect_block_duration"
#define CFG_CONNECT_BLOCK_DURATION_MIN ( 1000 )
#define CFG_CONNECT_BLOCK_DURATION_MAX ( 0xffffffff )
#define CFG_CONNECT_BLOCK_DURATION_DEFAULT ( 60000 )
#ifdef WLAN_FEATURE_UDP_RESPONSE_OFFLOAD
/*
* Enable/Disable UDP response offload feature
* Default : Disable
*/
#define CFG_UDP_RESP_OFFLOAD_SUPPORT_NAME "gudp_resp_offload_support"
#define CFG_UDP_RESP_OFFLOAD_SUPPORT_MIN (0)
#define CFG_UDP_RESP_OFFLOAD_SUPPORT_MAX (1)
#define CFG_UDP_RESP_OFFLOAD_SUPPORT_DEFAULT (CFG_UDP_RESP_OFFLOAD_SUPPORT_MIN)
/* Dest port of specific UDP packet */
#define CFG_UDP_RESP_OFFLOAD_DEST_PORT_NAME "gudp_resp_offload_dest_port"
#define CFG_UDP_RESP_OFFLOAD_DEST_PORT_MIN (0)
#define CFG_UDP_RESP_OFFLOAD_DEST_PORT_MAX (65535)
#define CFG_UDP_RESP_OFFLOAD_DEST_PORT_DEFAULT (CFG_UDP_RESP_OFFLOAD_DEST_PORT_MAX)
/*
* Payload filter of specific UDP packet
* Firmware will use this filter to identify the specific UDP packet
*/
#define CFG_UDP_RESP_OFFLOAD_PAYLOAD_FILTER_NAME "gudp_resp_offload_payload_filter"
#define CFG_UDP_RESP_OFFLOAD_PAYLOAD_FILTER_DEFAULT ""
/*
* Payload of the response UDP
* The specific response UDP packet payload
*/
#define CFG_UDP_RESP_OFFLOAD_RESPONSE_PAYLOAD_NAME "gudp_resp_offload_response_payload"
#define CFG_UDP_RESP_OFFLOAD_RESPONSE_PAYLOAD_DEFAULT "status=off"
#endif
/*
* Debug configuration variable to inject firmware crash on
* consecutive management tx failure.
* Value set as 0 will disable the feature.
*/
#define CFG_DBG_MAX_MGMT_TX_FAILURE_COUNT_NAME "gmax_mgmt_tx_failure_count"
#define CFG_DBG_MAX_MGMT_TX_FAILURE_COUNT_MIN (0)
#define CFG_DBG_MAX_MGMT_TX_FAILURE_COUNT_MAX (500)
#define CFG_DBG_MAX_MGMT_TX_FAILURE_COUNT_DEFAULT (0)
/*
* This parameter will configure the first scan bucket
* threshold to the mentioned value and all the AP's which
* have RSSI under this threshold will fall under this
* bucket.
* This is a configuration item used to tweak and test the input
* for internal algorithm. It should not be modified externally.
*/
#define CFG_FIRST_SCAN_BUCKET_THRESHOLD_NAME "gfirst_scan_bucket_threshold"
#define CFG_FIRST_SCAN_BUCKET_THRESHOLD_MIN (-50)
#define CFG_FIRST_SCAN_BUCKET_THRESHOLD_MAX (-30)
#define CFG_FIRST_SCAN_BUCKET_THRESHOLD_DEFAULT (-30)
/*
* MIB Stats enable/disable
* This variable will turn off/on collection of mib stats in FW
*/
#define CFG_MIB_STATS_ENABLED_NAME "gdot11_mib_stats_enabled"
#define CFG_MIB_STATS_ENABLED_MIN (0)
#define CFG_MIB_STATS_ENABLED_MAX (1)
#define CFG_MIB_STATS_ENABLED_DEFAULT (0)
#ifdef WLAN_FEATURE_WOW_PULSE
/*
* Enable/Disable WOW PULSE feature
* Set the wakeup pulse which FW use to wake up HOST
* Default : Disable
*/
#define CFG_WOW_PULSE_SUPPORT_NAME "gwow_pulse_support"
#define CFG_WOW_PULSE_SUPPORT_MIN (0)
#define CFG_WOW_PULSE_SUPPORT_MAX (1)
#define CFG_WOW_PULSE_SUPPORT_DEFAULT (CFG_WOW_PULSE_SUPPORT_MIN)
/*
* GPIO PIN for Pulse
* Which PIN to send the Pulse
*/
#define CFG_WOW_PULSE_PIN_NAME "gwow_pulse_pin"
#define CFG_WOW_PULSE_PIN_MIN (CFG_SET_TSF_GPIO_PIN_MIN)
#define CFG_WOW_PULSE_PIN_MAX (CFG_SET_TSF_GPIO_PIN_MAX)
#define CFG_WOW_PULSE_PIN_DEFAULT (35)
/*
* Pulse interval low
* The interval of low level in the pulse
* The value which defined by customer should between 160 and 480
*/
#define CFG_WOW_PULSE_INTERVAL_LOW_NAME "gwow_pulse_interval_low"
#define CFG_WOW_PULSE_INTERVAL_LOW_MIN (160)
#define CFG_WOW_PULSE_INTERVAL_LOW_MAX (480)
#define CFG_WOW_PULSE_INTERVAL_LOW_DEFAULT (180)
/*
* Pulse interval high
* The interval of high level in the pulse
* The value which defined by customer should between 20 and 40
*/
#define CFG_WOW_PULSE_INTERVAL_HIGH_NAME "gwow_pulse_interval_high"
#define CFG_WOW_PULSE_INTERVAL_HIGH_MIN (20)
#define CFG_WOW_PULSE_INTERVAL_HIGH_MAX (40)
#define CFG_WOW_PULSE_INTERVAL_HIGH_DEFAULT (20)
#endif
/*
* Support to start sap in indoor channel
* Customer can config this item to enable/disable sap in indoor channel
* Default: Disable
*/
#define CFG_INDOOR_CHANNEL_SUPPORT_NAME "gindoor_channel_support"
#define CFG_INDOOR_CHANNEL_SUPPORT_MIN (0)
#define CFG_INDOOR_CHANNEL_SUPPORT_MAX (1)
#define CFG_INDOOR_CHANNEL_SUPPORT_DEFAULT (0)
/*
* sap tx leakage threshold
* customer can set this value from 100 to 1000 which means
* sap tx leakage threshold is -10db to -100db
*/
#define CFG_SAP_TX_LEAKAGE_THRESHOLD_NAME "gsap_tx_leakage_threshold"
#define CFG_SAP_TX_LEAKAGE_THRESHOLD_MIN (100)
#define CFG_SAP_TX_LEAKAGE_THRESHOLD_MAX (1000)
#define CFG_SAP_TX_LEAKAGE_THRESHOLD_DEFAULT (310)
#ifdef WLAN_FEATURE_NAN_DATAPATH
/*
* Enable NaN data path feature. NaN data path enables
* NaN supported devices to exchange data over traditional
* TCP/UDP network stack.
*/
#define CFG_ENABLE_NAN_DATAPATH_NAME "genable_nan_datapath"
#define CFG_ENABLE_NAN_DATAPATH_MIN (0)
#define CFG_ENABLE_NAN_DATAPATH_MAX (1)
#define CFG_ENABLE_NAN_DATAPATH_DEFAULT (0)
/*
* NAN channel on which NAN data interface to start
*/
#define CFG_ENABLE_NAN_NDI_CHANNEL_NAME "gnan_datapath_ndi_channel"
#define CFG_ENABLE_NAN_NDI_CHANNEL_MIN (6)
#define CFG_ENABLE_NAN_NDI_CHANNEL_MAX (149)
#define CFG_ENABLE_NAN_NDI_CHANNEL_DEFAULT (6)
#endif
/*
* Optimize channel avoidance indication comming from firmware
*/
#define CFG_OPTIMIZE_CA_EVENT_NAME "goptimize_chan_avoid_event"
#define CFG_OPTIMIZE_CA_EVENT_DISABLE (0)
#define CFG_OPTIMIZE_CA_EVENT_ENABLE (1)
#define CFG_OPTIMIZE_CA_EVENT_DEFAULT (0)
/**
* Reading the MAC address has priorities:
* 1. Read the provisioned MAC from cnss platform driver (configured by OEM)
* 2. Read from provisioned MAC from /persist/wlan_mac.bin (configured by OEM)
* 3. Read the default MAC address (otp.bin)
*
* Setting g_use_otpmac = 1 means if any of the higher priority
* provisioned MAC reading fails, use the default otp MAC address.
*
* Setting g_use_otpmac = 0 means Do not use the otp MAC address even if
* higher priority provisioned MAC reading fails, instead
* trigger driver load failure.
*/
#define CFG_USE_OTP_MAC "g_use_otpmac"
#define CFG_USE_OTP_MAC_MIN (0)
#define CFG_USE_OTP_MAC_MAX (1)
#define CFG_USE_OTP_MAC_DEFAULT (1)
/*
* Create bug report in case of nil scan results
*/
#define CFG_CREATE_BUG_REPORT_FOR_SCAN "gbug_report_for_scan_results"
#define CFG_CREATE_BUG_REPORT_FOR_SCAN_DISABLE (0)
#define CFG_CREATE_BUG_REPORT_FOR_SCAN_ENABLE (1)
#define CFG_CREATE_BUG_REPORT_FOR_SCAN_DEFAULT (0)
/*
* If gEnableEdcaParams is set to 1, params gEdcaVoCwmin,
* gEdcaViCwmin, gEdcaBkCwmin, gEdcaBeCwmin, gEdcaVoCwmax,
* gEdcaViCwmax, gEdcaBkCwmax, gEdcaBeCwmax, gEdcaVoAifs,
* gEdcaViAifs, gEdcaBkAifs and gEdcaBeAifs values are used
* to overwrite the values received from AP
*/
#define CFG_ENABLE_EDCA_INI_NAME "gEnableEdcaParams"
#define CFG_ENABLE_EDCA_INI_MIN (0)
#define CFG_ENABLE_EDCA_INI_MAX (1)
#define CFG_ENABLE_EDCA_INI_DEFAULT (0)
/* Cwmin value for EDCA_AC_VO. CWVomin = 2^gEdcaVoCwmin -1 */
#define CFG_EDCA_VO_CWMIN_VALUE_NAME "gEdcaVoCwmin"
#define CFG_EDCA_VO_CWMIN_VALUE_MIN (0x0)
#define CFG_EDCA_VO_CWMIN_VALUE_MAX (15)
#define CFG_EDCA_VO_CWMIN_VALUE_DEFAULT (2)
/* Cwmin value for EDCA_AC_VI. CWVimin = 2^gEdcaViCwmin -1 */
#define CFG_EDCA_VI_CWMIN_VALUE_NAME "gEdcaViCwmin"
#define CFG_EDCA_VI_CWMIN_VALUE_MIN (0x0)
#define CFG_EDCA_VI_CWMIN_VALUE_MAX (15)
#define CFG_EDCA_VI_CWMIN_VALUE_DEFAULT (3)
/* Cwmin value for EDCA_AC_BK. CWBkmin = 2^gEdcaBkCwmin -1 */
#define CFG_EDCA_BK_CWMIN_VALUE_NAME "gEdcaBkCwmin"
#define CFG_EDCA_BK_CWMIN_VALUE_MIN (0x0)
#define CFG_EDCA_BK_CWMIN_VALUE_MAX (15)
#define CFG_EDCA_BK_CWMIN_VALUE_DEFAULT (4)
/* Cwmin value for EDCA_AC_BE. CWBemin = 2^gEdcaBeCwmin -1 */
#define CFG_EDCA_BE_CWMIN_VALUE_NAME "gEdcaBeCwmin"
#define CFG_EDCA_BE_CWMIN_VALUE_MIN (0x0)
#define CFG_EDCA_BE_CWMIN_VALUE_MAX (15)
#define CFG_EDCA_BE_CWMIN_VALUE_DEFAULT (4)
/* Cwmax value for EDCA_AC_VO. CWVomax = 2^gEdcaVoCwmax -1 */
#define CFG_EDCA_VO_CWMAX_VALUE_NAME "gEdcaVoCwmax"
#define CFG_EDCA_VO_CWMAX_VALUE_MIN (0)
#define CFG_EDCA_VO_CWMAX_VALUE_MAX (15)
#define CFG_EDCA_VO_CWMAX_VALUE_DEFAULT (3)
/* Cwmax value for EDCA_AC_VI. CWVimax = 2^gEdcaViCwmax -1 */
#define CFG_EDCA_VI_CWMAX_VALUE_NAME "gEdcaViCwmax"
#define CFG_EDCA_VI_CWMAX_VALUE_MIN (0)
#define CFG_EDCA_VI_CWMAX_VALUE_MAX (15)
#define CFG_EDCA_VI_CWMAX_VALUE_DEFAULT (4)
/* Cwmax value for EDCA_AC_BK. CWBkmax = 2^gEdcaBkCwmax -1 */
#define CFG_EDCA_BK_CWMAX_VALUE_NAME "gEdcaBkCwmax"
#define CFG_EDCA_BK_CWMAX_VALUE_MIN (0)
#define CFG_EDCA_BK_CWMAX_VALUE_MAX (15)
#define CFG_EDCA_BK_CWMAX_VALUE_DEFAULT (10)
/* Cwmax value for EDCA_AC_BE. CWBemax = 2^gEdcaBeCwmax -1 */
#define CFG_EDCA_BE_CWMAX_VALUE_NAME "gEdcaBeCwmax"
#define CFG_EDCA_BE_CWMAX_VALUE_MIN (0)
#define CFG_EDCA_BE_CWMAX_VALUE_MAX (15)
#define CFG_EDCA_BE_CWMAX_VALUE_DEFAULT (10)
/* Aifs value for EDCA_AC_VO.*/
#define CFG_EDCA_VO_AIFS_VALUE_NAME "gEdcaVoAifs"
#define CFG_EDCA_VO_AIFS_VALUE_MIN (0)
#define CFG_EDCA_VO_AIFS_VALUE_MAX (15)
#define CFG_EDCA_VO_AIFS_VALUE_DEFAULT (2)
/* Aifs value for EDCA_AC_VI.*/
#define CFG_EDCA_VI_AIFS_VALUE_NAME "gEdcaViAifs"
#define CFG_EDCA_VI_AIFS_VALUE_MIN (0)
#define CFG_EDCA_VI_AIFS_VALUE_MAX (15)
#define CFG_EDCA_VI_AIFS_VALUE_DEFAULT (2)
/* Aifs value for EDCA_AC_BK.*/
#define CFG_EDCA_BK_AIFS_VALUE_NAME "gEdcaBkAifs"
#define CFG_EDCA_BK_AIFS_VALUE_MIN (0)
#define CFG_EDCA_BK_AIFS_VALUE_MAX (15)
#define CFG_EDCA_BK_AIFS_VALUE_DEFAULT (7)
/* Aifs value for EDCA_AC_BE.*/
#define CFG_EDCA_BE_AIFS_VALUE_NAME "gEdcaBeAifs"
#define CFG_EDCA_BE_AIFS_VALUE_MIN (0)
#define CFG_EDCA_BE_AIFS_VALUE_MAX (15)
#define CFG_EDCA_BE_AIFS_VALUE_DEFAULT (3)
/*
* This key is mapping to VO defined in data path module through
* OL_TX_SCHED_WRR_ADV_CAT_CFG_SPEC. The user can tune the
* WRR TX sched parameters such as skip, credit, limit, credit, disc for VO.
* e.g., gEnableTxSchedWrrVO = 10, 9, 8, 1, 8
*/
#define CFG_ENABLE_TX_SCHED_WRR_VO "gEnableTxSchedWrrVO"
#define CFG_ENABLE_TX_SCHED_WRR_VO_DEFAULT ""
/*
* This key is mapping to VI defined in data path module through
* OL_TX_SCHED_WRR_ADV_CAT_CFG_SPEC. The user can tune the
* WRR TX sched parameters such as skip, credit, limit, credit, disc for VI.
* e.g., gEnableTxSchedWrrVI = 10, 9, 8, 1, 8
*/
#define CFG_ENABLE_TX_SCHED_WRR_VI "gEnableTxSchedWrrVI"
#define CFG_ENABLE_TX_SCHED_WRR_VI_DEFAULT ""
/*
* This key is mapping to BE defined in data path module through
* OL_TX_SCHED_WRR_ADV_CAT_CFG_SPEC. The user can tune the
* WRR TX sched parameters such as skip, credit, limit, credit, disc for BE.
* e.g., gEnableTxSchedWrrBE = 10, 9, 8, 1, 8
*/
#define CFG_ENABLE_TX_SCHED_WRR_BE "gEnableTxSchedWrrBE"
#define CFG_ENABLE_TX_SCHED_WRR_BE_DEFAULT ""
/*
* This key is mapping to BK defined in data path module through
* OL_TX_SCHED_WRR_ADV_CAT_CFG_SPEC. The user can tune the
* WRR TX sched parameters such as skip, credit, limit, credit, disc for BK.
* e.g., gEnableTxSchedWrrBK = 10, 9, 8, 1, 8
*/
#define CFG_ENABLE_TX_SCHED_WRR_BK "gEnableTxSchedWrrBK"
#define CFG_ENABLE_TX_SCHED_WRR_BK_DEFAULT ""
#define CFG_TGT_GTX_USR_CFG_NAME "tgt_gtx_usr_cfg"
#define CFG_TGT_GTX_USR_CFG_MIN (0)
#define CFG_TGT_GTX_USR_CFG_MAX (32)
#define CFG_TGT_GTX_USR_CFG_DEFAULT (32)
#define CFG_SAP_INTERNAL_RESTART_NAME "gEnableSapInternalRestart"
#define CFG_SAP_INTERNAL_RESTART_MIN (0)
#define CFG_SAP_INTERNAL_RESTART_MAX (1)
#define CFG_SAP_INTERNAL_RESTART_DEFAULT (1)
/*
* This parameter will help to debug ssr reinit failure issues
* by raising vos bug so dumps can be collected. If OEM
* wants to avoid this crash, just disable this parameter.
* wlan driver will only recover after driver unload and load.
* Default: Enable
*/
#define CFG_BUG_ON_REINIT_FAILURE_NAME "g_bug_on_reinit_failure"
#define CFG_BUG_ON_REINIT_FAILURE_MIN (0)
#define CFG_BUG_ON_REINIT_FAILURE_MAX (1)
#define CFG_BUG_ON_REINIT_FAILURE_DEFAULT (1)
/*
* This parameter will avoid updating ap_sta_inactivity from hostapd.conf
* file. If a station does not send anything in ap_max_inactivity seconds, an
* empty data frame is sent to it in order to verify whether it is
* still in range. If this frame is not ACKed, the station will be
* disassociated and then deauthenticated. This feature is used to
* clear station table of old entries when the STAs move out of the
* range.
* Default : Disable
*/
#define CFG_SAP_MAX_INACTIVITY_OVERRIDE_NAME "gSapMaxInactivityOverride"
#define CFG_SAP_MAX_INACTIVITY_OVERRIDE_DEFAULT (0)
#define CFG_SAP_MAX_INACTIVITY_OVERRIDE_MIN (0)
#define CFG_SAP_MAX_INACTIVITY_OVERRIDE_MAX (1)
/*
* In static display use case when APPS is in stand alone power save mode enable
* active offload mode which helps FW to filter out MC/BC data packets to avoid
* APPS wake up and save more power.
*
* By default enable active mode offload as it helps to save more power in
* static display usecase(APPS stand alone power collapse).
*
* If active mode offload(gActiveModeOffload=1) is enabled then all applicable
* data offload/filtering is enabled immediately in FW once config is available
* in WLAN driver and FW caches this configuration accross suspend/resume
*
* If active mode offload is disabled(gActiveModeOffload=0) then all applicable
* data offload/filtering is enabled during cfg80211 suspend and disabled
* during cfg80211 resume
*/
#define CFG_ACTIVE_MODE_OFFLOAD "gActiveModeOffload"
#define CFG_ACTIVE_MODE_OFFLOAD_MIN (0)
#define CFG_ACTIVE_MODE_OFFLOAD_MAX (1)
#define CFG_ACTIVE_MODE_OFFLOAD_DEFAULT (0)
/*
* This parameter will control SIFS burst duration in FW from 0 to 12 ms.
* Default value is set to 8ms.
*/
#define CFG_SIFS_BURST_DURATION_NAME "g_sifs_burst_duration"
#define CFG_SIFS_BURST_DURATION_MIN (0)
#define CFG_SIFS_BURST_DURATION_MAX (12)
#define CFG_SIFS_BURST_DURATION_DEFAULT (8)
/*
* 0: Disable BPF packet filter
* 1: Enable BPF packet filter
*/
#define CFG_BPF_PACKET_FILTER_OFFLOAD "gBpfFilterEnable"
#define CFG_BPF_PACKET_FILTER_OFFLOAD_MIN (0)
#define CFG_BPF_PACKET_FILTER_OFFLOAD_MAX (1)
#define CFG_BPF_PACKET_FILTER_OFFLOAD_DEFAULT (1)
/*
* GPIO num used to wakeup host, 0xFF disable wakeup.
* Default value is 0xFF
*/
#define CFG_HOST_WAKEUP_GPIO_NAME "g_host_wakeup_gpio"
#define CFG_HOST_WAKEUP_GPIO_MIN (0)
#define CFG_HOST_WAKEUP_GPIO_MAX (0xFF)
#define CFG_HOST_WAKEUP_GPIO_DEFAULT (0xFF)
/*
* Wakeup type for host.
* 1 Low level
* 2 High level
* 3 Rising edge
* 4 Falling edge
* Default value is 1.
*/
#define CFG_HOST_WAKEUP_TYPE_NAME "g_host_wakeup_type"
#define CFG_HOST_WAKEUP_TYPE_MIN (1)
#define CFG_HOST_WAKEUP_TYPE_MAX (4)
#define CFG_HOST_WAKEUP_TYPE_DEFAULT (1)
/*
* GPIO number used to wakeup target, 0xFF disable wakeup.
* Default value is 0xFF
*/
#define CFG_TARGET_WAKEUP_GPIO_NAME "g_target_wakeup_gpio"
#define CFG_TARGET_WAKEUP_GPIO_MIN (0)
#define CFG_TARGET_WAKEUP_GPIO_MAX (0xFF)
#define CFG_TARGET_WAKEUP_GPIO_DEFAULT (0xFF)
/*
* Wakeup type for host.
* 1 Low level
* 2 High level
* 3 Rising edge
* 4 Falling edge
* Default value is 1.
*/
#define CFG_TARGET_WAKEUP_TYPE_NAME "g_target_wakeup_type"
#define CFG_TARGET_WAKEUP_TYPE_MIN (1)
#define CFG_TARGET_WAKEUP_TYPE_MAX (4)
#define CFG_TARGET_WAKEUP_TYPE_DEFAULT (1)
/*
* maximum interval (in seconds) for a
* single scan plan supported by the device.
*/
#define CFG_MAX_SCHED_SCAN_PLAN_INT_NAME "g_max_sched_scan_plan_int"
#define CFG_MAX_SCHED_SCAN_PLAN_INT_MIN (1)
#define CFG_MAX_SCHED_SCAN_PLAN_INT_MAX (7200)
#define CFG_MAX_SCHED_SCAN_PLAN_INT_DEFAULT (3600)
/*
* maximum number of iterations for a single
* scan plan supported by the device.
*/
#define CFG_MAX_SCHED_SCAN_PLAN_ITRNS_NAME "g_max_sched_scan_plan_itrns"
#define CFG_MAX_SCHED_SCAN_PLAN_ITRNS_MIN (1)
#define CFG_MAX_SCHED_SCAN_PLAN_ITRNS_MAX (100)
#define CFG_MAX_SCHED_SCAN_PLAN_ITRNS_DEFAULT (10)
/*
* g_sub20_channel_width=0: Indicates do not use Sub 20 MHz bandwidth
* g_sub20_channel_width=1: Bring up SAP/STA in 5 MHz bandwidth
* g_sub20_channel_width=2: Bring up SAP/STA in 10 MHz bandwidth
* g_sub20_channel_width=3: Switch between 5 and 20 MHz bandwidth dynamically
* g_sub20_channel_width=4: Switch between 10 and 20 MHz bandwidth dynamically
* g_sub20_channel_width=5: Switch between 5/10 and 20 MHz bandwidth dynamically
* g_sub20_channel_width=6: Switch between 5/10 and 20 MHz bandwidth manually
* Default : Disable
*/
#define CFG_SUB_20_CHANNEL_WIDTH_NAME "g_sub20_channel_width"
#define CFG_SUB_20_CHANNEL_WIDTH_DISABLE (0)
#define CFG_SUB_20_CHANNEL_WIDTH_5MHZ (1)
#define CFG_SUB_20_CHANNEL_WIDTH_10MHZ (2)
#define CFG_SUB_20_CHANNEL_WIDTH_DYN_5MHZ (3)
#define CFG_SUB_20_CHANNEL_WIDTH_DYN_10MHZ (4)
#define CFG_SUB_20_CHANNEL_WIDTH_DYN_ALL (5)
#define CFG_SUB_20_CHANNEL_WIDTH_MANUAL (6)
#define CFG_SUB_20_CHANNEL_WIDTH_MIN (0)
#define CFG_SUB_20_CHANNEL_WIDTH_MAX (6)
#define CFG_SUB_20_CHANNEL_WIDTH_DEFAULT (0)
#define CFG_STA_CHANGE_COUNTRYCODE_DYN_NAME "g_sta_change_cc_via_beacon"
#define CFG_STA_CHANGE_COUNTRYCODE_DYN_ENABLE (1)
#define CFG_STA_CHANGE_COUNTRYCODE_DYN_DISABLE (0)
#define CFG_STA_CHANGE_COUNTRYCODE_DYN_DEFAULT (0)
/*
* 5G preference parameters for boosting RSSI
* enable_band_specific_pref: Enable preference for 5G from INI.
* raise_rssi_thresh_5g: A_band_boost_threshold above which 5 GHz is favored.
* raise_factor_5g : Factor by which 5GHz RSSI is boosted.
* max_raise_rssi_5g: Maximum boost that can be applied to 5GHz RSSI.
*/
#define CFG_ENABLE_5G_BAND_PREF_NAME "enable_5g_band_pref"
#define CFG_ENABLE_5G_BAND_PREF_MIN (0)
#define CFG_ENABLE_5G_BAND_PREF_MAX (1)
#define CFG_ENABLE_5G_BAND_PREF_DEFAULT (0)
#define CFG_5G_RSSI_BOOST_THRESHOLD_NAME "5g_rssi_boost_threshold"
#define CFG_5G_RSSI_BOOST_THRESHOLD_MIN (-55)
#define CFG_5G_RSSI_BOOST_THRESHOLD_MAX (-70)
#define CFG_5G_RSSI_BOOST_THRESHOLD_DEFAULT (-60)
#define CFG_5G_RSSI_BOOST_FACTOR_NAME "5g_rssi_boost_factor"
#define CFG_5G_RSSI_BOOST_FACTOR_MIN (0)
#define CFG_5G_RSSI_BOOST_FACTOR_MAX (2)
#define CFG_5G_RSSI_BOOST_FACTOR_DEFAULT (1)
#define CFG_5G_MAX_RSSI_BOOST_NAME "5g_max_rssi_boost"
#define CFG_5G_MAX_RSSI_BOOST_MIN (0)
#define CFG_5G_MAX_RSSI_BOOST_MAX (20)
#define CFG_5G_MAX_RSSI_BOOST_DEFAULT (10)
/*
* 5G preference parameters for penalizing RSSI
* drop_rssi_thresh_5g: threshold below which 5 GHz is not favored.
* drop_factor_5g : Factor by which a weak 5GHz RSSI is penalized.
* max_drop_rssi_5g: Maximum penalty that can be applied to 5GHz RSSI.
*/
#define CFG_5G_RSSI_PENALIZE_THRESHOLD_NAME "5g_rssi_penalize_threshold"
#define CFG_5G_RSSI_PENALIZE_THRESHOLD_MIN (-65)
#define CFG_5G_RSSI_PENALIZE_THRESHOLD_MAX (-80)
#define CFG_5G_RSSI_PENALIZE_THRESHOLD_DEFAULT (-70)
#define CFG_5G_RSSI_PENALIZE_FACTOR_NAME "5g_rssi_penalize_factor"
#define CFG_5G_RSSI_PENALIZE_FACTOR_MIN (0)
#define CFG_5G_RSSI_PENALIZE_FACTOR_MAX (2)
#define CFG_5G_RSSI_PENALIZE_FACTOR_DEFAULT (1)
#define CFG_5G_MAX_RSSI_PENALIZE_NAME "5g_max_rssi_penalize"
#define CFG_5G_MAX_RSSI_PENALIZE_MIN (0)
#define CFG_5G_MAX_RSSI_PENALIZE_MAX (20)
#define CFG_5G_MAX_RSSI_PENALIZE_DEFAULT (10)
/* enable/disable probe request whiltelist IE feature */
#define CFG_PRB_REQ_IE_WHITELIST_NAME "g_enable_probereq_whitelist_ies"
#define CFG_PRB_REQ_IE_WHITELIST_MIN (0)
#define CFG_PRB_REQ_IE_WHITELIST_MAX (1)
#define CFG_PRB_REQ_IE_WHITELIST_DEFAULT (0)
/*
* For IE white listing in Probe Req, following ini parameters from
* g_probe_req_ie_bitmap_0 to g_probe_req_ie_bitmap_7 are used. User needs to
* input this values in hexa decimal format, when bit is set, corresponding ie
* needs to be included in probe request.
*/
#define CFG_PRB_REQ_IE_BIT_MAP0_NAME "g_probe_req_ie_bitmap_0"
#define CFG_PRB_REQ_IE_BIT_MAP0_MIN (0x00000000)
#define CFG_PRB_REQ_IE_BIT_MAP0_MAX (0xFFFFFFFF)
#define CFG_PRB_REQ_IE_BIT_MAP0_DEFAULT (0x00000000)
#define CFG_PRB_REQ_IE_BIT_MAP1_NAME "g_probe_req_ie_bitmap_1"
#define CFG_PRB_REQ_IE_BIT_MAP1_MIN (0x00000000)
#define CFG_PRB_REQ_IE_BIT_MAP1_MAX (0xFFFFFFFF)
#define CFG_PRB_REQ_IE_BIT_MAP1_DEFAULT (0x00000000)
#define CFG_PRB_REQ_IE_BIT_MAP2_NAME "g_probe_req_ie_bitmap_2"
#define CFG_PRB_REQ_IE_BIT_MAP2_MIN (0x00000000)
#define CFG_PRB_REQ_IE_BIT_MAP2_MAX (0xFFFFFFFF)
#define CFG_PRB_REQ_IE_BIT_MAP2_DEFAULT (0x00000000)
#define CFG_PRB_REQ_IE_BIT_MAP3_NAME "g_probe_req_ie_bitmap_3"
#define CFG_PRB_REQ_IE_BIT_MAP3_MIN (0x00000000)
#define CFG_PRB_REQ_IE_BIT_MAP3_MAX (0xFFFFFFFF)
#define CFG_PRB_REQ_IE_BIT_MAP3_DEFAULT (0x00000000)
#define CFG_PRB_REQ_IE_BIT_MAP4_NAME "g_probe_req_ie_bitmap_4"
#define CFG_PRB_REQ_IE_BIT_MAP4_MIN (0x00000000)
#define CFG_PRB_REQ_IE_BIT_MAP4_MAX (0xFFFFFFFF)
#define CFG_PRB_REQ_IE_BIT_MAP4_DEFAULT (0x00000000)
#define CFG_PRB_REQ_IE_BIT_MAP5_NAME "g_probe_req_ie_bitmap_5"
#define CFG_PRB_REQ_IE_BIT_MAP5_MIN (0x00000000)
#define CFG_PRB_REQ_IE_BIT_MAP5_MAX (0xFFFFFFFF)
#define CFG_PRB_REQ_IE_BIT_MAP5_DEFAULT (0x00000000)
#define CFG_PRB_REQ_IE_BIT_MAP6_NAME "g_probe_req_ie_bitmap_6"
#define CFG_PRB_REQ_IE_BIT_MAP6_MIN (0x00000000)
#define CFG_PRB_REQ_IE_BIT_MAP6_MAX (0xFFFFFFFF)
#define CFG_PRB_REQ_IE_BIT_MAP6_DEFAULT (0x00000000)
#define CFG_PRB_REQ_IE_BIT_MAP7_NAME "g_probe_req_ie_bitmap_7"
#define CFG_PRB_REQ_IE_BIT_MAP7_MIN (0x00000000)
#define CFG_PRB_REQ_IE_BIT_MAP7_MAX (0xFFFFFFFF)
#define CFG_PRB_REQ_IE_BIT_MAP7_DEFAULT (0x00000000)
/*
* For vendor specific IE, Probe Req OUI types and sub types which are
* to be white listed are specifed in gProbeReqOUIs in the following
* example format - gProbeReqOUIs=AABBCCDD EEFF1122
*/
#define CFG_PROBE_REQ_OUI_NAME "gProbeReqOUIs"
#define CFG_PROBE_REQ_OUI_DEFAULT ""
#define CFG_RX_WAKELOCK_TIMEOUT_NAME "rx_wakelock_timeout"
#define CFG_RX_WAKELOCK_TIMEOUT_DEFAULT (50)
#define CFG_RX_WAKELOCK_TIMEOUT_MIN (0)
#define CFG_RX_WAKELOCK_TIMEOUT_MAX (100)
/*
* <ini>
* g_sap_chanswitch_beacon_cnt - channel switch beacon count
* @Min: 1
* @Max: 5
* @Default: 5
*
* This ini is used to configure channel switch beacon count
*
* Related: none
*
* Usage: External
*
* </ini>
*/
#define CFG_SAP_CH_SWITCH_BEACON_CNT "g_sap_chanswitch_beacon_cnt"
#define CFG_SAP_CH_SWITCH_BEACON_CNT_MIN (1)
#define CFG_SAP_CH_SWITCH_BEACON_CNT_MAX (5)
#define CFG_SAP_CH_SWITCH_BEACON_CNT_DEFAULT (5)
/*
* <ini>
* g_sap_chanswitch_mode - channel switch mode
* @Min: 0
* @Max: 1
* @Default: 1
*
* This ini is used to configure channel switch mode
*
* Related: none
*
* Usage: External
*
* </ini>
*/
#define CFG_SAP_CH_SWITCH_MODE "g_sap_chanswitch_mode"
#define CFG_SAP_CH_SWITCH_MODE_MIN (0)
#define CFG_SAP_CH_SWITCH_MODE_MAX (1)
#define CFG_SAP_CH_SWITCH_MODE_DEFAULT (1)
/*
* <ini>
* gDfsBeaconTxEnhanced - beacon tx enhanced
* @Min: 0
* @Max: 1
* @Default: 0
*
* This ini is used to enhance dfs beacon tx
*
* Related: none
*
* Usage: External
*
* </ini>
*/
#define CFG_DFS_BEACON_TX_ENHANCED "gDfsBeaconTxEnhanced"
#define CFG_DFS_BEACON_TX_ENHANCED_MIN (0)
#define CFG_DFS_BEACON_TX_ENHANCED_MAX (1)
#define CFG_DFS_BEACON_TX_ENHANCED_DEFAULT (0)
/*
* <ini>
* gReducedBeaconInterval - beacon interval reduced
* @Min: 0
* @Max: 100
* @Default: 0
*
* This ini is used to reduce beacon interval when val
* great than 0, or the feature is disabled.
*
* Related: none
*
* Usage: External
*
* </ini>
*/
#define CFG_REDUCED_BEACON_INTERVAL "gReducedBeaconInterval"
#define CFG_REDUCED_BEACON_INTERVAL_MIN (0)
#define CFG_REDUCED_BEACON_INTERVAL_MAX (100)
#define CFG_REDUCED_BEACON_INTERVAL_DEFAULT (0)
#define CFG_NO_ACK_ENABLE "gEnableNoAck"
#define CFG_NO_ACK_MIN (0)
#define CFG_NO_ACK_MAX (1)
#define CFG_NO_ACK_DEFAULT (0)
#ifdef FEATURE_COEX_PTA_CONFIG_ENABLE
/*
* <ini>
* gCoexPtaConfigEnable - enable pta coex
* @Min: 0
* @Max: 1
* @Default: 0
*
* This ini is used to enable the coexistence between QCA wifi and External BT.
* when val is 1, or the feature is disabled.
*
* Related: none
*
* Usage: External
*
* </ini>
*/
#define CFG_COEX_PTA_CONFIG_ENABLE "gCoexPtaConfigEnable"
#define CFG_COEX_PTA_CONFIG_ENABLE_MIN (0)
#define CFG_COEX_PTA_CONFIG_ENABLE_MAX (2)
#define CFG_COEX_PTA_CONFIG_ENABLE_DEFAULT (0)
/*
* <ini>
* gCoexPtaConfigEnable - configure pta coex param
* @Min: 0x00000000
* @Max: 0xFFFFFFFF
* @Default: 0x00000000
*
* This ini is used to configure the coexistence param between QCA wifi and External BT.
*
* Related: none
*
* Usage: External
*
* </ini>
*/
#define CFG_COEX_PTA_CONFIG_PARAM "gCoexPtaConfigParam"
#define CFG_COEX_PTA_CONFIG_PARAM_MIN (0x00000000)
#define CFG_COEX_PTA_CONFIG_PARAM_MAX (0xFFFFFFFF)
#define CFG_COEX_PTA_CONFIG_PARAM_DEFAULT (0x00000000)
#endif
/*
* <ini>
* arp_ac_category - ARP access category
* @Min: 0
* @Max: 3
* @Default: 3
*
* Firmware by default categorizes ARP packets with VOICE TID.
* This ini shall be used to override the default configuration.
* Access category enums are referenced in ieee80211_common.h
* WME_AC_BE = 0 (Best effort)
* WME_AC_BK = 1 (Background)
* WME_AC_VI = 2 (Video)
* WME_AC_VO = 3 (Voice)
*
* Related: none
*
* Usage: Internal/External
*
* </ini>
*/
#define CFG_ARP_AC_CATEGORY "arp_ac_category"
#define CFG_ARP_AC_CATEGORY_MIN (0)
#define CFG_ARP_AC_CATEGORY_MAX (3)
#define CFG_ARP_AC_CATEGORY_DEFAULT (3)
/*
* gSapProbeRespOffload: when set in sap, offloads the
* probe response transmission to firmware
*/
#define CFG_SAP_PROBE_RESP_OFFLOAD_NAME "gSapProbeRespOffload"
#define CFG_SAP_PROBE_RESP_OFFLOAD_MIN (0)
#define CFG_SAP_PROBE_RESP_OFFLOAD_MAX (1)
#define CFG_SAP_PROBE_RESP_OFFLOAD_DEFAULT (1)
/*
* <ini>
* gSkipMacConfig - skip mac config
* @Min: 0
* @Max: 1
* @Default: 0
*
* This ini is used to avoid loading mac_wlan.bin if needed
* during startup to save time.
*
* Related: none
*
* Usage: External
*
* </ini>
*/
#define CFG_SKIP_MAC_CONFIG "gSkipMacConfig"
#define CFG_SKIP_MAC_CONFIG_MIN (0)
#define CFG_SKIP_MAC_CONFIG_MAX (1)
#define CFG_SKIP_MAC_CONFIG_DEFAULT (0)
#ifdef WLAN_FEATURE_DSRC
/*
* <ini>
* gOcbTxPerPktStatsEnable - enable/disable OCB/DSRC tx per packet stats
* @Min: 0
* @Max: 1
* @Default: 0
*
* This ini is used to avoid KPI throughput regression by disabling tx
* per packet stats that would degrade throughput.
*
* Related: HI_ACS_FLAGS_SDIO_REDUCE_TX_COMPL_SET
*
* Usage: Internal/External
*
* </ini>
*/
#define CFG_OCB_TX_PER_PKT_STATS_ENABLE_NAME "gOcbTxPerPktStatsEnable"
#define CFG_OCB_TX_PER_PKT_STATS_ENABLE_MIN ( 0 )
#define CFG_OCB_TX_PER_PKT_STATS_ENABLE_MAX ( 1 )
#define CFG_OCB_TX_PER_PKT_STATS_ENABLE_DEFAULT ( 0 )
#endif /* WLAN_FEATURE_DSRC */
/*
* <ini>
* gCCAThresholdEnable - enable/disable CCA threshold setting
* @Min: 0
* @Max: 1
* @Default: 0
*
* This ini is used to overide CCA threshold for ESTI Adaptivity.
*
* Related: NOne
*
* Usage: Internal/External
*
* </ini>
*/
#define CFG_CCA_THRESHOLD_ENABLE_NAME "gCCAThresholdEnable"
#define CFG_CCA_THRESHOLD_ENABLE_MIN (0)
#define CFG_CCA_THRESHOLD_ENABLE_MAX (1)
#define CFG_CCA_THRESHOLD_ENABLE_DEFAULT (0)
/*
* <ini>
* gCCAThreshold2G - CCA threshold for 2G band
* @Min: 10
* @Max: 127
* @Default: 28
*
* Once CCA threshold is enabled, this is threshold for 2G band.
*
* Related: None
*
* Usage: Internal/External
*
* </ini>
*/
#define CFG_CCA_THRESHOLD_2G_NAME "gCCAThreshold2G"
#define CFG_CCA_THRESHOLD_2G_MIN (10)
#define CFG_CCA_THRESHOLD_2G_MAX (127)
#define CFG_CCA_THRESHOLD_2G_DEFAULT (28)
/*
* <ini>
* gCCAThreshold5G - CCA threshold for 5G band
* @Min: 10
* @Max: 127
* @Default: 28
*
* Once CCA threshold is enabled, this is threshold for 5G band.
*
* Related: None
*
* Usage: Internal/External
*
* </ini>
*/
#define CFG_CCA_THRESHOLD_5G_NAME "gCCAThreshold5G"
#define CFG_CCA_THRESHOLD_5G_MIN (10)
#define CFG_CCA_THRESHOLD_5G_MAX (127)
#define CFG_CCA_THRESHOLD_5G_DEFAULT (28)
/*
* <ini>
* gEnableMonOnSta - extend the monitor capability for STA
* @Min: 0
* @Max: 1
* @Default: 0
*
* this is used to control monitor feature for STA.
*
* Related: none
*
* Usage: External
*
* </ini>
*/
#define CFG_ENABLE_MONITOR_ON_STA "gEnableMonOnSta"
#define CFG_ENABLE_MONITOR_ON_STA_MIN (0)
#define CFG_ENABLE_MONITOR_ON_STA_MAX (1)
#define CFG_ENABLE_MONITOR_ON_STA_DEFAULT (0)
#ifdef WLAN_FEATURE_SAP_TO_FOLLOW_STA_CHAN
/*SAP Channel Switch Support*/
#define CFG_SAP_CHANNEL_SWITCH_WITH_CSA_NAME "gSAPChannelSwitchWithCSA"
#define CFG_SAP_CHANNEL_SWITCH_WITH_CSA_MIN (0)
#define CFG_SAP_CHANNEL_SWITCH_WITH_CSA_MAX (1)
#define CFG_SAP_CHANNEL_SWITCH_WITH_CSA_DEFAULT (0)
#endif//#ifdef WLAN_FEATURE_SAP_TO_FOLLOW_STA_CHAN
/*---------------------------------------------------------------------------
Type declarations
-------------------------------------------------------------------------*/
struct hdd_config {
//Bitmap to track what is explicitly configured
DECLARE_BITMAP(bExplicitCfg, MAX_CFG_INI_ITEMS);
//Config parameters
v_U32_t RTSThreshold;
v_U32_t FragmentationThreshold;
v_U8_t OperatingChannel;
v_BOOL_t ShortSlotTimeEnabled;
v_BOOL_t Is11dSupportEnabled;
v_BOOL_t Is11hSupportEnabled;
v_BOOL_t fEnforce11dChannels;
v_BOOL_t fSupplicantCountryCodeHasPriority;
v_BOOL_t fEnforceCountryCodeMatch;
v_BOOL_t fEnforceDefaultDomain;
v_U32_t HeartbeatThresh24;
char PowerUsageControl[4];
v_U8_t nEnableSuspend;
v_U8_t nEnableDriverStop;
v_BOOL_t fIsLogpEnabled;
v_U8_t btcExecutionMode;
v_U32_t mwsCoexConfig[6];
v_BOOL_t fIsImpsEnabled;
v_U32_t nImpsModSleepTime;
v_U32_t nImpsMaxSleepTime;
v_U32_t nImpsMinSleepTime;
v_BOOL_t fIsBmpsEnabled;
v_U32_t nBmpsModListenInterval;
v_U32_t nBmpsMaxListenInterval;
v_U32_t nBmpsMinListenInterval;
v_BOOL_t fIsAutoBmpsTimerEnabled;
v_U32_t nAutoBmpsTimerValue;
eHddDot11Mode dot11Mode;
v_U32_t nChannelBondingMode24GHz;
bool override_ht20_40_24g;
v_U32_t nChannelBondingMode5GHz;
v_U32_t MaxRxAmpduFactor;
v_U16_t TxRate;
v_U32_t ShortGI20MhzEnable;
v_U32_t BlockAckAutoSetup;
v_U32_t ScanResultAgeCount;
v_U32_t nScanAgeTimeNCNPS;
v_U32_t nScanAgeTimeNCPS;
v_U32_t nScanAgeTimeCNPS;
v_U32_t nScanAgeTimeCPS;
v_U8_t nRssiCatGap;
v_BOOL_t fIsShortPreamble;
v_MACADDR_t IbssBssid;
v_U32_t AdHocChannel5G;
v_U32_t AdHocChannel24G;
v_U8_t intfAddrMask;
v_MACADDR_t intfMacAddr[VOS_MAX_CONCURRENCY_PERSONA];
v_BOOL_t apUapsdEnabled;
v_BOOL_t apRandomBssidEnabled;
v_BOOL_t apProtEnabled;
v_U16_t apProtection;
v_BOOL_t apOBSSProtEnabled;
v_U8_t MinFramesProcThres;
v_U8_t apCntryCode[4];
v_BOOL_t apDisableIntraBssFwd;
v_U8_t nEnableListenMode;
v_U32_t nAPAutoShutOff;
v_U8_t enableLTECoex;
v_U32_t apKeepAlivePeriod;
v_U32_t goKeepAlivePeriod;
v_U32_t apLinkMonitorPeriod;
v_U32_t goLinkMonitorPeriod;
v_U32_t nBeaconInterval;
v_U8_t nTxPowerCap; //In dBm
v_BOOL_t allow_tpc_from_ap;
v_BOOL_t fIsLowGainOverride;
v_U8_t disablePacketFilter;
#if defined WLAN_FEATURE_VOWIFI
v_BOOL_t fRrmEnable;
v_U8_t nInChanMeasMaxDuration;
v_U8_t nOutChanMeasMaxDuration;
v_U16_t nRrmRandnIntvl;
/* length includes separator */
char rm_capability[3 * DOT11F_IE_RRMENABLEDCAP_MAX_LEN];
#endif
#ifdef WLAN_FEATURE_VOWIFI_11R
//Vowifi 11r params
v_BOOL_t fFTResourceReqSupported;
#endif
#ifdef WLAN_FEATURE_NEIGHBOR_ROAMING
v_U16_t nNeighborScanPeriod;
v_U8_t nNeighborReassocRssiThreshold;
v_U8_t nNeighborLookupRssiThreshold;
v_U8_t delay_before_vdev_stop;
v_U8_t nOpportunisticThresholdDiff;
v_U8_t nRoamRescanRssiDiff;
v_U8_t neighborScanChanList[WNI_CFG_VALID_CHANNEL_LIST_LEN];
v_U16_t nNeighborScanMinChanTime;
v_U16_t nNeighborScanMaxChanTime;
v_U16_t nMaxNeighborReqTries;
v_U16_t nNeighborResultsRefreshPeriod;
v_U16_t nEmptyScanRefreshPeriod;
v_U8_t nRoamBmissFirstBcnt;
v_U8_t nRoamBmissFinalBcnt;
v_U8_t nRoamBeaconRssiWeight;
uint32_t nhi_rssi_scan_max_count;
uint32_t nhi_rssi_scan_rssi_delta;
uint32_t nhi_rssi_scan_delay;
int32_t nhi_rssi_scan_rssi_ub;
#endif
//Additional Handoff params
v_BOOL_t nEnableIdleScan;
v_U32_t nRoamingTime;
v_U16_t nVccRssiTrigger;
v_U32_t nVccUlMacLossThreshold;
v_U32_t nPassiveMinChnTime; //in units of milliseconds
v_U32_t nPassiveMaxChnTime; //in units of milliseconds
v_U32_t nActiveMinChnTime; //in units of milliseconds
v_U32_t nActiveMaxChnTime; //in units of milliseconds
v_U32_t nInitialDwellTime; //in units of milliseconds
bool initial_scan_no_dfs_chnl;
#ifdef WLAN_AP_STA_CONCURRENCY
v_U32_t nPassiveMinChnTimeConc; //in units of milliseconds
v_U32_t nPassiveMaxChnTimeConc; //in units of milliseconds
v_U32_t nActiveMinChnTimeConc; //in units of milliseconds
v_U32_t nActiveMaxChnTimeConc; //in units of milliseconds
v_U32_t nRestTimeConc; //in units of milliseconds
/* In units of milliseconds */
uint32_t min_rest_time_conc;
/* In units of milliseconds */
uint32_t idle_time_conc;
#endif
v_U8_t nMaxPsPoll;
v_U8_t nRssiFilterPeriod;
v_BOOL_t fIgnoreDtim;
v_U8_t fMaxLIModulatedDTIM;
v_U8_t nRxAnt;
v_U8_t fEnableFwHeartBeatMonitoring;
v_U8_t fEnableFwBeaconFiltering;
v_BOOL_t fEnableFwRssiMonitoring;
bool mcc_rts_cts_prot_enable;
bool mcc_bcast_prob_resp_enable;
v_U8_t nDataInactivityTimeout;
v_U8_t nthBeaconFilter;
//WMM QoS Configuration
hdd_wmm_user_mode_t WmmMode;
v_U8_t gStaLocalEDCAEnable;
v_BOOL_t b80211eIsEnabled;
v_U8_t UapsdMask; // what ACs to setup U-APSD for at assoc
v_U32_t InfraUapsdVoSrvIntv;
v_U32_t InfraUapsdVoSuspIntv;
v_U32_t InfraUapsdViSrvIntv;
v_U32_t InfraUapsdViSuspIntv;
v_U32_t InfraUapsdBeSrvIntv;
v_U32_t InfraUapsdBeSuspIntv;
v_U32_t InfraUapsdBkSrvIntv;
v_U32_t InfraUapsdBkSuspIntv;
#ifdef FEATURE_WLAN_LFR
v_BOOL_t isFastRoamIniFeatureEnabled;
v_BOOL_t MAWCEnabled;
#endif
#ifdef FEATURE_WLAN_ESE
v_U32_t InfraInactivityInterval;
v_BOOL_t isEseIniFeatureEnabled;
#endif
#if defined (WLAN_FEATURE_VOWIFI_11R) || defined (FEATURE_WLAN_ESE) || defined(FEATURE_WLAN_LFR)
v_BOOL_t isFastTransitionEnabled;
v_U8_t RoamRssiDiff;
v_U8_t nImmediateRoamRssiDiff;
v_BOOL_t isWESModeEnabled;
#endif
#ifdef FEATURE_WLAN_OKC
v_BOOL_t isOkcIniFeatureEnabled;
#endif
#ifdef WLAN_FEATURE_ROAM_SCAN_OFFLOAD
v_BOOL_t isRoamOffloadScanEnabled;
#endif
hdd_wmm_classification_t PktClassificationBasis; // DSCP or 802.1Q
v_BOOL_t bImplicitQosEnabled;
/* default TSPEC parameters for AC_VO */
sme_QosWmmDirType InfraDirAcVo;
v_U16_t InfraNomMsduSizeAcVo;
v_U32_t InfraMeanDataRateAcVo;
v_U32_t InfraMinPhyRateAcVo;
v_U16_t InfraSbaAcVo;
/* default TSPEC parameters for AC_VI */
sme_QosWmmDirType InfraDirAcVi;
v_U16_t InfraNomMsduSizeAcVi;
v_U32_t InfraMeanDataRateAcVi;
v_U32_t InfraMinPhyRateAcVi;
v_U16_t InfraSbaAcVi;
/* default TSPEC parameters for AC_BE */
sme_QosWmmDirType InfraDirAcBe;
v_U16_t InfraNomMsduSizeAcBe;
v_U32_t InfraMeanDataRateAcBe;
v_U32_t InfraMinPhyRateAcBe;
v_U16_t InfraSbaAcBe;
/* default TSPEC parameters for AC_BK */
sme_QosWmmDirType InfraDirAcBk;
v_U16_t InfraNomMsduSizeAcBk;
v_U32_t InfraMeanDataRateAcBk;
v_U32_t InfraMinPhyRateAcBk;
v_U16_t InfraSbaAcBk;
/* TL related configuration */
v_U32_t DelayedTriggerFrmInt;
/* Wowl pattern */
char wowlPattern[1024];
/* Control for Replay counter. value 1 means
single replay counter for all TID*/
v_BOOL_t bSingleTidRc;
v_U8_t mcastBcastFilterSetting;
v_BOOL_t fhostArpOffload;
bool bcastptrn;
v_BOOL_t ssdp;
#ifdef FEATURE_RUNTIME_PM
v_BOOL_t runtime_pm;
v_U32_t runtime_pm_delay;
#endif
#ifdef FEATURE_WLAN_RA_FILTERING
v_BOOL_t IsRArateLimitEnabled;
v_U16_t RArateLimitInterval;
#endif
#ifdef FEATURE_WLAN_SCAN_PNO
v_BOOL_t PnoOffload;
#endif
v_BOOL_t fhostNSOffload;
v_BOOL_t burstSizeDefinition;
v_U8_t tsInfoAckPolicy;
/* RF Settling Time Clock */
v_U32_t rfSettlingTimeUs;
v_U8_t dynamicPsPollValue;
v_BOOL_t AddTSWhenACMIsOff;
v_BOOL_t fValidateScanList;
v_U32_t infraStaKeepAlivePeriod;
v_U8_t nNullDataApRespTimeout;
v_U8_t nBandCapability;
v_U32_t apDataAvailPollPeriodInMs;
v_BOOL_t fEnableBeaconEarlyTermination;
v_BOOL_t teleBcnWakeupEn;
/* VOS Trace Control*/
v_U16_t vosTraceEnableTL;
v_U16_t vosTraceEnableWDI;
v_U16_t vosTraceEnableHDD;
v_U16_t vosTraceEnableSME;
v_U16_t vosTraceEnablePE;
v_U16_t vosTraceEnablePMC;
v_U16_t vosTraceEnableWDA;
v_U16_t vosTraceEnableSYS;
v_U16_t vosTraceEnableVOSS;
v_U16_t vosTraceEnableSAP;
v_U16_t vosTraceEnableHDDSAP;
v_U16_t vosTraceEnableCFG;
v_U16_t vosTraceEnableADF;
v_U16_t vosTraceEnableTXRX;
v_U16_t vosTraceEnableHTC;
v_U16_t vosTraceEnableHIF;
v_U16_t vosTraceEnableHDDSAPDATA;
v_U16_t vosTraceEnableHDDDATA;
v_U16_t nTeleBcnTransListenInterval;
v_U16_t nTeleBcnMaxListenInterval;
v_U16_t nTeleBcnTransLiNumIdleBeacons;
v_U16_t nTeleBcnMaxLiNumIdleBeacons;
v_U8_t bcnEarlyTermWakeInterval;
v_U8_t enableBypass11d;
v_U8_t enableDFSChnlScan;
v_U8_t enable_dfs_pno_chnl_scan;
v_U8_t enableDynamicDTIM;
v_U8_t ShortGI40MhzEnable;
eHddLinkSpeedReportType reportMaxLinkSpeed;
v_S31_t linkSpeedRssiHigh;
v_S31_t linkSpeedRssiMid;
v_S31_t linkSpeedRssiLow;
#if defined (WLAN_FEATURE_VOWIFI_11R) || defined (FEATURE_WLAN_ESE) || defined(FEATURE_WLAN_LFR)
v_BOOL_t nRoamPrefer5GHz;
v_BOOL_t nRoamIntraBand;
v_U8_t nProbes;
v_U16_t nRoamScanHomeAwayTime;
#endif
v_U8_t enableMCC;
v_U8_t allowMCCGODiffBI;
v_BOOL_t isP2pDeviceAddrAdministrated;
v_U8_t thermalMitigationEnable;
v_U32_t throttlePeriod;
uint32_t throttle_dutycycle_level0;
uint32_t throttle_dutycycle_level1;
uint32_t throttle_dutycycle_level2;
uint32_t throttle_dutycycle_level3;
#if defined(CONFIG_HL_SUPPORT) && defined(QCA_BAD_PEER_TX_FLOW_CL)
bool bad_peer_txctl_enable;
uint32_t bad_peer_txctl_prd;
uint32_t bad_peer_txctl_txq_lmt;
uint32_t bad_peer_tgt_backoff;
uint32_t bad_peer_tgt_report_prd;
uint32_t bad_peer_cond_ieee80211b;
uint32_t bad_peer_delta_ieee80211b;
uint32_t bad_peer_pct_ieee80211b;
uint32_t bad_peer_tput_ieee80211b;
uint32_t bad_peer_limit_ieee80211b;
uint32_t bad_peer_cond_ieee80211ag;
uint32_t bad_peer_delta_ieee80211ag;
uint32_t bad_peer_pct_ieee80211ag;
uint32_t bad_peer_tput_ieee80211ag;
uint32_t bad_peer_limit_ieee80211ag;
uint32_t bad_peer_cond_ieee80211n;
uint32_t bad_peer_delta_ieee80211n;
uint32_t bad_peer_pct_ieee80211n;
uint32_t bad_peer_tput_ieee80211n;
uint32_t bad_peer_limit_ieee80211n;
uint32_t bad_peer_cond_ieee80211ac;
uint32_t bad_peer_delta_ieee80211ac;
uint32_t bad_peer_pct_ieee80211ac;
uint32_t bad_peer_tput_ieee80211ac;
uint32_t bad_peer_limit_ieee80211ac;
#endif
v_U8_t vhtChannelWidth;
v_U8_t vhtRxMCS;
v_U8_t vhtTxMCS;
v_BOOL_t enableTxBF;
v_U8_t txBFCsnValue;
v_U8_t vhtRxMCS2x2;
v_U8_t vhtTxMCS2x2;
v_BOOL_t enable2x2;
uint8_t chain_mask_2g_rx;
uint8_t chain_mask_5g_rx;
uint8_t chain_mask_2g_tx;
uint8_t chain_mask_5g_tx;
uint32_t vdev_type_nss_2g;
uint32_t vdev_type_nss_5g;
v_BOOL_t txchainmask1x1;
v_BOOL_t rxchainmask1x1;
v_BOOL_t enableMuBformee;
v_BOOL_t enableVhtpAid;
v_BOOL_t enableVhtGid;
v_BOOL_t enableTxBFin20MHz;
v_U8_t enableAmpduPs;
v_U8_t enableHtSmps;
v_U8_t htSmps;
v_U8_t enableModulatedDTIM;
v_U32_t fEnableMCAddrList;
v_BOOL_t enableFirstScan2GOnly;
v_BOOL_t skipDfsChnlInP2pSearch;
v_BOOL_t ignoreDynamicDtimInP2pMode;
v_U16_t configMccParam;
v_U32_t numBuffAdvert;
v_BOOL_t enableRxSTBC;
v_BOOL_t enableTxSTBC;
v_BOOL_t enableRxLDPC;
v_BOOL_t enable5gEBT;
#ifdef FEATURE_WLAN_TDLS
v_BOOL_t fEnableTDLSSupport;
v_BOOL_t fEnableTDLSImplicitTrigger;
v_U32_t fTDLSTxStatsPeriod;
v_U32_t fTDLSTxPacketThreshold;
v_U32_t fTDLSDiscoveryPeriod;
v_U32_t fTDLSMaxDiscoveryAttempt;
v_U32_t fTDLSIdleTimeout;
v_U32_t fTDLSIdlePacketThreshold;
v_U32_t fTDLSRSSIHysteresis;
v_S31_t fTDLSRSSITriggerThreshold;
v_S31_t fTDLSRSSITeardownThreshold;
v_S31_t fTDLSRSSIDelta;
v_U32_t fTDLSUapsdMask; // what ACs to setup U-APSD for TDLS
v_U32_t fEnableTDLSBufferSta;
v_U32_t fEnableTDLSSleepSta;
v_U32_t fTDLSPuapsdInactivityTimer;
v_U32_t fTDLSRxFrameThreshold;
v_U32_t fTDLSPuapsdPTIWindow;
v_U32_t fTDLSPuapsdPTRTimeout;
v_BOOL_t fTDLSExternalControl;
v_U32_t fEnableTDLSOffChannel;
v_U32_t fEnableTDLSWmmMode;
v_U8_t fTDLSPrefOffChanNum;
v_U8_t fTDLSPrefOffChanBandwidth;
uint8_t enable_tdls_scan;
uint32_t tdls_peer_kickout_threshold;
#endif
#ifdef WLAN_SOFTAP_VSTA_FEATURE
v_BOOL_t fEnableVSTASupport;
#endif
#ifdef WLAN_ACTIVEMODE_OFFLOAD_FEATURE
v_BOOL_t fEnableActiveModeOffload;
#endif
v_U32_t enableLpwrImgTransition;
v_U8_t scanAgingTimeout;
v_BOOL_t enableTxLdpc;
v_U8_t disableLDPCWithTxbfAP;
v_U8_t enableMCCAdaptiveScheduler;
v_BOOL_t isAndroidPsEn;
v_BOOL_t sapAllowAllChannel;
v_U8_t retryLimitZero;
v_U8_t retryLimitOne;
v_U8_t retryLimitTwo;
v_U8_t disableAggWithBtc;
char listOfNonDfsCountryCode[128];
v_BOOL_t enableSSR;
v_U32_t cfgMaxMediumTime;
#ifdef WLAN_FEATURE_ROAM_SCAN_OFFLOAD
/* Flag indicating whether legacy fast roam during concurrency is enabled in cfg.ini or not */
v_BOOL_t bFastRoamInConIniFeatureEnabled;
#endif
v_BOOL_t fEnableAdaptRxDrain;
v_U8_t flexConnectPowerFactor;
v_BOOL_t enableIbssHeartBeatOffload;
v_U32_t antennaDiversity;
v_BOOL_t fEnableSNRMonitoring;
/*PNO related parameters */
#ifdef FEATURE_WLAN_SCAN_PNO
v_BOOL_t configPNOScanSupport;
v_U32_t configPNOScanTimerRepeatValue;
uint32_t pno_slow_scan_multiplier;
#endif
v_U8_t max_amsdu_num;
v_U8_t nSelect5GHzMargin;
v_U8_t isCoalesingInIBSSAllowed;
/* IBSS Power Save related parameters */
v_U32_t ibssATIMWinSize;
v_U8_t isIbssPowerSaveAllowed;
v_U8_t isIbssPowerCollapseAllowed;
v_U8_t isIbssAwakeOnTxRx;
v_U32_t ibssInactivityCount;
v_U32_t ibssTxSpEndInactivityTime;
v_U32_t ibssPsWarmupTime;
v_U32_t ibssPs1RxChainInAtimEnable;
v_BOOL_t enableTCPChkSumOffld;
v_BOOL_t enableIPChecksumOffload;
v_BOOL_t enablePowersaveOffload;
v_BOOL_t enablefwprint;
v_BOOL_t enablefwlog;
v_BOOL_t enableFwSelfRecovery;
v_BOOL_t fP2pListenOffload;
#ifdef WLAN_FEATURE_11AC
v_U8_t fVhtAmpduLenExponent;
v_U32_t vhtMpduLen;
bool enableVhtFor24GHzBand;
bool enable_vendor_vht_for_24ghz_band;
#endif
#ifdef IPA_OFFLOAD
v_U32_t IpaConfig;
v_BOOL_t IpaClkScalingEnable;
v_U32_t IpaDescSize;
v_U32_t IpaHighBandwidthMbps;
v_U32_t IpaMediumBandwidthMbps;
v_U32_t IpaLowBandwidthMbps;
#endif
#ifdef FEATURE_WLAN_MCC_TO_SCC_SWITCH
v_U32_t WlanMccToSccSwitchMode;
bool wlan_band_switch_enable;
bool wlan_ap_p2pgo_conc_enable;
bool wlan_ap_p2pclient_conc_enable;
#endif
#ifdef FEATURE_WLAN_AUTO_SHUTDOWN
v_U32_t WlanAutoShutdown;
#endif
v_U8_t maxWoWFilters;
v_U8_t wowEnable;
v_U8_t max_sap_peers;
v_U8_t max_go_peers;
v_U8_t disableDFSChSwitch;
v_U8_t enable_radar_war;
v_U8_t enableDFSMasterCap;
v_U16_t thermalTempMinLevel0;
v_U16_t thermalTempMaxLevel0;
v_U16_t thermalTempMinLevel1;
v_U16_t thermalTempMaxLevel1;
v_U16_t thermalTempMinLevel2;
v_U16_t thermalTempMaxLevel2;
v_U16_t thermalTempMinLevel3;
v_U16_t thermalTempMaxLevel3;
#ifdef FEATURE_WLAN_THERMAL_SHUTDOWN
/* Thermal Shutdown feature is enabled or not. */
bool thermal_shutdown_enabled;
/* Thermal Shutdown is autonomous in driver or requested by user app. */
bool thermal_shutdown_auto_enabled;
uint16_t thermal_resume_threshold;
uint16_t thermal_warning_threshold;
uint16_t thermal_suspend_threshold;
uint16_t thermal_sample_rate;
#endif
v_U32_t TxPower2g;
v_U32_t TxPower5g;
v_U32_t gEnableDebugLog;
uint8_t enable_ac_txq_optimize;
v_U8_t rxhandle;
uint8_t cpu_map_list[CFG_RPS_RX_QUEUE_CPU_MAP_LIST_LEN];
v_BOOL_t fDfsPhyerrFilterOffload;
v_U8_t gSapPreferredChanLocation;
v_U8_t gDisableDfsJapanW53;
v_BOOL_t gEnableOverLapCh;
v_BOOL_t fRegChangeDefCountry;
v_U8_t acsScanBandPreference;
uint32_t auto_channel_select_weight;
uint8_t enable_rts_sifsbursting;
uint8_t max_mpdus_inampdu;
uint16_t max_ht_mcs_txdata;
bool sap_get_peer_info;
bool disable_abg_rate_txdata;
uint8_t rate_for_tx_mgmt;
uint8_t rate_for_tx_mgmt_2g;
uint8_t rate_for_tx_mgmt_5g;
#ifdef QCA_LL_TX_FLOW_CT
v_U32_t TxFlowLowWaterMark;
v_U32_t TxFlowHighWaterMarkOffset;
v_U32_t TxFlowMaxQueueDepth;
v_U32_t TxLbwFlowLowWaterMark;
v_U32_t TxLbwFlowHighWaterMarkOffset;
v_U32_t TxLbwFlowMaxQueueDepth;
v_U32_t TxHbwFlowLowWaterMark;
v_U32_t TxHbwFlowHighWaterMarkOffset;
v_U32_t TxHbwFlowMaxQueueDepth;
#endif /* QCA_LL_TX_FLOW_CT */
uint8_t force_sap_acs;
uint8_t force_sap_acs_st_ch;
uint8_t force_sap_acs_end_ch;
v_U16_t acsBandSwitchThreshold;
v_U8_t apMaxOffloadPeers;
v_U8_t apMaxOffloadReorderBuffs;
v_BOOL_t advertiseConcurrentOperation;
v_BOOL_t enableMemDeepSleep;
v_U32_t defaultRateIndex24Ghz;
char overrideCountryCode[4];
v_U8_t allowDFSChannelRoam;
v_BOOL_t debugP2pRemainOnChannel;
v_BOOL_t enablePacketLog;
#ifdef FEATURE_BUS_BANDWIDTH
v_U32_t busBandwidthHighThreshold;
v_U32_t busBandwidthMediumThreshold;
v_U32_t busBandwidthLowThreshold;
v_U32_t busBandwidthComputeInterval;
v_U32_t tcpDelackThresholdHigh;
v_U32_t tcpDelackThresholdLow;
uint32_t tcpDelackTimerCount;
uint32_t tcp_tx_high_tput_thres;
#endif /* FEATURE_BUS_BANDWIDTH */
#ifdef QCA_SUPPORT_TXRX_HL_BUNDLE
uint32_t pkt_bundle_threshold_high;
uint32_t pkt_bundle_threshold_low;
uint16_t pkt_bundle_timer_value;
uint16_t pkt_bundle_size;
#endif
#ifdef QCA_SUPPORT_TXRX_DRIVER_TCP_DEL_ACK
uint8_t del_ack_enable;
uint32_t del_ack_threshold_high;
uint32_t del_ack_threshold_low;
uint16_t del_ack_timer_value;
uint16_t del_ack_pkt_count;
#endif
/* FW debug log parameters */
v_U32_t enableFwLogType;
v_U32_t enableFwLogLevel;
v_U8_t enableFwModuleLogLevel[FW_MODULE_LOG_LEVEL_STRING_LENGTH];
/* RTS profile parameter */
uint32_t rts_profile;
#ifdef WLAN_FEATURE_11W
v_U32_t pmfSaQueryMaxRetries;
v_U32_t pmfSaQueryRetryInterval;
#endif
v_U8_t gMaxConcurrentActiveSessions;
v_U8_t ignoreCAC;
v_BOOL_t IsSapDfsChSifsBurstEnabled;
#ifdef FEATURE_GREEN_AP
v_BOOL_t enableGreenAP;
bool enable_egap;
uint32_t egap_feature_flag;
uint32_t egap_inact_time;
uint32_t egap_wait_time;
#endif
bool crash_inject_enabled;
v_S31_t dfsRadarPriMultiplier;
v_U8_t reorderOffloadSupport;
uint8_t enable_hostapd_edca_local;
#ifdef WLAN_FEATURE_ROAM_OFFLOAD
v_BOOL_t isRoamOffloadEnabled;
#endif
#ifdef IPA_UC_OFFLOAD
v_U8_t IpaUcOffloadEnabled;
v_U32_t IpaUcTxBufCount;
v_U32_t IpaUcTxBufSize;
v_U32_t IpaUcRxIndRingCount;
v_U32_t IpaUcTxPartitionBase;
#endif /* IPA_UC_OFFLOAD */
#ifdef WLAN_LOGGING_SOCK_SVC_ENABLE
/* WLAN Logging */
v_U32_t wlanLoggingEnable;
v_U32_t wlanLoggingFEToConsole;
v_U32_t wlanLoggingNumBuf;
#endif /* WLAN_LOGGING_SOCK_SVC_ENABLE */
v_U8_t enableSifsBurst;
#ifdef WLAN_FEATURE_LPSS
v_BOOL_t enablelpasssupport;
#endif
#ifdef WLAN_FEATURE_NAN
bool enable_nan_support;
#endif
v_BOOL_t enableSelfRecovery;
#ifdef FEATURE_WLAN_FORCE_SAP_SCC
v_U8_t SapSccChanAvoidance;
#endif /* FEATURE_WLAN_FORCE_SAP_SCC */
v_BOOL_t enableSapSuspend;
#ifdef WLAN_FEATURE_EXTWOW_SUPPORT
v_U8_t extWowGotoSuspend;
v_U8_t extWowApp1WakeupPinNumber;
v_U8_t extWowApp2WakeupPinNumber;
v_U32_t extWowApp2KAInitPingInterval;
v_U32_t extWowApp2KAMinPingInterval;
v_U32_t extWowApp2KAMaxPingInterval;
v_U32_t extWowApp2KAIncPingInterval;
v_U16_t extWowApp2TcpSrcPort;
v_U16_t extWowApp2TcpDstPort;
v_U32_t extWowApp2TcpTxTimeout;
v_U32_t extWowApp2TcpRxTimeout;
#endif
v_BOOL_t gEnableDeauthToDisassocMap;
#ifdef DHCP_SERVER_OFFLOAD
v_BOOL_t enableDHCPServerOffload;
v_U32_t dhcpMaxNumClients;
uint32_t dhcp_client_start_ip;
v_U8_t dhcpServerIP[IPADDR_STRING_LENGTH];
#endif /* DHCP_SERVER_OFFLOAD */
bool enable_mac_spoofing;
#ifdef IPA_UC_STA_OFFLOAD
bool ipa_uc_sta_offload;
#endif
uint8_t conc_custom_rule1;
uint8_t conc_custom_rule2;
uint8_t is_sta_connection_in_5gz_enabled;
#ifdef MDNS_OFFLOAD
uint32_t enable_mdns_offload;
uint8_t mdns_fqdn[MAX_MDNS_FQDN_LEN];
uint8_t mdns_uniquefqdn[MAX_MDNS_FQDN_LEN];
uint8_t mdns_resp_type_a[MAX_MDNS_RESP_LEN];
uint32_t mdns_resp_type_a_ipv4;
uint8_t mdns_resp_type_txt[MAX_MDNS_RESP_LEN];
uint8_t mdns_resp_type_txt_content[MAX_MDNS_RESP_LEN];
uint8_t mdns_resp_type_ptr[MAX_MDNS_RESP_LEN];
uint8_t mdns_resp_type_ptr_dname[MAX_MDNS_RESP_LEN];
uint8_t mdns_resp_type_srv[MAX_MDNS_RESP_LEN];
uint16_t mdns_resp_type_srv_priority;
uint16_t mdns_resp_type_srv_weight;
uint16_t mdns_resp_type_srv_port;
uint8_t mdns_resp_type_srv_target[MAX_MDNS_RESP_LEN];
#endif /* MDNS_OFFLOAD */
#ifdef SAP_AUTH_OFFLOAD
bool enable_sap_auth_offload;
uint32_t sap_auth_offload_sec_type;
uint8_t sap_auth_offload_key[WLAN_PSK_STRING_LENGTH];
uint32_t connect_fail_count;
uint32_t connect_fail_duration;
uint32_t connect_block_duration;
#endif /* SAP_AUTH_OFFLOAD */
uint8_t dot11p_mode;
bool is_ramdump_enabled;
uint16_t p2p_listen_defer_interval;
uint8_t sap_dot11mc;
uint32_t sta_miracast_mcc_rest_time_val;
#ifdef FEATURE_AP_MCC_CH_AVOIDANCE
bool sap_channel_avoidance;
#endif /* FEATURE_AP_MCC_CH_AVOIDANCE */
uint8_t sap_p2p_11ac_override;
uint8_t prefer_non_dfs_on_radar;
uint32_t coex_page_p2p_bt_interval;
uint32_t coex_page_p2p_wlan_interval;
uint32_t coex_page_sta_bt_interval;
uint32_t coex_page_sta_wlan_interval;
uint32_t coex_page_sap_bt_interval;
uint32_t coex_page_sap_wlan_interval;
uint32_t coex_config_wlan_conn_val0;
uint32_t coex_config_wlan_conn_val1;
uint32_t dynamic_wlan_bt_coex;
uint32_t antenna_isolation;
uint32_t coex_page_p2p_sta_bt_interval;
uint32_t coex_page_p2p_sta_wlan_interval;
uint32_t coex_inquiry_sta_bt_interval;
uint32_t coex_inquiry_sta_wlan_interval;
uint32_t coex_inquiry_sap_bt_interval;
uint32_t coex_inquiry_sap_wlan_interval;
uint32_t coex_inquiry_p2p_bt_interval;
uint32_t coex_inquiry_p2p_wlan_interval;
uint32_t coex_inquiry_p2p_sta_bt_interval;
uint32_t coex_inquiry_p2p_sta_wlan_interval;
uint32_t coex_tx_power;
v_BOOL_t gEnableNoAck;
#ifdef FEATURE_COEX_PTA_CONFIG_ENABLE
uint8_t coex_pta_config_enable;
uint32_t coex_pta_config_param;
#endif
uint8_t inform_bss_rssi_raw;
#ifdef WLAN_FEATURE_TSF
uint32_t tsf_gpio_pin;
#ifdef WLAN_FEATURE_TSF_PLUS
uint8_t tsf_ptp_options;
#endif /* WLAN_FEATURE_TSF_PLUS */
#endif
uint8_t multicast_host_fw_msgs;
uint32_t fine_time_meas_cap;
#ifdef FEATURE_SECURE_FIRMWARE
bool enable_fw_hash_check;
#endif
v_BOOL_t sendDeauthBeforeCon;
v_BOOL_t ignorePeerErpInfo;
uint16_t pkt_err_disconn_th;
bool tx_chain_mask_cck;
uint8_t tx_chain_mask_1ss;
uint8_t tx_sch_delay;
uint16_t self_gen_frm_pwr;
#ifdef FEATURE_WLAN_EXTSCAN
bool extscan_enabled;
uint32_t extscan_passive_max_chn_time;
uint32_t extscan_passive_min_chn_time;
uint32_t extscan_active_max_chn_time;
uint32_t extscan_active_min_chn_time;
#endif
#ifdef WLAN_FEATURE_UDP_RESPONSE_OFFLOAD
bool udp_resp_offload_support;
uint32_t dest_port;
char payload_filter[MAX_LEN_UDP_RESP_OFFLOAD];
char response_payload[MAX_LEN_UDP_RESP_OFFLOAD];
#endif
uint16_t max_mgmt_tx_fail_count;
int8_t first_scan_bucket_threshold;
#ifdef WLAN_FEATURE_WOW_PULSE
bool wow_pulse_support;
uint8_t wow_pulse_pin;
uint16_t wow_pulse_interval_high;
uint16_t wow_pulse_interval_low;
#endif
bool enable_go_cts2self_for_sta;
uint8_t ht_mpdu_density;
bool indoor_channel_support;
uint16_t sap_tx_leakage_threshold;
bool ignore_peer_ht_opmode;
bool mib_stats_enabled;
bool enable_fatal_event;
#ifdef WLAN_FEATURE_NAN_DATAPATH
bool enable_nan_datapath;
uint8_t nan_datapath_ndi_channel;
#endif
bool goptimize_chan_avoid_event;
bool g_use_otpmac;
uint32_t tx_aggregation_size;
uint32_t rx_aggregation_size;
bool bug_report_for_scan_results;
bool enable_edca_params;
uint32_t edca_vo_cwmin;
uint32_t edca_vi_cwmin;
uint32_t edca_bk_cwmin;
uint32_t edca_be_cwmin;
uint32_t edca_vo_cwmax;
uint32_t edca_vi_cwmax;
uint32_t edca_bk_cwmax;
uint32_t edca_be_cwmax;
uint32_t edca_vo_aifs;
uint32_t edca_vi_aifs;
uint32_t edca_bk_aifs;
uint32_t edca_be_aifs;
bool enable_dynamic_sta_chainmask;
/* Tuning TX sched parameters for VO (skip credit limit credit disc) */
uint8_t tx_sched_wrr_vo[TX_SCHED_WRR_PARAM_STRING_LENGTH];
/* Tuning TX sched parameters for VI (skip credit limit credit disc) */
uint8_t tx_sched_wrr_vi[TX_SCHED_WRR_PARAM_STRING_LENGTH];
/* Tuning TX sched parameters for BE (skip credit limit credit disc) */
uint8_t tx_sched_wrr_be[TX_SCHED_WRR_PARAM_STRING_LENGTH];
/* Tuning TX sched parameters for BK (skip credit limit credit disc) */
uint8_t tx_sched_wrr_bk[TX_SCHED_WRR_PARAM_STRING_LENGTH];
/* parameter to control GTX */
uint32_t tgt_gtx_usr_cfg;
bool sap_internal_restart;
bool bug_on_reinit_failure;
/* parameter to force sap into 11n */
bool sap_force_11n_for_11ac;
uint8_t sap_max_inactivity_override;
bool active_mode_offload;
/* parameter for indicating sifs burst duration to fw */
uint8_t sifs_burst_duration;
bool bpf_packet_filter_enable;
/* parameter for defer timer for enabling TDLS on p2p listen */
uint16_t tdls_enable_defer_time;
uint32_t host_wakeup_gpio;
uint32_t host_wakeup_type;
uint32_t target_wakeup_gpio;
uint32_t target_wakeup_type;
uint32_t max_sched_scan_plan_interval;
uint32_t max_sched_scan_plan_iterations;
/* 5G preference parameters for boosting RSSI */
bool enable_5g_band_pref;
int8_t rssi_boost_threshold_5g;
uint8_t rssi_boost_factor_5g;
uint8_t max_rssi_boost_5g;
/* 5G preference parameters for dropping RSSI*/
int8_t rssi_penalize_threshold_5g;
uint8_t rssi_penalize_factor_5g;
uint8_t max_rssi_penalize_5g;
bool probe_req_ie_whitelist;
/* probe request bit map ies */
uint32_t probe_req_ie_bitmap_0;
uint32_t probe_req_ie_bitmap_1;
uint32_t probe_req_ie_bitmap_2;
uint32_t probe_req_ie_bitmap_3;
uint32_t probe_req_ie_bitmap_4;
uint32_t probe_req_ie_bitmap_5;
uint32_t probe_req_ie_bitmap_6;
uint32_t probe_req_ie_bitmap_7;
/* Probe Request multiple vendor OUIs */
uint8_t probe_req_ouis[MAX_PRB_REQ_VENDOR_OUI_INI_LEN];
/* parameter for indicating sub20 channel width */
uint8_t sub_20_channel_width;
bool sta_change_cc_via_beacon;
uint32_t rx_wakelock_timeout;
/* beacon count before channel switch */
uint8_t sap_chanswitch_beacon_cnt;
uint8_t sap_chanswitch_mode;
uint8_t dfs_beacon_tx_enhanced;
uint16_t reduced_beacon_interval;
uint32_t arp_ac_category;
/* parameter to control probe resp offloads */
bool sap_probe_resp_offload;
uint32_t sta_auth_retries_for_code17;
uint8_t skip_mac_config;
#ifdef WLAN_FEATURE_DSRC
bool ocb_tx_per_pkt_stats_enabled;
#endif
bool cca_threshold_enable;
uint32_t cca_threshold_2g;
uint32_t cca_threshold_5g;
uint8_t mon_on_sta_enable;
#ifdef WLAN_FEATURE_SAP_TO_FOLLOW_STA_CHAN
uint32_t sap_ch_switch_with_csa;
#endif//#ifdef WLAN_FEATURE_SAP_TO_FOLLOW_STA_CHAN
uint32_t dpd_recalib_enabled;
uint32_t dpd_recalib_delta_degreehigh;
uint32_t dpd_recalib_delta_degreelow;
uint32_t dpd_recalib_cooling_time;
uint32_t dpd_recalib_duration_max;
};
typedef struct hdd_config hdd_config_t;
#ifdef WLAN_FEATURE_MBSSID
typedef struct mbssid_sap_dyn_ini_config {
/* ACS Parameters */
v_U8_t acsScanBandPreference;
v_U16_t acsBandSwitchThreshold;
} mbssid_sap_dyn_ini_config_t;
#endif
#define VAR_OFFSET( _Struct, _Var ) (offsetof(_Struct, _Var))
#define VAR_SIZE( _Struct, _Var ) (sizeof(((_Struct *)0)->_Var))
#define VAR_FLAGS_NONE ( 0 )
#define VAR_FLAGS_REQUIRED ( 1 << 0 ) // bit 0 is Required or Optional
#define VAR_FLAGS_OPTIONAL ( 0 << 0 )
#define VAR_FLAGS_RANGE_CHECK ( 1 << 1 ) // bit 1 tells if range checking is required.
// If less than MIN, assume MIN.
// If greater than MAX, assume MAX.
#define VAR_FLAGS_RANGE_CHECK_ASSUME_MINMAX ( VAR_FLAGS_RANGE_CHECK )
/*
* bit 2 is range checking that assumes the DEFAULT value
* If less than MIN, assume DEFAULT,
* If greater than MAX, assume DEFAULT.
*/
#define VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT ( 1 << 2 )
/*
* Bit 3 indicates that the config item can be modified dynamically
* on a running system
*/
#define VAR_FLAGS_DYNAMIC_CFG ( 1 << 3 )
typedef enum
{
WLAN_PARAM_Integer,
WLAN_PARAM_SignedInteger,
WLAN_PARAM_HexInteger,
WLAN_PARAM_String,
WLAN_PARAM_MacAddr,
}WLAN_PARAMETER_TYPE;
#define REG_VARIABLE( _Name, _Type, _Struct, _VarName, \
_Flags, _Default, _Min, _Max ) \
{ \
( _Name ), \
( _Type ), \
( _Flags ), \
VAR_OFFSET( _Struct, _VarName ), \
VAR_SIZE( _Struct, _VarName ), \
( _Default ), \
( _Min ), \
( _Max ), \
NULL, \
0 \
}
#define REG_DYNAMIC_VARIABLE( _Name, _Type, _Struct, _VarName, \
_Flags, _Default, _Min, _Max, \
_CBFunc, _CBParam ) \
{ \
( _Name ), \
( _Type ), \
( VAR_FLAGS_DYNAMIC_CFG | ( _Flags ) ), \
VAR_OFFSET( _Struct, _VarName ), \
VAR_SIZE( _Struct, _VarName ), \
( _Default ), \
( _Min ), \
( _Max ), \
( _CBFunc ), \
( _CBParam ) \
}
#define REG_VARIABLE_STRING( _Name, _Type, _Struct, _VarName, \
_Flags, _Default ) \
{ \
( _Name ), \
( _Type ), \
( _Flags ), \
VAR_OFFSET( _Struct, _VarName ), \
VAR_SIZE( _Struct, _VarName ), \
(unsigned long)( _Default ), \
0, \
0, \
NULL, \
0 \
}
typedef struct tREG_TABLE_ENTRY {
char* RegName; // variable name in the qcom_cfg.ini file
WLAN_PARAMETER_TYPE RegType; // variable type in the hdd_config_t structure
unsigned long Flags; // Specify optional parms and if RangeCheck is performed
unsigned short VarOffset; // offset to field from the base address of the structure
unsigned short VarSize; // size (in bytes) of the field
unsigned long VarDefault; // default value to use
unsigned long VarMin; // minimum value, for range checking
unsigned long VarMax; // maximum value, for range checking
// Dynamic modification notifier
void (*pfnDynamicNotify)(hdd_context_t *pHddCtx, unsigned long NotifyId);
unsigned long NotifyId; // Dynamic modification identifier
} REG_TABLE_ENTRY;
static __inline unsigned long utilMin( unsigned long a, unsigned long b )
{
return( ( a < b ) ? a : b );
}
/*---------------------------------------------------------------------------
Function declarations and documentation
-------------------------------------------------------------------------*/
VOS_STATUS hdd_parse_config_ini(hdd_context_t *pHddCtx);
uint32_t hdd_validate_prb_req_ie_bitmap(hdd_context_t* pHddCtx);
VOS_STATUS hdd_parse_probe_req_ouis(hdd_context_t* pHddCtx);
void hdd_free_probe_req_ouis(hdd_context_t* pHddCtx);
VOS_STATUS hdd_update_mac_config(hdd_context_t *pHddCtx);
VOS_STATUS hdd_set_sme_config( hdd_context_t *pHddCtx );
VOS_STATUS hdd_set_sme_chan_list(hdd_context_t *hdd_ctx);
v_BOOL_t hdd_update_config_dat ( hdd_context_t *pHddCtx );
VOS_STATUS hdd_cfg_get_global_config(hdd_context_t *pHddCtx, char *pBuf,
int buflen);
#ifdef WLAN_FEATURE_MBSSID
VOS_STATUS hdd_cfg_get_sap_dyn_config(hdd_adapter_t *pAdapter, char *pBuf,
int buflen);
#endif
eCsrPhyMode hdd_cfg_xlate_to_csr_phy_mode( eHddDot11Mode dot11Mode );
VOS_STATUS hdd_execute_global_config_command(hdd_context_t *pHddCtx,
char *command);
#ifdef WLAN_FEATURE_MBSSID
VOS_STATUS hdd_execute_sap_dyn_config_command(hdd_adapter_t *pAdapter,
char *command);
#endif
tANI_BOOLEAN hdd_is_okc_mode_enabled(hdd_context_t *pHddCtx);
VOS_STATUS hdd_set_idle_ps_config(hdd_context_t *pHddCtx, v_U32_t val);
void hdd_update_tgt_cfg(void *context, void *param);
/**
* hdd_update_dfs_cac_block_tx_flag() - to set dfs_cac_block_tx flag
* @context: Pointer to hdd contex
* @cac_block_tx: value to be set
*
* Return: none
*/
void hdd_update_dfs_cac_block_tx_flag(void *context, bool cac_block_tx);
bool hdd_dfs_indicate_radar(void *context, void *param);
VOS_STATUS hdd_string_to_u8_array( char *str, tANI_U8 *intArray, tANI_U8 *len,
tANI_U8 intArrayMaxLen);
VOS_STATUS hdd_hex_string_to_u8_array(char *str, uint8_t *array, uint8_t *len,
uint8_t array_max_len);
VOS_STATUS hdd_hex_string_to_u16_array(char *str,
uint16_t *int_array, uint8_t *len, uint8_t int_array_max_len);
#ifdef MDNS_OFFLOAD
VOS_STATUS hdd_string_to_string_array(char *data, uint8_t *datalist,
char separator, uint8_t *num_entries,
uint8_t max_entries, uint8_t max_len_entry);
#endif
#ifdef WLAN_FEATURE_MBSSID
v_VOID_t hdd_mbssid_apply_def_cfg_ini(hdd_adapter_t *pAdapter);
#endif
void print_hdd_cfg(hdd_context_t *pHddCtx);
void hdd_set_btc_bt_wlan_interval(hdd_context_t *pHddCtx);
VOS_STATUS hdd_update_nss(hdd_context_t *hdd_ctx, uint8_t nss);
/**
* hdd_set_dfs_regdomain() - During SSR, restore DFS regulatory domain
* with valid value
* @phddctx: context for hdd
* @restore: valure to verify the state
*
* Return: None
*/
void hdd_set_dfs_regdomain(hdd_context_t *phddctx, bool restore);
/**
* hdd_cfg_is_ptp_opt_enable - check if PTP Option is enabled
*
* @hdd_ctx_ptr: context for hdd
*
* This function returns true if PTP option is enabled, returns
* false if PTP option is disabled
*/
#ifdef WLAN_FEATURE_TSF_PLUS
bool hdd_cfg_is_ptp_opt_enable(hdd_context_t *hdd_ctx_ptr);
#else
static inline
bool hdd_cfg_is_ptp_opt_enable(hdd_context_t *hdd_ctx_ptr)
{
return 0;
}
#endif
#ifdef FEATURE_WLAN_SUB_20_MHZ
uint8_t hdd_cfg_get_sub20_dyn_capabilities(hdd_context_t *hdd_ctx_ptr);
uint8_t hdd_cfg_get_static_sub20_channel_width(hdd_context_t *hdd_ctx_ptr);
bool hdd_cfg_is_sub20_channel_width_enabled(hdd_context_t *hdd_ctx_ptr);
bool hdd_cfg_is_static_sub20_channel_width_enabled(hdd_context_t *hdd_ctx_ptr);
uint8_t hdd_cfg_get_sub20_channel_config(hdd_context_t *hdd_ctx_ptr);
#else
static inline
uint8_t hdd_cfg_get_sub20_dyn_capabilities(hdd_context_t *hdd_ctx_ptr)
{
return SUB20_MODE_NONE;
}
static inline
uint8_t hdd_cfg_get_static_sub20_channel_width(hdd_context_t *hdd_ctx_ptr)
{
return SUB20_MODE_NONE;
}
static inline
bool hdd_cfg_is_sub20_channel_width_enabled(hdd_context_t *hdd_ctx_ptr)
{
return false;
}
static inline
bool hdd_cfg_is_static_sub20_channel_width_enabled(hdd_context_t *hdd_ctx_ptr)
{
return false;
}
static inline
uint8_t hdd_cfg_get_sub20_channel_config(hdd_context_t *hdd_ctx_ptr)
{
return 0;
}
#endif
#endif