classic_bonded_only = state;
}
+bool input_get_classic_bonded_only(void)
+{
+ return classic_bonded_only;
+}
+
static void input_device_enter_reconnect_mode(struct input_device *idev);
static int connection_disconnect(struct input_device *idev, uint32_t flags);
void input_set_idle_timeout(int timeout);
void input_enable_userspace_hid(bool state);
void input_set_classic_bonded_only(bool state);
+bool input_get_classic_bonded_only(void);
#ifndef TIZEN_FEATURE_BLUEZ_MODIFY
void input_set_auto_sec(bool state);
struct input_server *server;
GError *err = NULL;
+#ifndef TIZEN_FEATURE_BLUEZ_MODIFY
+ BtIOSecLevel sec_level = input_get_classic_bonded_only() ?
+ BT_IO_SEC_MEDIUM : BT_IO_SEC_LOW;
+#endif
server = g_new0(struct input_server, 1);
bacpy(&server->src, src);
#ifdef TIZEN_BT_HID_DEVICE_ENABLE
BT_IO_OPT_SEC_LEVEL, BT_IO_SEC_MEDIUM,
#else
- BT_IO_OPT_SEC_LEVEL, BT_IO_SEC_LOW,
+ BT_IO_OPT_SEC_LEVEL, sec_level,
#endif
BT_IO_OPT_INVALID);
if (!server->ctrl) {
#ifdef TIZEN_BT_HID_DEVICE_ENABLE
BT_IO_OPT_SEC_LEVEL, BT_IO_SEC_MEDIUM,
#else
- BT_IO_OPT_SEC_LEVEL, BT_IO_SEC_LOW,
+ BT_IO_OPT_SEC_LEVEL, sec_level,
#endif
BT_IO_OPT_INVALID);
if (!server->intr) {