{
BT_INFO("__bt_adapter_post_set_enabled>>");
- if (!TIZEN_PROFILE_TV) {
+ if (TIZEN_PROFILE_TV || !headed_plugin_info->plugin_headed_enabled) {
+ if (BLUETOOTH_ERROR_NONE != _bt_set_discoverable_mode(
+ BLUETOOTH_DISCOVERABLE_MODE_GENERAL_DISCOVERABLE, 0))
+ BT_ERR("Fail to set discoverable mode");
+ } else {
__bt_set_visible_mode();
/* add the vconf noti handler */
BT_ERR("DEVICE_NAME key changed notification registration failed");
__bt_set_local_name();
- } else {
- if (BLUETOOTH_ERROR_NONE != _bt_set_discoverable_mode(
- BLUETOOTH_DISCOVERABLE_MODE_GENERAL_DISCOVERABLE, 0))
- BT_ERR("Fail to set discoverable mode");
}
/* Get All properties */
if (_bt_get_enable_timer_id() == 0)
#endif
_bt_enable_adapter();
+ } else if (!headed_plugin_info->plugin_headed_enabled) {
+ BT_DBG("Enable adapter if headless device");
+ _bt_enable_adapter();
} else {
if (vconf_get_int(VCONFKEY_BT_STATUS, &bt_status) < 0)
BT_DBG("no bluetooth device info, so BT was disabled at previous session");