From 8e23d37f87595a830dc82cade5fed345e043d110 Mon Sep 17 00:00:00 2001 From: Arian Date: Fri, 17 Nov 2023 22:29:19 +0100 Subject: [PATCH] sm8450-common: wifi: Update from mondrian V14.0.5.0.TMNMIXM Change-Id: I747e78ff1c1bd4810c1559d8394d4e9bb378d7eb --- wlan/WCNSS_qcom_cfg_qca6490.ini | 133 +++++++++++++++++++++++++++++-- wlan/p2p_supplicant_overlay.conf | 4 + wlan/wpa_supplicant_overlay.conf | 4 + 3 files changed, 133 insertions(+), 8 deletions(-) diff --git a/wlan/WCNSS_qcom_cfg_qca6490.ini b/wlan/WCNSS_qcom_cfg_qca6490.ini index 1a6e0e5..571e2c6 100644 --- a/wlan/WCNSS_qcom_cfg_qca6490.ini +++ b/wlan/WCNSS_qcom_cfg_qca6490.ini @@ -35,7 +35,6 @@ gCountryCodePriority=1 gEnableMuBformee=1 gTDLSExternalControl=1 gEnableTDLSOffChannel=1 -gGO11ACOverride=0 ################ Datapath feature set Begin ################ gVhtRxMCS=2 @@ -48,15 +47,15 @@ gIPADescSize=800 dp_tx_ring_size=5120 dp_tx_compl_ring_size=8192 dp_tx_desc=6144 -dp_tx_ext_desc=6144 +dp_tx_ext_desc=6144 rx_mode=20 gEnableFastPath=1 TSOEnable=1 -GROEnable=1 +GROEnable=3 ght_mpdu_density=5 gEnableFlowSteering=1 maxMSDUsPerRxInd=8 -gEnableNUDTracking=1 +#gEnableNUDTracking=1 dp_rx_fisa_enable=1 dp_rx_flow_search_table_size=128 rpsRxQueueCpuMapList=f3 @@ -73,21 +72,139 @@ gEnableSNRMonitoring=1 gWmiCreditCount=1 acs_with_more_param=1 AutoChannelSelectWeight=0x00fafafa +bcast_twt=1 gRuntimePM=2 gRuntimePMDelay=500 gEnablePacketLog=0 oem_6g_support_disable=0 -gSoftApMaxPeers=10 -active_max_channel_time_2g=80 -gActiveMaxChannelTime=60 +#active_max_channel_time_2g=80 +#gActiveMaxChannelTime=60 active_max_channel_time_6g=60 passive_max_channel_time_6g=60 +#####################################Xiaomi ADD: START + +# Channel Rrequency Response +# Bitmap denoting the PDEVs for which CFR needs to be disabled +cfr_disable=7 + +# configure MAC address from the cfg file wlan_mac.bin +read_mac_addr_from_mac_file=1 + +# Set 2.4g channel scan time to 40 +active_max_channel_time_2g=80 +gActiveMaxChannelTime=40 + +# WLM flags setting for ultralow level, bit9 for BMPS disabled +# bit 0: Avoid scan request from HLOS if setting +# bit 1: Skip DFS channel SCAN if setting +# bit 19/20: 1 to set PCIE in L1SS state(low power mode), 0 to set PCIE in L0 state(active mode) +wlm_latency_flags_ultralow=0x180003 + +#APF: Android Packet Filter +gActiveMcBcBpfMode=1 + +# Assoc failure timeout value +# Code default is 2000 +assoc_failure_timeout=5000 + +# Enable NUD tracking feature +# 0 - disable(default),1 - trigger disconnect, 2 - trigger roaming, +# 3 - trigger roaming, but if roam fails, disconnection +gEnableNUDTracking=3 + +# Enable ETSI SRD channels by Xiaomi. Qualcom default value is disable +# * BIT 0:- Enable/Disable SRD channels for SAP. +# * BIT 1:- Enable/Disable SRD channels for P2P-GO. +# * BIT 2:- Enable/Disable SRD channels for NAN. +# Code default value is 6. +etsi13_srd_chan_in_master_mode=7 + +#####Roaming +# Sets RSSI preference for 5GHz over 2.4GHz AP +gSelect5GHzMargin=5 + +# Candidate AP minimum RSSI for beacon miss roam trigger +# Code default is -70 +candidate_min_rssi_for_beacon_miss=-83 + +# Dense traffic threshold in kBps +# Code default is 400 +gtraffic_threshold=50 + +#enable/disable FT open feature +# Code default is 1 +enable_ftopen=0 + +# Stop auto-creating twt session +twt_congestion_timeout=0 + +#VTS SAR test fail as sar version is not match +gEnableSARV1toSARV2=1 + +# This ini is used to give higher priority for 5g scc than dbs. +# It is bitmap per enum policy_mgr_con_mode. +# For example in GO+STA(5G) mode, when TPUT is onfigured as wlan system +# preference option, If 5G SCC needs higher priority than dbs, set it as 8. +g_prefer_5g_scc_to_dbs=8 + +# set modulated DTIM interval +gEnableModulatedDTIM=3 +gMaxLIModulatedDTIM=3 + +# Enable modulated DTIM only for System suspend wow. +# For RTPM wow, the device will stay in DTIM 1 (non-modulated DTIM). +enable_mod_dtim_on_system_suspend=1 + +# Reduce the expiry time for avoid list and black list in drv. +avoid_list_expiry_time=3 +black_list_expiry_time=5 +# Improve threshold to move the Ap from avoid to blacklist +bad_bssid_counter_thresh=7 + +# Enable SoftAP on indoor channel, but Xiaomi's patch in driver only +# allow this when STA was connected on the same indoor channel. +gindoor_channel_support=1 + +#Enable max link speed +gReportMaxLinkSpeed=2 + +#perform RX pending check before entering WoW mode +wow_check_rx_pending_enable=1 + +#Disable vht mcs 10, 11 support +enable_vhtmcs_10_11_support=0 + +#Enable bus suspend in SAP mode enable_bus_suspend_in_sap_mode=1 + +#Enable bus suspend in P2PGO mode enable_bus_suspend_in_go_mode=1 -gtsf_ptp_options=0xb + +# Set Max peers connected for SAP to 20 +gSoftApMaxPeers=20 + +# Override 11n/11ac to 11ac 80M for P2P GO +gGO11ACOverride=1 + +# diable bssid hint priority +is_bssid_hint_priority=0 + +# Disable triggers of data rssi threshold for roam. +# Sometimes have big gap between data rssi and beacon rssi, +# this triggers will Interfere and delay the normal roam. +roam_data_rssi_threshold_triggers=0 + +# disable twt responder +twt_responder=0 + +# enable Self Recovery +gEnableSelfRecovery=1 + +#####################################Xiaomi ADD: END END # Note: Configuration parser would not read anything past the END marker + diff --git a/wlan/p2p_supplicant_overlay.conf b/wlan/p2p_supplicant_overlay.conf index e313fe4..14e4fcc 100644 --- a/wlan/p2p_supplicant_overlay.conf +++ b/wlan/p2p_supplicant_overlay.conf @@ -5,3 +5,7 @@ bss_max_count=400 p2p_go_ht40=1 p2p_go_vht=1 p2p_go_he=1 +p2p_chan_list_dfs_disable=0 +p2p_chan_list_only_sta_dfs_enable=0 +p2p_pref_list_dfs_disable=0 +p2p_go_dfs_disable=0 diff --git a/wlan/wpa_supplicant_overlay.conf b/wlan/wpa_supplicant_overlay.conf index c73546e..2b126e8 100644 --- a/wlan/wpa_supplicant_overlay.conf +++ b/wlan/wpa_supplicant_overlay.conf @@ -6,3 +6,7 @@ bss_max_count=400 interworking=1 config_methods=virtual_display virtual_push_button keypad driver_param="no_rrm=1" +p2p_chan_list_dfs_disable=0 +p2p_chan_list_only_sta_dfs_enable=0 +p2p_pref_list_dfs_disable=0 +p2p_go_dfs_disable=0