Fix bt-service crash on Fhub TCT 70/237370/1
authorDoHyun Pyun <dh79.pyun@samsung.com>
Mon, 29 Jun 2020 23:32:01 +0000 (08:32 +0900)
committerDoHyun Pyun <dh79.pyun@samsung.com>
Mon, 29 Jun 2020 23:32:01 +0000 (08:32 +0900)
Change-Id: I789bc00ec7fd410b81527459a4d101376d1af9a3
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
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