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