Fix bt-service crash on Fhub TCT
[platform/core/connectivity/bluetooth-frwk.git] / bt-oal / oal-adapter-mgr.c
index 6f3c56b..d0a2f6d 100644 (file)
@@ -145,11 +145,15 @@ void adapter_mgr_cleanup(void)
 #ifdef TIZEN_BT_HAL
 int oal_set_adapter_request_state(int enable)
 {
+       CHECK_OAL_INITIALIZED();
+
        return blued_api->set_hal_adapter_request_state(enable);
 }
 
 int oal_set_le_request_state(int enable)
 {
+       CHECK_OAL_INITIALIZED();
+
        return blued_api->set_hal_le_request_state(enable);
 }
 #endif