Commit Graph

19 Commits

Author SHA1 Message Date
Luiz Augusto von Dentz 8b35fa1277 btio: Add BtIOMode enum to be used with BT_IO_OPT_MODE 2012-02-10 10:18:01 +01:00
Luiz Augusto von Dentz c5193182ea btio: Add L2ERTM type
L2ERTM type uses L2CAP socket in SOCK_STREAM instead of SOCK_SEQPACKET
2012-02-10 10:17:55 +01:00
Vinicius Costa Gomes fc114ada8d btio: Remove the default security level from btio
The default value of sec_level when setting *any* option
using bt_io_set() was BT_SECURITY_MEDIUM. This was causing
the security procedure being started in some situations that
it should not.
2012-01-25 22:22:24 -08:00
Vinicius Costa Gomes 38c6525979 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-25 22:22:24 -08:00
Marcel Holtmann f9fac7100b btio: Remove support for hciX source addresses 2012-01-17 11:48:24 +01:00
Santiago Carot-Nemesio b2ed1b1ac4 btio: Fix byte order conversion when getting L2CAP CID
The L2CAP CID is passed and received in little endian byte order
through the socket interface so a conversion is in place before
passing it onwards.
2012-01-17 11:42:21 +01:00
Santiago Carot-Nemesio 4222c68155 btio: Fix byte order conversion when getting L2CAP PSM
The L2CAP PSM is passed and received in little endian byte order through
the socket interface so a conversion is in place before passing it
onwards.
2012-01-17 11:41:52 +01:00
Anderson Lizardo 0a29072527 btio: Fix errno handling convention
Variables which are assigned to the errno variable (usually called
"err") should be negative, and "-err" should be used where a positive
value is needed.
2012-01-17 11:41:30 +01:00
Luiz Augusto von Dentz 177f45bb91 btio: add BT_IO_OPT_PRIORITY option
BT_IO_OPT_PRIORITY uses SO_PRIORITY to set the priority of the socket
2012-01-17 11:41:11 +01:00
Vinicius Costa Gomes 6549cb6346 btio: Fix the return value of bt_io functions
Some bt_io methods were ignoring the value stored in errno when
reporting the error to the caller.
2011-07-09 18:47:29 +02:00
Marcel Holtmann 9506b203e5 btio: Add workaround for not defined BT_FLUSHABLE 2011-05-27 10:21:47 -07:00
Johan Hedberg 7414d16a24 btio: Fix unused variable warning 2011-05-27 10:14:09 -07:00
Anderson Briglia ce861145f0 btio: Fix compilation warning
This patch fixes a compilation warning regarding btio/btio.c. Actually
this warning seems a false positive by Ubuntu Natty GCC version. A new
bug on Ubuntu bug system was opened but if you do not want to wait until
it is analyzed, just apply this minor fix.

btio/btio.c: In function 'bt_io_get':
btio/btio.c:803:11: warning: 'flushable' may be used uninitialized in
this function
2011-05-27 10:13:53 -07:00
Johan Hedberg 478e0ec81a btio: 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-05-27 10:13:32 -07:00
Luiz Augusto von Dentz 8a77254921 btio: Fix error message when getting SCO connection handle
Error message should indicate the transport correctly which is SCO
not RFCOMM.
2011-05-27 10:12:57 -07:00
Marcel Holtmann 3970e5c06b btio: Fix email address in copyright header 2011-01-30 10:56:37 +01:00
Santiago Carot-Nemesio a60d85d72c btio: Get mode option for L2CAP sockets 2011-01-30 10:55:16 +01:00
Claudio Takahasi 26de869580 btio: Add L2CAP fixed channels support
Add new option BT_IO_OPT_CID to allow listen and connect using a fixed
L2CAP channel for BTIO.
2011-01-30 10:54:41 +01:00
Zhenhua Zhang 2565d8aed6 bluetooth: Add Btio library for DUN
Btio library is the low level socket API for BT RFCOMM connection. We
share the same library among BlueZ, Obex and oFono. So make sure you
synchronize to other two projects when you make changes to btio.[ch].
2011-01-13 17:14:55 -06:00