Fix return-type mismatch issue
[platform/core/connectivity/bluetooth-frwk.git] / bt-api / bt-adapter.c
index 8a1051f..7729084 100644 (file)
@@ -89,7 +89,7 @@ BT_EXPORT_API int bluetooth_enable_adapter(void)
                                BLUETOOTH_ERROR_DEVICE_ALREADY_ENABLED);
 
 #ifdef TIZEN_FEATURE_BT_DPM
-       retv_if(bluetooth_dpm_is_mode_allowed() == BLUETOOTH_DPM_RESULT_ACCESS_DENIED,
+       retv_if(bluetooth_dpm_is_mode_allowed() == BLUETOOTH_ERROR_PERMISSION_DEINED,
                                BLUETOOTH_ERROR_PERMISSION_DEINED);
 #endif