summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2012-11-14 13:55:21 +0200
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2012-11-14 14:30:02 +0200
commitfc0bcdd01015b918e8167d3a5dcabfb30cc86989 (patch)
tree0df90fdabddad01b38bf0e4083c9f67ef873e5f7
parent2631c3c291c4e1f5273a171ba6e31ac23efb6a6a (diff)
downloadobexd-fc0bcdd01015b918e8167d3a5dcabfb30cc86989.tar.gz
client: Fix using BtIOType
-rw-r--r--client/bluetooth.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/client/bluetooth.c b/client/bluetooth.c
index ad263e0..d233e5c 100644
--- a/client/bluetooth.c
+++ b/client/bluetooth.c
@@ -194,7 +194,7 @@ static GIOChannel *transport_connect(const bdaddr_t *src, const bdaddr_t *dst,
DBG("port %u", port);
if (port > 31) {
- io = bt_io_connect(BT_IO_L2CAP, function, user_data,
+ io = bt_io_connect(function, user_data,
NULL, &err,
BT_IO_OPT_SOURCE_BDADDR, src,
BT_IO_OPT_DEST_BDADDR, dst,
@@ -205,7 +205,7 @@ static GIOChannel *transport_connect(const bdaddr_t *src, const bdaddr_t *dst,
BT_IO_OPT_SEC_LEVEL, BT_IO_SEC_LOW,
BT_IO_OPT_INVALID);
} else {
- io = bt_io_connect(BT_IO_RFCOMM, function, user_data,
+ io = bt_io_connect(function, user_data,
NULL, &err,
BT_IO_OPT_SOURCE_BDADDR, src,
BT_IO_OPT_DEST_BDADDR, dst,
@@ -635,7 +635,7 @@ static int bluetooth_getpacketopt(GIOChannel *io, int *tx_mtu, int *rx_mtu)
if (type != SOCK_SEQPACKET)
return -EINVAL;
- if (!bt_io_get(io, BT_IO_L2CAP, NULL, BT_IO_OPT_OMTU, &omtu,
+ if (!bt_io_get(io, NULL, BT_IO_OPT_OMTU, &omtu,
BT_IO_OPT_IMTU, &imtu,
BT_IO_OPT_INVALID))
return -EINVAL;