diff options
-rw-r--r-- | btif/src/btif_core.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/btif/src/btif_core.c b/btif/src/btif_core.c index 1fc263c08..107755873 100644 --- a/btif/src/btif_core.c +++ b/btif/src/btif_core.c @@ -647,6 +647,11 @@ bt_status_t btif_disable_bluetooth(void) btif_pan_cleanup(); BTA_DisableBluetooth(); +#if (BLE_INCLUDED == TRUE) + BTA_VendorCleanup(); + BTA_StopBleTimers(); +#endif + return BT_STATUS_SUCCESS; } @@ -674,11 +679,6 @@ void btif_disable_bluetooth_evt(void) bte_main_enable_lpm(FALSE); #endif -#if (BLE_INCLUDED == TRUE) - BTA_VendorCleanup(); - BTA_StopBleTimers(); -#endif - bte_main_disable(); /* callback to HAL */ |