guint id;
+ BtIOMode mode;
BtIOSecLevel sec_level;
bool authorize;
io = bt_io_listen(connect, confirm, l2cap, NULL, &err,
BT_IO_OPT_SOURCE_BDADDR,
adapter_get_address(adapter),
+ BT_IO_OPT_MODE, ext->mode,
BT_IO_OPT_PSM, psm,
BT_IO_OPT_SEC_LEVEL, ext->sec_level,
BT_IO_OPT_INVALID);
const char *remote_uuid;
int channel;
int psm;
+ BtIOMode mode;
BtIOSecLevel sec_level;
bool authorize;
bool auto_connect;
.name = "Object Push",
.channel = OPP_DEFAULT_CHANNEL,
.psm = BTD_PROFILE_PSM_AUTO,
+ .mode = BT_IO_MODE_ERTM,
.sec_level = BT_IO_SEC_LOW,
.authorize = false,
.get_record = get_opp_record,
.name = "File Transfer",
.channel = FTP_DEFAULT_CHANNEL,
.psm = BTD_PROFILE_PSM_AUTO,
+ .mode = BT_IO_MODE_ERTM,
.get_record = get_ftp_record,
.version = 0x0102,
}, {
{
unsigned int i;
+ ext->mode = BT_IO_MODE_BASIC;
ext->sec_level = BT_IO_SEC_MEDIUM;
ext->authorize = true;
ext->enable_client = true;
if (settings->sec_level)
ext->sec_level = settings->sec_level;
+ if (settings->mode)
+ ext->mode = settings->mode;
+
if (settings->auto_connect)
ext->p.auto_connect = true;