Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4bba6304 authored by LuK1337's avatar LuK1337
Browse files

sm8150-common: Temporarily remove `write wlan_mac.bin ""` instruction

For some reason, Android R RIL stack no longer dumps NV items on boot
so we are always falling back to random MAC address generation.

Since we don't seed random number generator with serial number we are
always ending up with completely random WLAN MAC suffix every boot,
this change makes it so that we at least stick to one randomly
generated WLAN MAC at least until OnePlus fixes their RIL stack.

Change-Id: If23c6008bb6c1480c500032fb2f1bcd052f999a0
parent ef2309e2
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -334,14 +334,12 @@ on post-fs
#ifdef VENDOR_EDIT
#   /* create a empty file for wifi hal to write mac address */
    mkdir /mnt/vendor/persist/qca6390 0770 wifi wifi
    write /mnt/vendor/persist/qca6390/wlan_mac.bin ""
    chown wifi wifi /mnt/vendor/persist/qca6390/wlan_mac.bin
    copy /vendor/etc/wifi/qca6390/WCNSS_qcom_cfg.ini /mnt/vendor/persist/qca6390/WCNSS_qcom_cfg.ini
    chown wifi wifi /mnt/vendor/persist/qca6390/WCNSS_qcom_cfg.ini
#   /*create a empty file for wifi single point calibration*/
    mkdir /mnt/vendor/persist/copy 0770 wifi wifi
#   /* create a empty file for wifi hal to write qca6490 mac address */
    write /mnt/vendor/persist/wlan_mac.bin ""
    chown wifi wifi /mnt/vendor/persist/wlan_mac.bin
#   /* Implement the function of forced Chain0/1 insmod WCNSS_qcom_cfg.ini */
    copy /vendor/etc/wifi/WCNSS_qcom_cfg.ini /mnt/vendor/persist/WCNSS_qcom_cfg.ini