X6833B: Switch to prebuilt libwifi-hal

* Reference: https://github.com/moto-common/android_device_mediatek_common/tree/master/vendor/wlan

* Perhaps it will help with the Wi-Fi scanning issues,
  and intermittent disconnections we're having. Besides,
  we can't legally use the OSS one anyway.

Change-Id: I9bbf289ad88a12bbdc68ab0abdee410678bf1420
Co-authored-by: electimon <electimon@gmail.com>
Signed-off-by: bengris32 <bengris32@protonmail.ch>
Signed-off-by: dodyirawan85 <40514988+dodyirawan85@users.noreply.github.com>
This commit is contained in:
bengris32 2023-07-31 11:29:39 +01:00 committed by dodyirawan85
parent 5a3219062d
commit 8551890ccc
4 changed files with 6 additions and 4 deletions

View file

@ -161,12 +161,9 @@ DEVICE_MANIFEST_FILE := $(CONFIGS_PATH)/vintf/manifest.xml
DEVICE_MATRIX_FILE := $(CONFIGS_PATH)/vintf/compatibility_matrix.xml
# Wi-Fi
BOARD_WLAN_DEVICE := MediaTek
WPA_SUPPLICANT_VERSION := VER_0_8_X
BOARD_WPA_SUPPLICANT_DRIVER := NL80211
BOARD_WPA_SUPPLICANT_PRIVATE_LIB := lib_driver_cmd_mt66xx
BOARD_HOSTAPD_DRIVER := NL80211
BOARD_HOSTAPD_PRIVATE_LIB := lib_driver_cmd_mt66xx
WIFI_DRIVER_FW_PATH_PARAM := /dev/wmtWifi
WIFI_DRIVER_FW_PATH_STA := STA
WIFI_DRIVER_FW_PATH_AP := AP

View file

@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<WifiVendorHal version="1">
<path>/vendor/lib64/libwifi-hal-mtk.so</path>
<primary>1</primary>
</WifiVendorHal>

View file

@ -186,7 +186,6 @@ $(call inherit-product, $(SRC_TARGET_DIR)/product/updatable_apex.mk)
PRODUCT_PACKAGES += \
wpa_supplicant \
hostapd \
libwifi-hal-mt66xx \
android.hardware.wifi@1.0-service-lazy
PRODUCT_PACKAGES += \

View file

@ -541,3 +541,4 @@ vendor/lib64/vendor.mediatek.hardware.netdagent@1.0.so
vendor/bin/wlan_assistant
vendor/etc/init/init.wlan_drv.rc
vendor/etc/init/wlan_assistant.rc
vendor/lib64/libwifi-hal.so:vendor/lib64/libwifi-hal-mtk.so