From 5a8741f7ae6f03449246f9036d9d4544057c414a Mon Sep 17 00:00:00 2001 From: ivanmeler Date: Sat, 29 Apr 2023 16:55:17 +0000 Subject: [PATCH] wip: fix wifi --- BoardConfigCommon.mk | 5 +---- msm8996.mk | 3 ++- rootdir/etc/init.target.rc | 3 +++ 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/BoardConfigCommon.mk b/BoardConfigCommon.mk index 0259341..0ea786b 100755 --- a/BoardConfigCommon.mk +++ b/BoardConfigCommon.mk @@ -203,12 +203,9 @@ BOARD_WPA_SUPPLICANT_PRIVATE_LIB := lib_driver_cmd_$(BOARD_WLAN_DEVICE) WPA_SUPPLICANT_USE_HIDL := true BOARD_HOSTAPD_DRIVER := NL80211 BOARD_HOSTAPD_PRIVATE_LIB := lib_driver_cmd_$(BOARD_WLAN_DEVICE) -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_DRIVER_FW_PATH_PARAM := "/sys/module/dhd/parameters/firmware_path" WIFI_BAND := 802_11_ABG WIFI_HIDL_FEATURE_AWARE := true -WIFI_HIDL_FEATURE_DUAL_INTERFACE := true WIFI_HIDL_UNIFIED_SUPPLICANT_SERVICE_RC_ENTRY := true diff --git a/msm8996.mk b/msm8996.mk index 8c7294c..f684f0c 100755 --- a/msm8996.mk +++ b/msm8996.mk @@ -342,7 +342,8 @@ PRODUCT_PACKAGES += \ init.samsung.rc \ init.target.rc \ ueventd.qcom.rc \ - wifi_sec.rc + wifi_sec.rc \ + wifiloader # Recovery PRODUCT_COPY_FILES += \ diff --git a/rootdir/etc/init.target.rc b/rootdir/etc/init.target.rc index 870212f..b8e5959 100644 --- a/rootdir/etc/init.target.rc +++ b/rootdir/etc/init.target.rc @@ -72,6 +72,9 @@ on post-fs-data #Create folder for mm-qcamera-daemon mkdir /data/vendor/camera 0770 camera camera +# wifi + chmod 0666 /sys/module/dhd/parameters/firmware_path + on property:init.svc.bootanim=running write /sys/class/leds/wled/brightness 4095