r8s: replace macloader with a simple script

* this does everything we need
This commit is contained in:
borbelyvince
2024-06-24 18:06:07 +02:00
parent 302ca6fe7b
commit 37ce45dc64
4 changed files with 10 additions and 6 deletions

View File

@@ -57,6 +57,9 @@ PRODUCT_PACKAGES += \
wpa_supplicant.conf \
WifiOverlay
PRODUCT_COPY_FILES += \
$(DEVICE_PATH)/macloader/macloader:$(TARGET_COPY_OUT_VENDOR)/bin/hw/macloader
# Wi-Fi Display
PRODUCT_PACKAGES += \
libnl

View File

@@ -22,11 +22,6 @@ function blob_fixup() {
vendor/firmware/wlan/qcom_cfg.ini)
sed -i 's/swlan0/wlan1/g' "${2}"
sed -i 's/gChannelBondingMode24GHz=0/gChannelBondingMode24GHz=1/g' "${2}"
;;
vendor/bin/hw/macloader)
sed -i 's/vendor\.wifi\.dualconcurrent\.interface/vnedor\.wiff\.dualconcurreut\.iuterface/g' "${2}"
sed -i 's/ro\.vendor\.wifi\.sap\.interface/ru\.vnedor\.wiff\.sep\.iuterface/g' "${2}"
;;
esac
}

7
macloader/macloader Executable file
View File

@@ -0,0 +1,7 @@
#! /vendor/bin/sh
# Load mac address
cat /mnt/vendor/efs/wifi/.mac.info > /sys/wifi/mac_addr
# Load the driver
echo 1 > /sys/kernel/boot_wlan/boot_wlan

View File

@@ -83,7 +83,6 @@ vendor/tee/00000000-0000-0000-0000-657365636f6d
vendor/tee/driver/00000000-0000-0000-0000-53626f786476
# Wi-Fi
-vendor/bin/hw/macloader
vendor/etc/init/wifi_qcom_ap_exynos.rc
vendor/etc/init/wifi.rc
vendor/etc/wifi/indoorchannel.info