Commit Graph

11 Commits

Author SHA1 Message Date
Johan Hedberg
a0d52c9ad0 btio: Make BtIOType private
Since the socket type can be inferred from the socket itself or from the
PSM/Channel/CID/etc parameters provided to listen() and connect() it
doesn't make sense to expose this in the BtIO API.
2012-08-28 17:18:28 -07:00
Johan Hedberg
84bc0d0e57 btio: Remove unneeded L2CAP raw socket support
Now that pairing is done through mgmt this support is no-longer needed.
2012-08-28 13:58:05 -07:00
Paulo Alcantara
d9e204c065 btio: Rescue lost errorneous numbers
The BT_IO_ERROR_* flags are not used for anything else and we just
loosing errorneous numbers set in the sockets that might be more
useful for handling specific errors.

A use case would be disconnect errors that should not allow BlueZ to
enable auto connections since the connection would never be possible in
some cases.

This patch removes BT_IO_ERROR_* flags and use the errors set in the
sockets instead. Now, the errors passed in connect/disconnect callbacks
should contain proper error numbers passed to them.
2012-07-24 11:48:21 +02:00
Claudio Takahasi
d94f9cbf75 btio: Add address type in bt_io_connect
This patch adds a new BtIO option to allow setting the remote Bluetooth
address type for BLE connections. Allowed values for BT_IO_OPT_DEST_TYPE
option are: BDADDR_BREDR, BDADDR_LE_PUBLIC, and BDADDR_LE_RANDOM.
2012-04-25 12:58:48 +03:00
Luiz Augusto von Dentz
c2452f3d45 btio: Add BtIOMode enum to be used with BT_IO_OPT_MODE 2012-02-02 15:55:07 -08:00
Luiz Augusto von Dentz
11dbefe49d btio: Add L2ERTM type
L2ERTM type uses L2CAP socket in SOCK_STREAM instead of SOCK_SEQPACKET
2012-01-31 18:32:34 -08:00
Vinicius Costa Gomes
51886914ef btio: Add support for getting the Encryption Key Size via btio
Some profiles specify some restriction depending on the length
of the key used to encrypt the link, this adds an way to retrieve
that value from the kernel.
2012-01-24 16:19:19 +02:00
Luiz Augusto von Dentz
992f24762f btio: add BT_IO_OPT_PRIORITY option
BT_IO_OPT_PRIORITY uses SO_PRIORITY to set the priority of the socket
2011-11-04 15:41:41 +02:00
Johan Hedberg
071f7742be Add BT_FLUSHABLE support to BtIO
This patch adds support for the BT_FLUSHABLE L2CAP socket option through
BtIO. This can be used to mark data from specific L2CAP sockets to have
the flushable flag set in their corresponding ACL packets.
2011-04-21 10:15:04 +03:00
Claudio Takahasi
afba441542 Add L2CAP fixed channels support for BTIO
Add new option BT_IO_OPT_CID to allow listen and connect using a fixed
L2CAP channel for BTIO.
2010-09-30 17:25:40 -03:00
Zhenhua Zhang
f57cb78379 btio: Seperate btio.[ch] into btio directory
Seperate btio.[ch] from src directory to btio sub-folder.
2010-09-13 11:23:02 +03:00