wifi: fix ap62x8 vts test fail
authorRongjun Chen <rongjun.chen@amlogic.com>
Wed, 11 Apr 2018 10:36:14 +0000 (18:36 +0800)
committerRongjun Chen <rongjun.chen@amlogic.com>
Wed, 11 Apr 2018 10:46:21 +0000 (18:46 +0800)
PD# 163673

fix ap62x8 vts test fail

Change-Id: I0f7210466167f7ebe24a40daf9ff9aa3ea53ccd4
Signed-off-by: Rongjun Chen <rongjun.chen@amlogic.com>
bcmdhd.1.579.77.41.1.cn/dbus.c [changed mode: 0755->0644]
bcmdhd.1.579.77.41.1.cn/dbus_usb.c [changed mode: 0755->0644]
bcmdhd.1.579.77.41.1.cn/dbus_usb_linux.c [changed mode: 0755->0644]
bcmdhd.1.579.77.41.1.cn/dhd_common.c
bcmdhd.1.579.77.41.1.cn/dhd_linux.c

old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
index 46f270ef7a5ef12aa92e34a3f397985c450db94c..80fcbd92cec42a395aa0f3baf55a1d1dbab0354b 100644 (file)
@@ -655,7 +655,7 @@ int
 dhd_common_socram_dump(dhd_pub_t *dhdp)
 {
 #ifdef BCMDBUS
-       return -1;
+       return 0;
 #else
        return dhd_socram_dump(dhdp->bus);
 #endif /* BCMDBUS */
index 1add605416f5f001b6c53d58717b1be056e6c481..0f3932823fba453d2a092af090392314cd15bac8 100644 (file)
@@ -12102,9 +12102,7 @@ dhd_preinit_ioctls(dhd_pub_t *dhd)
                bcmstrtok(&ptr, "\n", 0);
                strncpy(fw_version, buf, FW_VER_STR_LEN);
                fw_version[FW_VER_STR_LEN-1] = '\0';
-#if defined(BCMSDIO) || defined(BCMPCIE)
                dhd_set_version_info(dhd, buf);
-#endif /* BCMSDIO || BCMPCIE */
 #ifdef WRITE_WLANINFO
                sec_save_wlinfo(buf, EPI_VERSION_STR, dhd->info->nv_path, clm_version);
 #endif /* WRITE_WLANINFO */
@@ -17489,7 +17487,6 @@ bool dhd_os_check_if_up(dhd_pub_t *pub)
        return pub->up;
 }
 
-#if defined(BCMSDIO) || defined(BCMPCIE)
 /* function to collect firmware, chip id and chip version info */
 void dhd_set_version_info(dhd_pub_t *dhdp, char *fw)
 {
@@ -17503,10 +17500,9 @@ void dhd_set_version_info(dhd_pub_t *dhdp, char *fw)
                return;
 
        i = snprintf(&info_string[i], sizeof(info_string) - i,
-               "\n  Chip: %x Rev %x Pkg %x", dhd_bus_chip_id(dhdp),
-               dhd_bus_chiprev_id(dhdp), dhd_bus_chippkg_id(dhdp));
+               "\n  Chip: %x Rev %x", dhd_conf_get_chip(dhdp),
+               dhd_conf_get_chiprev(dhdp));
 }
-#endif /* BCMSDIO || BCMPCIE */
 
 int dhd_ioctl_entry_local(struct net_device *net, wl_ioctl_t *ioc, int cmd)
 {