Loading system/btif/src/bluetooth.c +0 −1 Original line number Diff line number Diff line Loading @@ -155,7 +155,6 @@ static void cleanup( void ) return; btif_shutdown_bluetooth(); bt_utils_cleanup(); /* hal callbacks reset upon shutdown complete callback */ Loading system/btif/src/btif_core.c +11 −0 Original line number Diff line number Diff line Loading @@ -37,6 +37,7 @@ #define LOG_TAG "BTIF_CORE" #include "btif_api.h" #include "bt_utils.h" #include "bta_api.h" #include "gki.h" #include "btu.h" Loading Loading @@ -737,6 +738,14 @@ bt_status_t btif_shutdown_bluetooth(void) { BTIF_TRACE_DEBUG1("%s", __FUNCTION__); if (btif_core_state == BTIF_CORE_STATE_DISABLING) { BTIF_TRACE_WARNING0("shutdown during disabling"); /* shutdown called before disabling is done */ btif_shutdown_pending = 1; return BT_STATUS_NOT_READY; } if (btif_is_enabled()) { BTIF_TRACE_WARNING0("shutdown while still enabled, initiate disable"); Loading Loading @@ -765,6 +774,8 @@ bt_status_t btif_shutdown_bluetooth(void) btif_dut_mode = 0; bt_utils_cleanup(); BTIF_TRACE_DEBUG1("%s done", __FUNCTION__); return BT_STATUS_SUCCESS; Loading Loading
system/btif/src/bluetooth.c +0 −1 Original line number Diff line number Diff line Loading @@ -155,7 +155,6 @@ static void cleanup( void ) return; btif_shutdown_bluetooth(); bt_utils_cleanup(); /* hal callbacks reset upon shutdown complete callback */ Loading
system/btif/src/btif_core.c +11 −0 Original line number Diff line number Diff line Loading @@ -37,6 +37,7 @@ #define LOG_TAG "BTIF_CORE" #include "btif_api.h" #include "bt_utils.h" #include "bta_api.h" #include "gki.h" #include "btu.h" Loading Loading @@ -737,6 +738,14 @@ bt_status_t btif_shutdown_bluetooth(void) { BTIF_TRACE_DEBUG1("%s", __FUNCTION__); if (btif_core_state == BTIF_CORE_STATE_DISABLING) { BTIF_TRACE_WARNING0("shutdown during disabling"); /* shutdown called before disabling is done */ btif_shutdown_pending = 1; return BT_STATUS_NOT_READY; } if (btif_is_enabled()) { BTIF_TRACE_WARNING0("shutdown while still enabled, initiate disable"); Loading Loading @@ -765,6 +774,8 @@ bt_status_t btif_shutdown_bluetooth(void) btif_dut_mode = 0; bt_utils_cleanup(); BTIF_TRACE_DEBUG1("%s done", __FUNCTION__); return BT_STATUS_SUCCESS; Loading