• Sungmin Choi's avatar
    mako: enable to modify mac address at boot time · 5fd819dc
    Sungmin Choi authored
    - add conn_init and libwfcu packages
    - modify mac address of ini and nv (calibration) file through conn_init service
    - change ini and nv files location from /system/etc/firmware/wlan/prima
      to /system/etc/wifi, because we must read and write mac address from persist.
      We use wifi firmware loaded location to /vendor/firmware.
      System partition is read-only, so use some fake links like the followings:
    - conn_init operation:
      1. copy /system/etc/wifi/WCNSS_qcom_cfg.ini and WCNSS_qcom_wlan_nv.bin
         to /data/misc/wifi.
      2. read mac address from persist and write to ini and nv.
      3. WCNSS_qcom.cfg.ini and WCNSS_qcom_wlan.vn.bin must be loaded
         in /etc/firmware, /vendor/firmware, or /firmware/image.
      4. To operate 3, we use the fake links between
         /data/misc/wifi and /vendor/firmware/wlan/prima
      5. Now, we can use modified ini and nv files from /vendor/firmware/wlan/prima/
    
    Change-Id: I161385f6883ecf6350bd71ab9f2fc9b2543937c0
    5fd819dc
wfc_util_common.h 1.31 KB