diff --git a/hal/usb_halinit.c b/hal/usb_halinit.c index d6886c2..496273a 100644 --- a/hal/usb_halinit.c +++ b/hal/usb_halinit.c @@ -1121,88 +1121,14 @@ static u32 rtl8188eu_hal_init(PADAPTER Adapter) HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter); struct pwrctrl_priv *pwrctrlpriv = &Adapter->pwrctrlpriv; struct registry_priv *pregistrypriv = &Adapter->registrypriv; - rt_rf_power_state eRfPowerStateToSet; #ifdef CONFIG_BT_COEXIST struct btcoexist_priv *pbtpriv = &(pHalData->bt_coexist); #endif - u32 init_start_time = rtw_get_current_time(); -#ifdef DBG_HAL_INIT_PROFILING - - enum HAL_INIT_STAGES { - HAL_INIT_STAGES_BEGIN = 0, - HAL_INIT_STAGES_INIT_PW_ON, - HAL_INIT_STAGES_MISC01, - HAL_INIT_STAGES_DOWNLOAD_FW, - HAL_INIT_STAGES_MAC, - HAL_INIT_STAGES_BB, - HAL_INIT_STAGES_RF, - HAL_INIT_STAGES_EFUSE_PATCH, - HAL_INIT_STAGES_INIT_LLTT, - - HAL_INIT_STAGES_MISC02, - HAL_INIT_STAGES_TURN_ON_BLOCK, - HAL_INIT_STAGES_INIT_SECURITY, - HAL_INIT_STAGES_MISC11, - HAL_INIT_STAGES_INIT_HAL_DM, - /* HAL_INIT_STAGES_RF_PS, */ - HAL_INIT_STAGES_IQK, - HAL_INIT_STAGES_PW_TRACK, - HAL_INIT_STAGES_LCK, - /* HAL_INIT_STAGES_MISC21, */ - /* HAL_INIT_STAGES_INIT_PABIAS, */ - #ifdef CONFIG_BT_COEXIST - HAL_INIT_STAGES_BT_COEXIST, - #endif - /* HAL_INIT_STAGES_ANTENNA_SEL, */ - /* HAL_INIT_STAGES_MISC31, */ - HAL_INIT_STAGES_END, - HAL_INIT_STAGES_NUM - }; - - char * hal_init_stages_str[] = { - "HAL_INIT_STAGES_BEGIN", - "HAL_INIT_STAGES_INIT_PW_ON", - "HAL_INIT_STAGES_MISC01", - "HAL_INIT_STAGES_DOWNLOAD_FW", - "HAL_INIT_STAGES_MAC", - "HAL_INIT_STAGES_BB", - "HAL_INIT_STAGES_RF", - "HAL_INIT_STAGES_EFUSE_PATCH", - "HAL_INIT_STAGES_INIT_LLTT", - "HAL_INIT_STAGES_MISC02", - "HAL_INIT_STAGES_TURN_ON_BLOCK", - "HAL_INIT_STAGES_INIT_SECURITY", - "HAL_INIT_STAGES_MISC11", - "HAL_INIT_STAGES_INIT_HAL_DM", - /* HAL_INIT_STAGES_RF_PS", */ - "HAL_INIT_STAGES_IQK", - "HAL_INIT_STAGES_PW_TRACK", - "HAL_INIT_STAGES_LCK", - /* HAL_INIT_STAGES_MISC21", */ - #ifdef CONFIG_BT_COEXIST - "HAL_INIT_STAGES_BT_COEXIST", - #endif - /* HAL_INIT_STAGES_ANTENNA_SEL", */ - /* HAL_INIT_STAGES_MISC31", */ - "HAL_INIT_STAGES_END", - }; - - int hal_init_profiling_i; - u32 hal_init_stages_timestamp[HAL_INIT_STAGES_NUM]; /* used to record the time of each stage's starting point */ - - for (hal_init_profiling_i=0;hal_init_profiling_i