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/zuma/wifi/qcom 18 19# wlan flags 20BOARD_WLAN_DEVICE := qcwcn 21BOARD_WPA_SUPPLICANT_PRIVATE_LIB := lib_driver_cmd_$(BOARD_WLAN_DEVICE) 22BOARD_HOSTAPD_PRIVATE_LIB := lib_driver_cmd_$(BOARD_WLAN_DEVICE) 23BOARD_WPA_SUPPLICANT_DRIVER := NL80211 24BOARD_HOSTAPD_DRIVER := NL80211 25WPA_SUPPLICANT_VERSION := VER_0_8_X 26CONFIG_IEEE80211AX := true 27# BOARD_HAS_QCOM_WLAN := true 28# CONFIG_ACS := true 29 30# Wifi interface combination - {1 STA + 1 of (P2P or NAN)} or {1 AP} 31WIFI_HAL_INTERFACE_COMBINATIONS := {{{STA}, 1}, {{P2P, NAN}, 1}}, {{{AP}, 1}} 32WIFI_HIDL_FEATURE_AWARE := true 33WIFI_FEATURE_WIFI_EXT_HAL := true 34WIFI_FEATURE_IMU_DETECTION := true 35WIFI_HIDL_UNIFIED_SUPPLICANT_SERVICE_RC_ENTRY := true 36# Avoid Wifi reset on MAC Address change 37# WIFI_AVOID_IFACE_RESET_MAC_CHANGE := true 38# WIFI_FEATURE_HOSTAPD_11AX := true 39WIFI_DRIVER_STATE_CTRL_PARAM := "/dev/wlan" 40WIFI_DRIVER_STATE_ON := "ON" 41WIFI_DRIVER_STATE_OFF := "OFF" 42 43# WLAN driver configuration files 44PRODUCT_COPY_FILES += \ 45 $(LOCAL_WIFI_PATH)/wpa_supplicant_overlay.conf:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/wpa_supplicant_overlay.conf \ 46 $(LOCAL_WIFI_PATH)/p2p_supplicant_overlay.conf:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/p2p_supplicant_overlay.conf 47 48# Add WIFI_FEATURE_IMU_DETECTION to soong_config 49$(call soong_config_set,wifi,feature_imu_detection,$(WIFI_FEATURE_IMU_DETECTION)) 50