[Problem] Setting limited discoverable mode is failed
[Cause & Measure] Wrong condition check
[Checking Method] Set limited discoverable mode on DPM feature enabled
device
Change-Id: Ic180e22270ab3821147cbfbfbe2026953d3bc1d5
#ifdef TIZEN_FEATURE_BT_DPM
_bt_dpm_get_bluetooth_limited_discoverable_state(&discoverable_state);
- if (discoverable_state != DPM_RESTRICTED) {
+ if (discoverable_state == DPM_RESTRICTED) {
BT_ERR("Limited discoverable mode is not allowed");
return BLUETOOTH_ERROR_ACCESS_DENIED;
}