From 5634322f5c72db944c4e21d88bfb7980c12cee29 Mon Sep 17 00:00:00 2001 From: Michael Bestas Date: Thu, 13 Mar 2025 11:41:20 +0200 Subject: [PATCH] sm6375-common: Update wifi configs from fogos Change-Id: I2f404d2df6016af9f7ddb71b5e50a0cf29a42d5e --- wifi/WCNSS_qcom_cfg.ini | 135 +++++++++++++++++-------------- wifi/p2p_supplicant_overlay.conf | 2 - wifi/wpa_supplicant_overlay.conf | 1 - 3 files changed, 74 insertions(+), 64 deletions(-) diff --git a/wifi/WCNSS_qcom_cfg.ini b/wifi/WCNSS_qcom_cfg.ini index eb56b66..2cab10f 100644 --- a/wifi/WCNSS_qcom_cfg.ini +++ b/wifi/WCNSS_qcom_cfg.ini @@ -1,6 +1,9 @@ # This file allows user to override the factory # defaults for the WLAN Driver +# enable channel bonding mode 24GHZ +gChannelBondingMode24GHz=1 + # IKSWO-42425: Enable user triggered SSR gEnableForceTargetAssert=1 @@ -10,15 +13,19 @@ gEnableImps=1 # Enable BMPS or not gEnableBmps=1 -# Enable PCI gen switch -g_enable_pci_gen=1 - # 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 # 7 = 11b only 8 = 11ac only. gDot11Mode=0 +# Assigned MAC Addresses - This will be used until NV items are in place +# Each byte of MAC address is represented in Hex format as XX +Intf0MacAddress=000AF58989FF +Intf1MacAddress=000AF58989FE +Intf2MacAddress=000AF58989FD +Intf3MacAddress=000AF58989FC + # UAPSD service interval for VO,VI, BE, BK traffic InfraUapsdVoSrvIntv=0 InfraUapsdViSrvIntv=0 @@ -28,6 +35,10 @@ InfraUapsdBkSrvIntv=0 # Flag to allow STA send AddTspec even when ACM is Off gAddTSWhenACMIsOff=1 +# Flags to filter Mcast and Bcast RX packets. +# Value 0: No filtering, 1: Filter all Multicast. +# 2: Filter all Broadcast. 3: Filter all Mcast abd Bcast +McastBcastFilter=3 #Flag to enable HostARPOffload feature or not hostArpOffload=1 @@ -44,6 +55,9 @@ gEnableApOBSSProt=1 #Enable/Disable UAPSD for SoftAP gEnableApUapsd=1 +# Fixed Rate +gFixedRate=0 + # Maximum Tx power # gTxPowerCap=30 @@ -66,7 +80,7 @@ g11dSupportEnabled=0 g11hSupportEnabled=1 # DFS Master Capability -gEnableDFSMasterCap=1 +gEnableDFSMasterCap=0 # ESE Support and fast transition EseEnabled=0 @@ -76,6 +90,8 @@ ImplicitQosIsEnabled=0 gNeighborScanTimerPeriod=200 gNeighborLookupThreshold=76 gNeighborScanChannelMinTime=20 +gNeighborScanChannelMaxTime=30 +gMaxNeighborReqTries=3 # Legacy (non-ESE, non-802.11r) Fast Roaming Support # To enable, set FastRoamEnabled=1 @@ -96,9 +112,18 @@ gRoamIntraBand=0 gShortGI20Mhz=1 gShortGI40Mhz=1 +#Auto Shutdown Value in seconds. A value of 0 means Auto shutoff is disabled +gAPAutoShutOff=0 + #Auto Shutdown wlan : Value in Seconds. 0 means disabled. Max 1 day = 86400 sec gWlanAutoShutdown = 0 +# Not used. +gApAutoChannelSelection=0 + +#Preferred band (both or 2.4 only or 5 only) +BandCapability=0 + #Channel Bonding gChannelBondingMode5GHz=1 @@ -127,6 +152,10 @@ gChannelBondingMode5GHz=1 gGoKeepAlivePeriod = 20 gApKeepAlivePeriod = 20 +#If set will start with active scan after driver load, otherwise will start with +#passive scan to find out the domain +gEnableBypass11d=1 + #If set to 0, will not scan DFS channels gEnableDFSChnlScan=1 @@ -151,6 +180,7 @@ gSetRxChainmask1x1=1 # gPassiveMaxChannelTime=110 # gPassiveMinChannelTime=60 gActiveMaxChannelTime=40 +gActiveMinChannelTime=20 #If set to 0, MCC is not allowed. gEnableMCCMode=1 @@ -189,9 +219,17 @@ gEnableTxSUBeamformer=1 gEnableFastRoamInConcurrency=1 +#Enable/Disable PER based roaming +gper_roam_enabled=0 +#Maxium Channel time in msec +gMaxMediumTime = 6000 + # 802.11K support gRrmEnable=1 +#Enable Power Save offload +gEnablePowerSaveOffload=2 + #Enable firmware uart print gEnablefwprint=0 @@ -245,6 +283,9 @@ ssdp=0 #Enable Memory Deep Sleep gEnableMemDeepSleep=1 +# 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. @@ -256,7 +297,11 @@ gMaxConcurrentActiveSessions=3 # Disable/Enable GreenAP # 0 to disable, 1 to enable, default: 1 -gEnableGreenAp=0 +gEnableGreenAp=1 +gIgnorePeerErpInfo=1 + +# Radar PRI multiplier +gDFSradarMappingPriMultiplier=4 gPNOScanSupport=1 @@ -274,6 +319,11 @@ gEnableSifsBurst=1 # 1=Enable (default), 0=Disable gEnableMuBformee=1 +# Enable/Disable channel avoidance for SAP in SCC scenario +# 0 - disable +# 1 - enable +gSapSccChanAvoidance=0 + # Inactivity time (in ms) to end TX Service Period while in IBSS power save mode gIbssTxSpEndInactivityTime=10 @@ -294,7 +344,11 @@ gTDLSExternalControl=1 # 1 - enable # TDLS off-channel operation will be invoked when there is only one # TDLS connection. -gEnableTDLSOffChannel=1 +gEnableTDLSOffChannel=0 +gEnableTDLSScan=1 +gTDLSTxStatsPeriod=500 +gTDLSTxPacketThreshold=10 +gTDLSIdlePacketThreshold=1 # Enable or Disable Random MAC (Spoofing) # 1=Enable (default), 0=Disable @@ -334,14 +388,6 @@ gVhtTxMCS2x2=2 gIPAConfig=0x7d gIPADescSize=800 -# Set IPA bandwidth levels in mbps -gIPALowBandwidthMbps=100 -gIPAMediumBandwidthMbps=400 -gIPAHighBandwidthMbps=800 - -# Set CPU mask for RPS Rx queue -rpsRxQueueCpuMapList=07 - # Enable/Disable RX full reorder offload gReorderOffloadSupported=1 @@ -351,7 +397,7 @@ gCEClassifyEnable=1 # Enable Rx handling options # Rx_thread=1 RPS=2(default for ROME) NAPI=4(default for ihelium) -rx_mode=20 +rx_mode=5 # Enable(Tx) fastpath for data traffic. # 1 - enable(default) 0 - disable @@ -390,8 +436,14 @@ maxMSDUsPerRxInd=8 # Enable NUD tracking feature # 1 - enable 0 - disable(default) -gEnableNUDTracking=1 +# 2 - roam away from the connected BSSID to a new BSSID if NUD failures detected +gEnableNUDTracking=2 +# Enable PEER UNMAP CONF SUPPORT +# 1 - enable 0 - disable(default) +gEnablePeerUnmapConfSupport=1 + +rpsRxQueueCpuMapList=f3 ################ Datapath feature set End ################ ################ NAN feature set start ################### @@ -430,56 +482,17 @@ enable_rtt_mac_randomization=1 #Enable/Disable SNR monitoring gEnableSNRMonitoring=1 -# Enable Runtime PM -gRuntimePM=2 -gRuntimePMDelay=500 - # Rx thread affinity mask in UL case RX_THREAD_UL_CPU_AFFINITY_MASK=0xc0 -AutoChannelSelectWeight=0x00fafafa - -bcast_twt=1 - -dp_tx_ring_size=3072 - -gWmiCreditCount=1 - -# Enable RX buffer pool -dp_rx_buff_prealloc_pool=1 - -#Enable RX FISA -dp_rx_fisa_enable=1 -dp_rx_flow_search_table_size=128 - -legacy_mode_csum_disable=0 - -#Enable Rx refill pool -dp_rx_refill_buff_pool=1 - -# Enable Software latency manager -gEnableSWLM=1 - -# Place FST in CMEM -dp_rx_fst_in_cmem=1 - -# Use QMI path to get LL and station stats -send_ll_and_get_station_stats_over_qmi=1 - -#enable 6GHz support for RTT/LOWI -oem_6g_support_disable=0 - -# 1 - Enable the host silent recovery -# 0 - Disable the host silent recovery -gEnableSelfRecovery=1 - -# turning QC BLM parameters -avoid_list_expiry_time=5 -black_list_expiry_time=1 -bad_bssid_counter_thresh=10 - +# Packet Log buffer size +PktlogBufSize=1 # Enable SRD channel for all modes etsi13_srd_chan_in_master_mode=7 + +#wlm_latency_flags_ultralow - WLM flags setting for ultralow level +#bit 0: Avoid scan request from HLOS if setting +wlm_latency_flags_ultralow=0xc82 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 6c38a45..2b27c5b 100644 --- a/wifi/p2p_supplicant_overlay.conf +++ b/wifi/p2p_supplicant_overlay.conf @@ -2,5 +2,3 @@ disable_scan_offload=1 p2p_no_group_iface=1 persistent_reconnect=1 bss_max_count=400 -p2p_go_he=1 -p2p_6ghz_disable=1 diff --git a/wifi/wpa_supplicant_overlay.conf b/wifi/wpa_supplicant_overlay.conf index 017f5d5..f09713d 100644 --- a/wifi/wpa_supplicant_overlay.conf +++ b/wifi/wpa_supplicant_overlay.conf @@ -7,4 +7,3 @@ interworking=1 config_methods=virtual_display virtual_push_button keypad driver_param="no_rrm=1" pmf=1 -sae_pwe=2