From: Stricted Date: Fri, 21 Sep 2018 22:09:35 +0000 (+0200) Subject: universal8895: add common wifi board flags X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=73c56a0285238f5c37d3793e9e21508e55c14cd4;p=GitHub%2Fexynos8895%2Fandroid_device_samsung_universal8895-common.git universal8895: add common wifi board flags also build common wifi packages Change-Id: Ife1f86334399bfe3e01ed8927bf11748d1758fc4 --- diff --git a/BoardConfigCommon.mk b/BoardConfigCommon.mk index e31535a..8e7c447 100644 --- a/BoardConfigCommon.mk +++ b/BoardConfigCommon.mk @@ -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 diff --git a/device-common.mk b/device-common.mk index 042372d..8bfbab4 100644 --- a/device-common.mk +++ b/device-common.mk @@ -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)