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