diff --git a/BoardConfigCommon.mk b/BoardConfigCommon.mk index 08fed70..0bc4c28 100644 --- a/BoardConfigCommon.mk +++ b/BoardConfigCommon.mk @@ -138,3 +138,20 @@ BOARD_AVB_VBMETA_SYSTEM_ROLLBACK_INDEX := $(PLATFORM_SECURITY_PATCH_TIMESTAMP) BOARD_AVB_VBMETA_SYSTEM_ROLLBACK_INDEX_LOCATION := 2 BOARD_MOVE_GSI_AVB_KEYS_TO_VENDOR_BOOT := true + +# WiFi +BOARD_WLAN_DEVICE := qcwcn +BOARD_HOSTAPD_DRIVER := NL80211 +BOARD_HOSTAPD_PRIVATE_LIB := lib_driver_cmd_$(BOARD_WLAN_DEVICE) +BOARD_WPA_SUPPLICANT_DRIVER := NL80211 +BOARD_WPA_SUPPLICANT_PRIVATE_LIB := lib_driver_cmd_$(BOARD_WLAN_DEVICE) +QC_WIFI_HIDL_FEATURE_DUAL_AP := true +QC_WIFI_HIDL_FEATURE_DUAL_STA := true +WIFI_DRIVER_BUILT := qca_cld3 +WIFI_DRIVER_DEFAULT := qca_cld3 +WIFI_DRIVER_STATE_CTRL_PARAM := "/dev/wlan" +WIFI_DRIVER_STATE_OFF := "OFF" +WIFI_DRIVER_STATE_ON := "ON" +WIFI_HIDL_FEATURE_AWARE := true +WIFI_HIDL_FEATURE_DUAL_INTERFACE := true +WPA_SUPPLICANT_VERSION := VER_0_8_X diff --git a/common.mk b/common.mk index cc58d8b..bb7c305 100644 --- a/common.mk +++ b/common.mk @@ -169,6 +169,11 @@ PRODUCT_PACKAGES += \ libhidltransport.vendor \ libhwbinder.vendor +# IPACM +PRODUCT_PACKAGES += \ + ipacm \ + IPACM_cfg.xml + # IR PRODUCT_PACKAGES += \ android.hardware.ir@1.0-impl \ @@ -362,16 +367,21 @@ PRODUCT_COPY_FILES += \ # WiFi PRODUCT_PACKAGES += \ - android.hardware.tetheroffload.config@1.0.vendor \ - android.hardware.tetheroffload.control@1.1.vendor \ android.hardware.wifi@1.0-service \ hostapd \ hostapd_cli \ + libwifi-hal-qcom \ libwpa_client \ wpa_cli \ wpa_supplicant \ wpa_supplicant.conf +PRODUCT_COPY_FILES += \ + $(LOCAL_PATH)/wlan/p2p_supplicant_overlay.conf:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/p2p_supplicant_overlay.conf \ + $(LOCAL_PATH)/wlan/vendor_cmd.xml:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/vendor_cmd.xml \ + $(LOCAL_PATH)/wlan/WCNSS_qcom_cfg_qca6490.ini:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/qca6490/WCNSS_qcom_cfg.ini \ + $(LOCAL_PATH)/wlan/wpa_supplicant_overlay.conf:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/wpa_supplicant_overlay.conf + PRODUCT_COPY_FILES += \ frameworks/native/data/etc/android.hardware.wifi.aware.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.aware.xml \ frameworks/native/data/etc/android.hardware.wifi.direct.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.direct.xml \ diff --git a/wlan/WCNSS_qcom_cfg_qca6490.ini b/wlan/WCNSS_qcom_cfg_qca6490.ini new file mode 100644 index 0000000..1a6e0e5 --- /dev/null +++ b/wlan/WCNSS_qcom_cfg_qca6490.ini @@ -0,0 +1,93 @@ +# This file allows user to override the factory +# defaults for the WLAN Driver + +gDot11Mode=0 +InfraUapsdVoSrvIntv=0 +InfraUapsdViSrvIntv=0 +InfraUapsdBeSrvIntv=0 +InfraUapsdBkSrvIntv=0 +gAddTSWhenACMIsOff=1 +gEnableApOBSSProt=1 +RTSThreshold=1048576 +g11dSupportEnabled=0 +gEnableDFSMasterCap=1 +gNeighborScanTimerPeriod=200 +gNeighborLookupThreshold=76 +FastRoamEnabled=1 +RoamRssiDiff=5 +gChannelBondingMode5GHz=1 +gAllowDFSChannelRoam=1 +gSetTxChainmask1x1=1 +gSetRxChainmask1x1=1 +gActiveMaxChannelTime=40 +gWlanMccToSccSwitchMode = 3 +gEnableTXSTBC=1 +gEnableTxBFeeSAP=1 +gEnableTxBFin20MHz=1 +gEnableTxSUBeamformer=1 +gRrmEnable=1 +gVhtAmpduLenExponent=7 +gVhtMpduLen=2 +isP2pDeviceAddrAdministrated=0 +gEnableVhtFor24GHzBand=1 +gEnableLpassSupport=1 +gCountryCodePriority=1 +gEnableMuBformee=1 +gTDLSExternalControl=1 +gEnableTDLSOffChannel=1 +gGO11ACOverride=0 + +################ Datapath feature set Begin ################ +gVhtRxMCS=2 +gVhtTxMCS=2 +gEnable2x2=1 +gVhtRxMCS2x2=2 +gVhtTxMCS2x2=2 +gIPAConfig=0 +gIPADescSize=800 +dp_tx_ring_size=5120 +dp_tx_compl_ring_size=8192 +dp_tx_desc=6144 +dp_tx_ext_desc=6144 +rx_mode=20 +gEnableFastPath=1 +TSOEnable=1 +GROEnable=1 +ght_mpdu_density=5 +gEnableFlowSteering=1 +maxMSDUsPerRxInd=8 +gEnableNUDTracking=1 +dp_rx_fisa_enable=1 +dp_rx_flow_search_table_size=128 +rpsRxQueueCpuMapList=f3 +legacy_mode_csum_disable=1 +icmp_req_to_fw_mark_interval=200 +gBusBandwidthVeryHighThreshold=10000 + +################ Datapath feature set End ################ + +adaptive_dwell_mode_enabled=1 +hostscan_adaptive_dwell_mode=1 +enable_rtt_mac_randomization=1 +gEnableSNRMonitoring=1 +gWmiCreditCount=1 +acs_with_more_param=1 +AutoChannelSelectWeight=0x00fafafa +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_6g=60 +passive_max_channel_time_6g=60 + +enable_bus_suspend_in_sap_mode=1 +enable_bus_suspend_in_go_mode=1 +gtsf_ptp_options=0xb + +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 new file mode 100644 index 0000000..e313fe4 --- /dev/null +++ b/wlan/p2p_supplicant_overlay.conf @@ -0,0 +1,7 @@ +disable_scan_offload=1 +p2p_no_group_iface=1 +persistent_reconnect=1 +bss_max_count=400 +p2p_go_ht40=1 +p2p_go_vht=1 +p2p_go_he=1 diff --git a/wlan/vendor_cmd.xml b/wlan/vendor_cmd.xml new file mode 100644 index 0000000..09440e3 --- /dev/null +++ b/wlan/vendor_cmd.xml @@ -0,0 +1,967 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/wlan/wpa_supplicant_overlay.conf b/wlan/wpa_supplicant_overlay.conf new file mode 100644 index 0000000..c73546e --- /dev/null +++ b/wlan/wpa_supplicant_overlay.conf @@ -0,0 +1,8 @@ +disable_scan_offload=1 +p2p_disabled=1 +tdls_external_control=1 +wowlan_triggers=magic_pkt +bss_max_count=400 +interworking=1 +config_methods=virtual_display virtual_push_button keypad +driver_param="no_rrm=1"