_bt_hal_enable_gap_auth_notifications(type, ((enable == 0) ? FALSE : TRUE));
return BT_STATUS_SUCCESS;
}
-#endif
static int set_hal_adapter_request_state(int enable)
{
_bt_hal_set_le_request_state(enable);
return BT_STATUS_SUCCESS;
}
+#endif
static const bt_interface_t bluetooth_if = {
.size = sizeof(bt_interface_t),
_bt_hal_destroy_adapter_agent();
} else {
DBG("###### Adapter Powered Up ######");
- int is_flight_mode=1, ret = -1;
- ret = vconf_get_bool(VCONFKEY_TELEPHONY_FLIGHT_MODE, &is_flight_mode);
- if (ret != 0)
- ERR("vconf_get_bool failed");
- if (_bt_hal_get_adapter_request_state() || !is_flight_mode) {
+ if (_bt_hal_get_adapter_request_state()) {
DBG("Sending STATE CHANGE EVENT for Adapter... ");
_bt_hal_set_adapter_request_state(FALSE);
struct hal_ev_adapter_state_changed ev;
event_cb(HAL_EV_ADAPTER_STATE_CHANGED, &ev, sizeof(ev));
}
#ifdef TIZEN_BT_HAL
- if (_bt_hal_get_le_request_state() || !is_flight_mode) {
+ if (_bt_hal_get_le_request_state()) {
DBG("Sending STATE CHANGE EVENT for LE... ");
_bt_hal_set_le_request_state(FALSE);
struct hal_ev_le_state_changed ev;
BT_DBG();
}
+#ifdef TIZEN_BT_HAL
int oal_set_adapter_request_state(int enable)
{
return blued_api->set_hal_adapter_request_state(enable);
{
return blued_api->set_hal_le_request_state(enable);
}
+#endif
oal_status_t adapter_enable(void)
{
static void __bt_set_visible_mode(void);
static void __bt_set_local_name(void);
-int set_adapter_request_state(int enable);
-int set_le_request_state(int enable);
/* Initialize BT stack (Initialize OAL layer) */
int _bt_stack_init(void)
}
}
-int set_adapter_request_state(int enable)
+int _bt_set_adapter_request_state(int enable)
{
return oal_set_adapter_request_state(enable);
}
-int set_le_request_state(int enable)
+int _bt_set_le_request_state(int enable)
{
return oal_set_le_request_state(enable);
}
case BT_ENABLE_ADAPTER:
{
bt_status_t status;
- set_adapter_request_state(TRUE);
+ _bt_set_adapter_request_state(TRUE);
status = _bt_adapter_get_status();
if (status == BT_ACTIVATING) {
case BT_DISABLE_ADAPTER:
{
bt_status_t status;
- set_le_request_state(TRUE);
status = _bt_adapter_get_status();
if (status == BT_DEACTIVATING) {
BT_DBG("Disabling in progress");
case BT_ENABLE_ADAPTER_LE:
{
bt_le_status_t le_status;
-
+ _bt_set_le_request_state(TRUE);
le_status = _bt_adapter_get_le_status();
if (le_status == BT_LE_ACTIVATING) {
BT_DBG("Enabling in progress");
void _bt_set_disabled(int result);
-int set_adapter_request_state(int enable);
+int _bt_set_adapter_request_state(int enable);
-int set_le_request_state(int enable);
+int _bt_set_le_request_state(int enable);
#ifdef __cplusplus
}