aboutsummaryrefslogtreecommitdiff
path: root/wifi
diff options
context:
space:
mode:
Diffstat (limited to 'wifi')
-rw-r--r--[-rwxr-xr-x]wifi/WCNSS_qcom_cfg.ini258
-rw-r--r--wifi/p2p_supplicant_overlay.conf3
2 files changed, 116 insertions, 145 deletions
diff --git a/wifi/WCNSS_qcom_cfg.ini b/wifi/WCNSS_qcom_cfg.ini
index 59e9621..4c224ad 100755..100644
--- a/wifi/WCNSS_qcom_cfg.ini
+++ b/wifi/WCNSS_qcom_cfg.ini
@@ -7,11 +7,12 @@
gEnableImps=1
# Enable/Disable Idle Scan
+
gEnableIdleScan=0
# Increase sleep duration (seconds) during IMPS
-# 0 implies no periodic wake up from IMPS. Periodic wakeup is
+# 0 implies no periodic wake up from IMPS. Periodic wakeup is
# unnecessary if Idle Scan is disabled.
gImpsModSleepTime=0
@@ -25,6 +26,7 @@ gEnableBmps=1
gEnableSuspend=3
+
# Phy Mode (auto, b, g, n, etc)
# Valid values are 0-9, with 0 = Auto, 4 = 11n, 9 = 11ac
# 1 = 11abg, 2 = 11b, 3 = 11g, 5 = 11g only, 6 = 11n only
@@ -169,8 +171,8 @@ EseEnabled=1
ImplicitQosIsEnabled=0
gNeighborScanTimerPeriod=200
-gNeighborLookupThreshold=85
-gNeighborReassocThreshold=88
+gNeighborLookupThreshold=76
+gNeighborReassocThreshold=81
gNeighborScanChannelMinTime=20
gNeighborScanChannelMaxTime=30
@@ -182,9 +184,9 @@ gMaxNeighborReqTries=3
FastRoamEnabled=1
#Check if the AP to which we are roaming is better than current AP in terms of RSSI.
-#Checking is disabled if set to Zero.Otherwise it will use this value as to how better
+#Checking is disabled if set to Zero.Otherwise it will use this value as to how better
#the RSSI of the new/roamable AP should be for roaming
-RoamRssiDiff=5
+RoamRssiDiff=3
# If the RSSI of any available candidate is better than currently associated
# AP by at least gImmediateRoamRssiDiff, then being to roam immediately (without
@@ -228,6 +230,15 @@ gAPAutoShutOff=0
gWlanAutoShutdown = 0
+# SAP auto channel selection configuration
+
+# 0 = disable auto channel selection
+
+# 1 = enable auto channel selection, channel provided by supplicant will be ignored
+
+gApAutoChannelSelection=0
+
+
# Listen Energy Detect Mode Configuration
# Valid values 0-128
@@ -272,13 +283,28 @@ BandCapability=0
#Beacon Early Termination (1 = enable the BET feature, 0 = disable)
-enableBeaconEarlyTermination=1
+enableBeaconEarlyTermination=0
+
+beaconEarlyTerminationWakeInterval=3
+
+
+#SOFTAP Channel Range selection
-beaconEarlyTerminationWakeInterval=8
+gAPChannelSelectStartChannel=1
+
+gAPChannelSelectEndChannel=11
+
+
+#SOFTAP Channel Range selection Operating band
+
+# 0:2.4GHZ 1: LOW-5GHZ 2:MID-5GHZ 3:HIGH-5GHZ 4: 4.9HZ BAND
+
+gAPChannelSelectOperatingBand=0
#Channel Bonding
gChannelBondingMode5GHz=1
+gChannelBondingMode24GHz=0
#Enable Keep alive with non-zero period value
@@ -299,17 +325,9 @@ gStaKeepAlivePeriod = 30
#gGoLinkMonitorPeriod/ gApLinkMonitorPeriod is period where link is idle and it is period
#where we send NULL frame.
-gApLinkMonitorPeriod = 30
-
-gGoLinkMonitorPeriod = 10
-
-#gGoKeepAlivePeriod/gApKeepAlivePeriod is time to spend to check whether frame are succeed to send or not.
-#Hence total effective detection time is gGoLinkMonitorPeriod+ gGoKeepAlivePeriod/gApLinkMonitorPeriod+ gApKeepAlivePeriod.
-
-
-gGoKeepAlivePeriod = 3
+#gApLinkMonitorPeriod = 10
-gApKeepAlivePeriod = 10
+#gGoLinkMonitorPeriod = 10
#If set will start with active scan after driver load, otherwise will start with
@@ -323,14 +341,10 @@ gEnableBypass11d=1
gEnableDFSChnlScan=1
-# Enable DFS channel roam
-# 0: DISABLE, 1: ENABLED_NORMAL, 2: ENABLED_ACTIVE
-gAllowDFSChannelRoam=1
-
-gInformBssRssiRaw=0
gVhtChannelWidth=2
-gEnableLogp=0
+gEnableLogp=1
+
# Enable Automatic Tx Power control
@@ -351,39 +365,31 @@ gVhtTxMCS=2
# VHT Tx/Rx MCS values for 2x2
# Valid values are 0,1,2. If commented out, the default value is 0.
# 0=MCS0-7, 1=MCS0-8, 2=MCS0-9
+gEnable2x2=1
gVhtRxMCS2x2=2
gVhtTxMCS2x2=2
-# Valid chain mask values
-# 01 - enables chain0
-# 02 - enables chain1
-# 03 - enables both chain 0 and chain 1
-# if set to 0 or 1 then all vdevs comes up in 1x1 mode in that band.
-gChainMask_2g=3
-gChainMask_5g=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]
-# Valid values are 1 or 2 for each two bit configuration.
-# if 2-bit value is set to 1 then the corresponidng vdev comes up in 1x1 mode
-# in the band, if set to 2 then that vdev comes up in 2x2 mode in that band.
-gVdevTypeNss_2g=43690
-gVdevTypeNss_5g=43690
+# Enable Tx beamforming
+gTxBFEnable=1
-gTxChainMask1ss=0
+# Enable Tx beamforming in VHT20MHz
+# Valid values are 0,1. If commented out, the default value is 0.
+# 0=disable, 1=enable
+gEnableTxBFin20MHz=1
+
+# Set txchainmask and rxchainmask
+# These parameters are used only if gEnable2x2 is 0
+# Valid values are 1,2
+# Set gSetTxChainmask1x1=1 or gSetRxChainmask1x1=1 to select chain0.
+# Set gSetTxChainmask1x1=2 or gSetRxChainmask1x1=2 to select chain1.
+gSetTxChainmask1x1=1
+gSetRxChainmask1x1=1
# Scan Timing Parameters
# gPassiveMaxChannelTime=110
# gPassiveMinChannelTime=60
-gActiveMaxChannelTime=80
-gActiveMinChannelTime=40
+gActiveMaxChannelTime=40
+gActiveMinChannelTime=20
#If set to 0, MCC is not allowed.
gEnableMCCMode=1
@@ -391,7 +397,7 @@ gEnableMCCMode=1
# MCC to SCC Switch mode: 0-Disable 1-Enable 2-Force SCC if same band
gWlanMccToSccSwitchMode = 0
-# 1=enable STBC; 0=disable STBC
+# 1=enable STBC; 0=disable STBC
gEnableRXSTBC=1
# 1=enable tx STBC; 0=disable
@@ -400,15 +406,14 @@ gEnableTXSTBC=1
# 1=enable rx LDPC; 0=disable
gEnableRXLDPC=1
-# Enable Tx beamforming in VHT20MHz
-# Valid values are 0,1. If commented out, the default value is 0.
-# 0=disable, 1=enable
-gEnableTxBFin20MHz=1
+# Enable or Disable txLdpc capability
+# 0 - disable, 1 - HT LDPC enable, 2 - VHT LDPC enable, 3 - HT & VHT LDPC enable
+gTxLdpcEnable=3
# Enable Active mode offload
gEnableActiveModeOffload=1
-#Enable Scan Results Aging based on timer
+#Enable Scan Results Aging based on timer
#Timer value is in seconds
#If Set to 0 it will not enable the feature
gScanAgingTime=30
@@ -426,10 +431,6 @@ gThermalMitigationEnable=0
gEnableFastRoamInConcurrency=1
-#List of Country codes for which 11ac needs to be disabled
-#Each country code must be delimited by comma(,)
-gListOfNon11acCountryCode=RU,UA,ZA
-
#Maxium Channel time in msec
gMaxMediumTime = 6000
@@ -450,7 +451,7 @@ gFlexConnectPowerFactor=0
gNumChanCombinedConc=60
#Enable Power Save offload
-gEnablePowerSaveOffload=4
+gEnablePowerSaveOffload=5
#Enable firmware uart print
gEnablefwprint=0
@@ -462,21 +463,32 @@ gFwDebugLogLevel=4
gFwDebugModuleLoglevel=1,0,2,0,4,0,5,0,6,0,7,4,8,0,9,0,11,0,13,0,17,0,18,0,19,0,27,0,29,0,31,0,35,0,36,0,38,0
#IPA config
-gIPAConfig=0
+#gIPAEnable=0x00
gIPADescSize=800
gIPAPreFilterEnable=1
gIPARMEnable=1
gIPAIPv6Enable=1
+gIPAConfig=0x1d
+IpaUcOffloadEnabled=1
+gIpaUcStaOffload=0
+gIPAHighBandwidthMbps=800
+gIPAMediumBandwidthMbps=400
+gIPALowBandwidthMbps=200
#P2P Listen offload
gEnableP2pListenOffload=1
+# Maximum Receive AMPDU size (VHT only. Valid values: 0->8k 1->16k 2->32k 3->64k 4->128k)
+gVhtAmpduLenExponent=7
+
# Maximum MPDU length (VHT only. Valid values: 0->3895 octets, 1->7991 octets, 2->11454 octets)
gVhtMpduLen=2
# Maximum number of wow filters required
#gMaxWoWFilters=22
+gActiveBpfMode=1
+
# WOW Enable/Disable.
# 0 - Disable both magic pattern match and pattern byte match.
# 1 - Enable magic pattern match on all interfaces.
@@ -490,17 +502,13 @@ gVhtMpduLen=2
gEnableMCCAdaptiveScheduler=1
#Enable or Disable p2p device address administered
-isP2pDeviceAddrAdministrated=0
+isP2pDeviceAddrAdministrated=1
# RX packet handling options
# 0: no rx thread, no RPS, for MDM
# 1: RX thread
# 2: RPS
-rxhandle=1
-
-# Set RPS CPU MAP as 0xe for the 4 RX queues
-# This allows use of CPU1-CPU3 but not CPU0 for 4 RX queues
-rpsRxQueueCpuMapList=c
+rxhandle=2
# Remove Overlap channel restriction
gEnableOverLapCh=0
@@ -523,67 +531,66 @@ gEnable5gEBT=1
ssdp = 0
-#Enable Memory Deep Sleep
-gEnableMemDeepSleep=1
# Bus bandwidth threshold values in terms of number of packets
gBusBandwidthHighThreshold=2000
gBusBandwidthMediumThreshold=500
gBusBandwidthLowThreshold=150
-# IPA bandwidth voting
-gIPAHighBandwidthMbps=800
-gIPAMediumBandwidthMbps=400
-gIPALowBandwidthMbps=200
-
# Bus bandwidth compute timeout value in ms
gBusBandwidthComputeInterval=100
# Regulatory Setting; 0=STRICT; 1=CUSTOM
gRegulatoryChangeCountry=1
-# RA filtering rate limit param, the current value would not
-# help if the lifetime in RA is less than 3*60=3min. Then
-# we need to change it, though it is uncommon.
-# gRAFilterEnable=0
-# gRArateLimitInterval=600
# Maximum number of concurrent connections
gMaxConcurrentActiveSessions=2
-# Disable/Enable GreenAP
-# 0 to disable, 1 to enable, default: 1
-gEnableGreenAp=1
-
# Radar PRI multiplier
gDFSradarMappingPriMultiplier=4
-gPNOScanSupport=0
+gPNOScanSupport=1
+
+# Perform PNO fast scan this many number of times
+gPNOScanTimerRepeatValue=6
+
+# PNO slow scan period = gPNOSlowScanMultiplier times PNO fast scan period
+# Example: fast scan period is passed from framework (default = 10 sec), then
+# PNO slow scan period = 60 sec.
+gPNOSlowScanMultiplier=6
# Enable/Disable RX full reorder offload
gReorderOffloadSupported=1
+# userspace country code setting shld take priority
+gCountryCodePriority=1
+
# Enable/Disable LPASS support
# 0 to disable, 1 to enable
gEnableLpassSupport=1
-# Whether userspace country code setting shld have priority
-gCountryCodePriority=1
-
# Enable(1)/Disable(0) SIFS burst
gEnableSifsBurst=1
+# Enable or Disable Multi-user MIMO
+# 1=Enable (default), 0=Disable
+gEnableMuBformee=1
+
# Enable/Disable channel avoidance for SAP in SCC scenario
# 0 - disable
# 1 - enable
gSapSccChanAvoidance=0
+# RA filtering rate limit param, the current value would not
+# help if the lifetime in RA is less than 3*60=3min. Then
+# we need to change it, though it is uncommon.
+# Enable RA filtering offload
+gRAFilterEnable=1
+gRArateLimitInterval=300
+
# Inactivity time (in ms) to end TX Service Period while in IBSS power save mode
gIbssTxSpEndInactivityTime=10
-# Enable/Disable Roaming Offload Support (a.k.a Key Management Offload)
-# 0 to disable, 1 to enable
-gRoamOffloadEnabled=0
-
# Enable support for TDLS
# 0 - disable
# 1 - enable
@@ -616,22 +623,14 @@ gTDLSExternalControl=1
# TDLS connection.
gEnableTDLSOffChannel=1
-IpaUcOffloadEnabled=1
-gIpaUcStaOffload=1
+gEnableTDLSScan=1
+gTDLSTxPacketThreshold=10
+gTDLSIdlePacketThreshold=1
gEnableSelfRecovery=1
-# Enable or Disable Random MAC (Spoofing)
-# 1=Enable, 0=Disable (default)
-gEnableMacAddrSpoof=0
-
-# Enable Auto suspend feature
-# When this feature is enabled, it will shutdown the PCIe link
-# when inactivity is detected in STA disconnected mode.
-# 0 - disable
-# 1 - enable
-gEnableBusAutoSuspend=0
-
+#Enable MC address filtering offload
+gMCAddrListEnable=1
# Enable Runtime PM Feature.
# Enabling this feature will put target wow and shutdown pcie link
# when inactivity is detected in WLAN Driver.
@@ -645,58 +644,31 @@ gRuntimePM=1
# The Time is in msec.
# 100 is min, 10000 is max, 500 is default.
-gRuntimePMDelay=1500
+gRuntimePMDelay=500
# Enable to check FW hash if secure FW feature is enabled. It's for defconfig
# builds only since it will be ignored in performance/release builds.
gEnableFWHashCheck=1
-# Enable FW to filter out broadcast packets and wakeup host during runtime PM.
-# As APPS is awake during runtime PM, if any application needs the broadcast
-# packets OEM's can enable this flag.
-# FW will filters the broadcast packets and wakeup host to deliver them during
-# runtime suspend.
-# This flag will take affect when Runtime PM is enabled
-gRuntimePmEnableBcastPattern=0
-
-# intervals length (in ms) during WLAN P2P (single vdev) + BT Paging
-# min 20ms, max 200ms
-gBTIntervalPageP2P=30
-gWLIntervalPageP2P=30
-
-# intervals length (in ms) during WLAN STA (single vdev) + BT Paging
-# min 20ms, max 200ms
-gBTIntervalPageSTA=30
-gWLIntervalPageSTA=30
-
-# intervals length (in ms) during WLAN SAP (single vdev) + BT Paging
-# min 20ms, max 200ms
-gBTIntervalPageSAP=30
-gWLIntervalPageSAP=30
-
-# Tune BMPS listening interval
-gBmpsModListenInterval=8
+# Tx Chain Mask for CCK
+gCckChainMaskEnable=1
-# Custom Additions
+# Tx Chain Mask for 1SS
+gTxChainMask1ss=0
-# Prefer connecting to 5Ghz AP even if its RSSI is lower by 5dBm than the 2.4Ghz AP
-gRoamPrefer5GHz=1
-gSelect5GHzMargin=5
+# TPC power
+gSelfGenFrmPwr=3
-# beacon missed count threshold (by Oneplus)
-gRoamBmissFirstBcnt=25
-gRoamBmissFinalBcnt=35
+gAllowDFSChannelRoam=1
-# limit max peers to 10
-gSoftApMaxPeers=10
+# Enable or Disable Extended Scan (GScan)
+# 1=Enable (default), 0=Disable
+gExtScanEnable=1
-# set continuous packets dropping threshold to max
-gDroppedPktDisconnectTh=1024
-# disable packet logging
-gEnablePacketLog=0
+gEnableModulatedDTIM=2
+gMaxLIModulatedDTIM=6
END
# Note: Configuration parser would not read anything past the END marker
-
diff --git a/wifi/p2p_supplicant_overlay.conf b/wifi/p2p_supplicant_overlay.conf
index 9fe0327..e484ebe 100644
--- a/wifi/p2p_supplicant_overlay.conf
+++ b/wifi/p2p_supplicant_overlay.conf
@@ -1,4 +1,3 @@
disable_scan_offload=1
-p2p_search_delay=100
p2p_no_group_iface=1
-p2p_search_delay=100
+persistent_reconnect=1