diff --git a/include/rtw_debug.h b/include/rtw_debug.h index e1bd6a9..206a443 100644 --- a/include/rtw_debug.h +++ b/include/rtw_debug.h @@ -54,7 +54,7 @@ enum { #define RTW_DBG_EXPR(EXPR) do {} while (0) -#define RTW_DBGDUMP 0 /* 'stream' for _dbgdump */ +#define RTW_DBGDUMP NULL /* 'stream' for _dbgdump */ /* don't use these 3 APIs anymore, will be removed later */ #define RT_TRACE(_Comp, _Level, Fmt) do {} while (0) diff --git a/os_dep/usb_intf.c b/os_dep/usb_intf.c index 3ac40b1..a1bff0e 100644 --- a/os_dep/usb_intf.c +++ b/os_dep/usb_intf.c @@ -1526,16 +1526,6 @@ static int __init rtw_drv_entry(void) RTW_INFO(DRV_NAME" BT-Coex version = %s\n", BTCOEXVERSION); #endif /* BTCOEXVERSION */ - ret = platform_wifi_power_on(); - if (ret != 0) { - RTW_INFO("%s: power on failed!!(%d)\n", __FUNCTION__, ret); - ret = -1; - goto exit; - } -#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 24)) - /* console_suspend_enabled=0; */ -#endif - usb_drv.drv_registered = _TRUE; rtw_suspend_lock_init(); rtw_drv_proc_init(); @@ -1564,8 +1554,6 @@ static void __exit rtw_drv_halt(void) usb_deregister(&usb_drv.usbdrv); - platform_wifi_power_off(); - rtw_suspend_lock_uninit(); rtw_drv_proc_deinit(); rtw_ndev_notifier_unregister(); diff --git a/platform/platform_ops.c b/platform/platform_ops.c index 95da669..34795cf 100644 --- a/platform/platform_ops.c +++ b/platform/platform_ops.c @@ -23,15 +23,5 @@ * 0: power on successfully * others: power on failed */ -int platform_wifi_power_on(void) -{ - int ret = 0; - - return ret; -} - -void platform_wifi_power_off(void) -{ -} #endif /* !CONFIG_PLATFORM_OPS */