From: DoHyun Pyun Date: Tue, 3 Dec 2019 01:37:28 +0000 (+0900) Subject: Pending enable method if the stack is not intialized X-Git-Tag: accepted/tizen/unified/20191211.121108~2 X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fconnectivity%2Fbluetooth-frwk.git;a=commitdiff_plain;h=48cf4373ed6aa059394d16549a44dd39ce9e9f33 Pending enable method if the stack is not intialized Change-Id: I7e5e63e1ef39a0f72569fa499dfcd19b9b59144f Signed-off-by: DoHyun Pyun --- diff --git a/bt-oal/oal-adapter-mgr.c b/bt-oal/oal-adapter-mgr.c index 7fa21df..c1707d2 100644 --- a/bt-oal/oal-adapter-mgr.c +++ b/bt-oal/oal-adapter-mgr.c @@ -153,7 +153,13 @@ oal_status_t adapter_enable(void) int ret = BT_STATUS_SUCCESS; API_TRACE(); - CHECK_OAL_INITIALIZED(); + + if (blued_api == NULL) { + BT_INFO("Stack is initializing, so pending enable"); + g_timeout_add(200, retry_enable_adapter, NULL); + return OAL_STATUS_PENDING; + } + if (OAL_STATUS_SUCCESS != hw_is_module_ready()) { g_timeout_add(200, retry_enable_adapter, NULL); return OAL_STATUS_PENDING;