universal8895: add common wifi board flags
authorStricted <info@stricted.net>
Fri, 21 Sep 2018 22:09:35 +0000 (00:09 +0200)
committerJan Altensen <info@stricted.net>
Tue, 3 Sep 2019 16:54:58 +0000 (18:54 +0200)
also build common wifi packages

Change-Id: Ife1f86334399bfe3e01ed8927bf11748d1758fc4

BoardConfigCommon.mk
device-common.mk

index e31535a72a1569f23134cd8362857874058cc933..8e7c447ec62d998879900315741f51748d92433b 100644 (file)
@@ -74,3 +74,23 @@ TARGET_COPY_OUT_VENDOR := system/vendor
 
 # Device Tree
 BOARD_USES_DT := true
+
+# Wifi
+TARGET_USES_64_BIT_BCMDHD        := true
+BOARD_WLAN_DEVICE                := bcmdhd
+WPA_SUPPLICANT_VERSION           := VER_0_8_X
+BOARD_WPA_SUPPLICANT_DRIVER      := NL80211
+BOARD_WPA_SUPPLICANT_PRIVATE_LIB := lib_driver_cmd_bcmdhd
+WPA_SUPPLICANT_USE_HIDL          := true
+BOARD_HOSTAPD_DRIVER             := NL80211
+BOARD_HOSTAPD_PRIVATE_LIB        := lib_driver_cmd_bcmdhd
+WIFI_DRIVER_FW_PATH_PARAM        := "/sys/module/dhd/parameters/firmware_path"
+WIFI_DRIVER_NVRAM_PATH_PARAM     := "/sys/module/dhd/parameters/nvram_path"
+WIFI_DRIVER_NVRAM_PATH           := "/vendor/etc/wifi/nvram_net.txt"
+WIFI_DRIVER_FW_PATH_STA          := "/vendor/etc/wifi/bcmdhd_sta.bin"
+WIFI_DRIVER_FW_PATH_AP           := "/vendor/etc/wifi/bcmdhd_apsta.bin"
+WIFI_BAND                        := 802_11_ABG
+WIFI_HIDL_FEATURE_DUAL_INTERFACE := true
+
+# MACLOADER
+BOARD_HAVE_SAMSUNG_WIFI          := true
index 042372db56950903a71c9a7dadda224b0cf35c48..8bfbab4894df0f85017fb1328997647834da5e43 100644 (file)
@@ -29,5 +29,20 @@ PRODUCT_AAPT_PREF_CONFIG := xxxhdpi
 # A list of dpis to select prebuilt apk, in precedence order.
 PRODUCT_AAPT_PREBUILT_DPI := xxxhdpi xxhdpi xhdpi hdpi
 
+# Wifi
+PRODUCT_PACKAGES += \
+    macloader \
+    wifiloader \
+    hostapd \
+    wificond \
+    wifilogd \
+    wlutil \
+    libwpa_client \
+    wpa_supplicant \
+    wpa_supplicant.conf \
+    android.hardware.wifi@1.0-service \
+    android.hardware.wifi@1.0 \
+    android.hardware.wifi@1.0-impl
+
 # call the proprietary setup
 $(call inherit-product, vendor/samsung/universal8895-common/universal8895-common-vendor.mk)