1# 2# Copyright (C) 2021 The Android Open-Source Project 3# 4# Licensed under the Apache License, Version 2.0 (the "License"); 5# you may not use this file except in compliance with the License. 6# You may obtain a copy of the License at 7# 8# http://www.apache.org/licenses/LICENSE-2.0 9# 10# Unless required by applicable law or agreed to in writing, software 11# distributed under the License is distributed on an "AS IS" BASIS, 12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13# See the License for the specific language governing permissions and 14# limitations under the License. 15# 16 17LOCAL_WIFI_PATH := device/google/gs201/wifi/qcom 18 19# wlan flags 20BOARD_WLAN_DEVICE := qcwcn 21BOARD_WLAN_CHIP := wcn6740 22# Use full namespace path for both BOARD_WPA_SUPPLICANT_PRIVATE_LIB and BOARD_HOSTAPD_PRIVATE_LIB due to wlan module for sw5100 has its own namespace. 23BOARD_WPA_SUPPLICANT_PRIVATE_LIB := //hardware/qcom/wlan/wcn6740/qcwcn/wpa_supplicant_8_lib:lib_driver_cmd_$(BOARD_WLAN_DEVICE) 24BOARD_HOSTAPD_PRIVATE_LIB := //hardware/qcom/wlan/wcn6740/qcwcn/wpa_supplicant_8_lib:lib_driver_cmd_$(BOARD_WLAN_DEVICE) 25BOARD_WPA_SUPPLICANT_DRIVER := NL80211 26BOARD_HOSTAPD_DRIVER := NL80211 27WPA_SUPPLICANT_VERSION := VER_0_8_X 28CONFIG_IEEE80211AX := true 29# BOARD_HAS_QCOM_WLAN := true 30# CONFIG_ACS := true 31 32# Wifi interface combination - {1 STA + 1 of (P2P or NAN)} or {1 AP} 33WIFI_HAL_INTERFACE_COMBINATIONS := {{{STA}, 1}, {{P2P, NAN}, 1}}, {{{AP}, 1}} 34WIFI_HIDL_FEATURE_AWARE := true 35WIFI_FEATURE_WIFI_EXT_HAL := true 36WIFI_FEATURE_IMU_DETECTION := true 37WIFI_HIDL_UNIFIED_SUPPLICANT_SERVICE_RC_ENTRY := true 38# Avoid Wifi reset on MAC Address change 39# WIFI_AVOID_IFACE_RESET_MAC_CHANGE := true 40WIFI_FEATURE_HOSTAPD_11AX := true 41WIFI_DRIVER_STATE_CTRL_PARAM := "/dev/wlan" 42WIFI_DRIVER_STATE_ON := "ON" 43WIFI_DRIVER_STATE_OFF := "OFF" 44BOARD_HOSTAPD_CONFIG_80211W_MFP_OPTIONAL := true 45 46# WLAN driver configuration files 47PRODUCT_COPY_FILES += \ 48 $(LOCAL_WIFI_PATH)/wpa_supplicant_overlay.conf:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/wpa_supplicant_overlay.conf \ 49 $(LOCAL_WIFI_PATH)/p2p_supplicant_overlay.conf:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/p2p_supplicant_overlay.conf 50 51# Add BOARD_WLAN_CHIP to soong_config 52$(call soong_config_set,qcom_wifi,board_wlan_chip,wcn6740) 53 54# Add WIFI_FEATURE_IMU_DETECTION to soong_config 55$(call soong_config_set,wifi,feature_imu_detection,$(WIFI_FEATURE_IMU_DETECTION)) 56