Fix the issue that can not send device event
[platform/core/connectivity/bluetooth-frwk.git] / bt-oal / oal-adapter-mgr.c
index 0120f29..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
@@ -363,8 +367,6 @@ oal_status_t adapter_get_energy_info(uint32_t *tx_time, uint32_t *rx_time,
 {
        int ret;
 
-       API_TRACE();
-
        CHECK_OAL_INITIALIZED();
 
        OAL_CHECK_PARAMETER(tx_time, return);
@@ -372,7 +374,7 @@ oal_status_t adapter_get_energy_info(uint32_t *tx_time, uint32_t *rx_time,
        OAL_CHECK_PARAMETER(idle_time, return);
        OAL_CHECK_PARAMETER(energy_used, return);
 
-       BT_INFO("Get Adapter Energy Info");
+       BT_DBG("Get Adapter Energy Info");
 
 #ifdef TIZEN_BT_HAL
        ret = blued_api->get_adapter_energy_info(tx_time, rx_time, idle_time, energy_used);
@@ -872,9 +874,8 @@ oal_status_t adapter_set_white_list(bt_address_t *device_address, int address_ty
        bdstr_t bdstr;
 
        CHECK_OAL_INITIALIZED();
-       API_TRACE();
 
-       BT_INFO("BT remote device Address: %s", bdt_bd2str(device_address, &bdstr));
+       BT_INFO("BT remote device Address: %s", bdt_bd2str(device_address, &bdstr) + 12);
 
        ret = blued_api->adapter_le_set_white_list((bt_bdaddr_t*)device_address, address_type, is_add);
        if (ret != BT_STATUS_SUCCESS) {