Integrate wifi configuraions for tangorpro

1. Load synadhd.ko dhd module
2. Add tangorpro wifi overlay
3. Turn off mobile data by default
4. Isolate tangorpro configurations for customization.

Bug: 228285237
Test: 1. build pass
      2. check wifi overlay name
      3. check tangorpro use syna hal in build log
Change-Id: If775f3bd17f65830fe3c7ec0a9b6474b3ac7a1c8
This commit is contained in:
normanwhl 2022-05-16 15:59:25 +00:00
parent 8240e9ebf1
commit b9b19efd5a
10 changed files with 225 additions and 372 deletions

30
wifi/BoardConfig-wifi.mk Normal file
View file

@ -0,0 +1,30 @@
#
# Copyright (C) 2021 The Android Open-Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
BOARD_WLAN_DEVICE := synadhd
BOARD_WPA_SUPPLICANT_PRIVATE_LIB := lib_driver_cmd_$(BOARD_WLAN_DEVICE)
BOARD_HOSTAPD_PRIVATE_LIB := lib_driver_cmd_$(BOARD_WLAN_DEVICE)
WPA_SUPPLICANT_VERSION := VER_0_8_X
BOARD_WPA_SUPPLICANT_DRIVER := NL80211
BOARD_HOSTAPD_DRIVER := NL80211
# Wifi interface combination - {1 STA + 1 P2P} or {1 STA + 1 NAN} or {1 AP}
WIFI_HAL_INTERFACE_COMBINATIONS := {{{STA}, 1}, {{P2P, NAN}, 1}}, {{{AP}, 1}}
WIFI_FEATURE_WIFI_EXT_HAL := true
WIFI_FEATURE_IMU_DETECTION := true
# Avoid Wifi reset on MAC Address change
WIFI_AVOID_IFACE_RESET_MAC_CHANGE := true
WIFI_FEATURE_HOSTAPD_11AX := true