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
17BOARD_WLAN_DEVICE := synadhd
18BOARD_WPA_SUPPLICANT_PRIVATE_LIB := lib_driver_cmd_$(BOARD_WLAN_DEVICE)
19BOARD_HOSTAPD_PRIVATE_LIB := lib_driver_cmd_$(BOARD_WLAN_DEVICE)
20WPA_SUPPLICANT_VERSION := VER_0_8_X
21BOARD_WPA_SUPPLICANT_DRIVER := NL80211
22BOARD_HOSTAPD_DRIVER := NL80211
23# Wifi interface combination - {1 STA + 1 P2P} or {1 STA + 1 NAN} or {1 AP}
24WIFI_HAL_INTERFACE_COMBINATIONS := {{{STA}, 1}, {{P2P, NAN}, 1}}, {{{AP}, 1}}
25WIFI_FEATURE_WIFI_EXT_HAL := true
26WIFI_FEATURE_IMU_DETECTION := true
27# Avoid Wifi reset on MAC Address change
28WIFI_AVOID_IFACE_RESET_MAC_CHANGE := true
29WIFI_FEATURE_HOSTAPD_11AX := true
30WIFI_HIDL_UNIFIED_SUPPLICANT_SERVICE_RC_ENTRY := true
31
32PRODUCT_COPY_FILES += \
33    device/google/tangorpro/wifi/p2p_supplicant_overlay.conf:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/p2p_supplicant_overlay.conf \
34    device/google/tangorpro/wifi/wpa_supplicant_overlay.conf:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/wpa_supplicant_overlay.conf
35
36# Add WIFI_FEATURE_IMU_DETECTION to soong_config
37$(call soong_config_set,wifi,feature_imu_detection,$(WIFI_FEATURE_IMU_DETECTION))
38