DHDCFLAGS += -DUSBOS_TX_THREAD -DBCMDBUS -DBCMTRXV2 -DDBUS_USB_LOOPBACK \
-DBDC
DHDCFLAGS += -DBCM_REQUEST_FW -DEXTERNAL_FW_PATH
-#DHDCFLAGS :=$(filter-out -DENABLE_INSMOD_NO_FW_LOAD,$(DHDCFLAGS))
+DHDCFLAGS :=$(filter-out -DENABLE_INSMOD_NO_FW_LOAD,$(DHDCFLAGS))
ifneq ($(CONFIG_BCMDHD_CUSB),)
DHDCFLAGS += -DBCMUSBDEV_COMPOSITE
DHDCFLAGS :=$(filter-out -DENABLE_INSMOD_NO_FW_LOAD,$(DHDCFLAGS))
bcmerror = DBUS_ERR_NVRAM;
goto err;
}
- if (nv_image)
+ if (nv_image) {
dhd_os_close_image(nv_image);
-
- nv_image = NULL;
+ nv_image = NULL;
+ }
/* For Get first block of fw to calculate total_len */
file_exists = ((pfw_path != NULL) && (pfw_path[0] != '\0'));
extern int wifi_irq_trigger_level(void);
extern u8 *wifi_get_mac(void);
#endif
+extern void set_usb_bt_power(int is_power);
extern void sdio_reinit(void);
extern void extern_wifi_set_enable(int is_on);
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 14, 0))
}
}
#ifdef CUSTOMER_HW_AMLOGIC
+#ifdef BCMSDIO
extern_wifi_set_enable(0);
mdelay(200);
extern_wifi_set_enable(1);
mdelay(200);
// sdio_reinit();
#endif
+#ifdef BCMDBUS
+ set_usb_bt_power(0);
+ mdelay(200);
+ set_usb_bt_power(1);
+ mdelay(200);
+#endif
+#endif
#if defined(BUS_POWER_RESTORE)
#if defined(BCMSDIO)
if (adapter->sdio_func && adapter->sdio_func->card && adapter->sdio_func->card->host) {
}
}
#ifdef CUSTOMER_HW_AMLOGIC
+#ifdef BCMSDIO
extern_wifi_set_enable(0);
mdelay(200);
+#endif
+#ifdef BCMDBUS
+ set_usb_bt_power(0);
+ mdelay(200);
+#endif
#endif
}
DHDCFLAGS += -DUSBOS_TX_THREAD -DBCMDBUS -DBCMTRXV2 -DDBUS_USB_LOOPBACK \
-DBDC
DHDCFLAGS += -DBCM_REQUEST_FW -DEXTERNAL_FW_PATH
-#DHDCFLAGS :=$(filter-out -DENABLE_INSMOD_NO_FW_LOAD,$(DHDCFLAGS))
+DHDCFLAGS :=$(filter-out -DENABLE_INSMOD_NO_FW_LOAD,$(DHDCFLAGS))
ifneq ($(CONFIG_BCMDHD_CUSB),)
DHDCFLAGS += -DBCMUSBDEV_COMPOSITE
DHDCFLAGS :=$(filter-out -DENABLE_INSMOD_NO_FW_LOAD,$(DHDCFLAGS))
bcmerror = DBUS_ERR_NVRAM;
goto err;
}
- if (nv_image)
+ if (nv_image) {
dhd_os_close_image1(dhd_bus->dhd, nv_image);
+ nv_image = NULL;
+ }
/* For Get first block of fw to calculate total_len */
file_exists = ((pfw_path != NULL) && (pfw_path[0] != '\0'));
extern u8 *wifi_get_mac(void);
#endif
extern void sdio_reinit(void);
+extern void set_usb_bt_power(int is_power);
extern void extern_wifi_set_enable(int is_on);
extern void pci_remove_reinit(unsigned int vid, unsigned int pid, int delBus);
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 14, 0))
mdelay(200);
// sdio_reinit();
#endif
+#ifdef BCMDBUS
+ set_usb_bt_power(0);
+ mdelay(200);
+ set_usb_bt_power(1);
+ mdelay(200);
+#endif
#endif
#if defined(BUS_POWER_RESTORE)
#if defined(BCMSDIO)
}
}
#ifdef CUSTOMER_HW_AMLOGIC
-// extern_wifi_set_enable(0);
-// mdelay(200);
+#ifdef BCMSIDO
+ extern_wifi_set_enable(0);
+ mdelay(200);
+#endif
+#ifdef BCMDBUS
+ set_usb_bt_power(0);
+ mdelay(200);
+#endif
#endif
}