From 00b895680ea06a7d82070a436d5b643ad83e710c Mon Sep 17 00:00:00 2001 From: baohongde Date: Thu, 23 Aug 2018 11:02:59 +0800 Subject: [PATCH] component/bt: Some timer oneshot will timeout twice (backport v3.0) A cherry-pick of MR !2979 --- components/bt/bluedroid/stack/btu/btu_task.c | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/components/bt/bluedroid/stack/btu/btu_task.c b/components/bt/bluedroid/stack/btu/btu_task.c index 6e37effd4..decc25832 100644 --- a/components/bt/bluedroid/stack/btu/btu_task.c +++ b/components/bt/bluedroid/stack/btu/btu_task.c @@ -239,23 +239,6 @@ void btu_task_thread_handler(void *arg) case SIG_BTU_ONESHOT_ALARM: { TIMER_LIST_ENT *p_tle = (TIMER_LIST_ENT *)e.par; btu_general_alarm_process(p_tle); - - switch (p_tle->event) { -#if (defined(BLE_INCLUDED) && BLE_INCLUDED == TRUE) - case BTU_TTYPE_BLE_RANDOM_ADDR: - btm_ble_timeout(p_tle); - break; -#endif - case BTU_TTYPE_USER_FUNC: { - tUSER_TIMEOUT_FUNC *p_uf = (tUSER_TIMEOUT_FUNC *)p_tle->param; - (*p_uf)(p_tle); - break; - } - default: - // FAIL - LOG_ERROR("Received unexpected oneshot timer event:0x%x\n", p_tle->event); - break; - } break; } case SIG_BTU_L2CAP_ALARM: