wlan: separate cal file for each project.

Change-Id: I2fd00025fe32c6b1756d3e411e82a380c184ff56
Signed-off-by: andy2_kuo <andy2_kuo@asus.com>
Signed-off-by: Iliyan Malchev <malchev@google.com>
This commit is contained in:
andy2_kuo 2013-04-17 12:12:14 -07:00 committed by Iliyan Malchev
parent f82049071d
commit 50000b2156
4 changed files with 17 additions and 2 deletions

BIN
WCNSS_qcom_wlan_nv_flo.bin Normal file

Binary file not shown.

View File

@ -24,6 +24,8 @@
#include "wfc_util_fctrl.h"
#include "wfc_util_common.h"
#include "cutils/properties.h"
#include "private/android_filesystem_config.h"
#define WFC_UTIL_FEAUTRE_COPY_NV_BIN
@ -546,8 +548,20 @@ int wfc_util_qcom_check_config(unsigned char *nv_mac_addr)
}
#ifdef WFC_UTIL_FEAUTRE_COPY_NV_BIN
char nv_bin_tempfile_name[50];
char baseband[5];
// Default use WCNSS_qcom_wlan_nv_flo.bin
property_get("ro.boot.baseband", baseband, "apq");
if(!strncmp(baseband, "apq", 3)) {
sprintf(nv_bin_tempfile_name, "/system/etc/wifi/WCNSS_qcom_wlan_nv_flo.bin");
} else if( !strncmp(baseband, "mdm", 3)){
sprintf(nv_bin_tempfile_name, "/system/etc/wifi/WCNSS_qcom_wlan_nv_deb.bin");
}
wfc_util_log_error("nv bin : %s", nv_bin_tempfile_name);
if(0 > wfc_util_ffile_check_copy(WFC_UTIL_NV_BIN_FILE_NAME,
WFC_UTIL_NV_BIN_TEMPFILE_NAME,
nv_bin_tempfile_name,
0660,
AID_SYSTEM,
/* we use "radio" for gid to access from "rild" for AT cmd. */

View File

@ -50,7 +50,8 @@ PRODUCT_PACKAGES += \
PRODUCT_COPY_FILES += \
device/asus/flo/WCNSS_cfg.dat:system/vendor/firmware/wlan/prima/WCNSS_cfg.dat \
device/asus/flo/WCNSS_qcom_cfg.ini:system/etc/wifi/WCNSS_qcom_cfg.ini \
device/asus/flo/WCNSS_qcom_wlan_nv.bin:system/etc/wifi/WCNSS_qcom_wlan_nv.bin
device/asus/flo/WCNSS_qcom_wlan_nv_flo.bin:system/etc/wifi/WCNSS_qcom_wlan_nv_flo.bin \
device/asus/flo/WCNSS_qcom_wlan_nv_deb.bin:system/etc/wifi/WCNSS_qcom_wlan_nv_deb.bin
PRODUCT_COPY_FILES += \
device/asus/flo/snd_soc_msm_2x_Fusion3:system/etc/snd_soc_msm/snd_soc_msm_2x_Fusion3 \