summaryrefslogtreecommitdiff
path: root/btio
AgeCommit message (Collapse)AuthorFilesLines
2013-08-01btio: Add option for SCO voice settingFrédéric Dalleau2-4/+21
2013-05-17btio: Add BT_IO_OPT_SOURCE_TYPE option for source bdaddr typeJohan Hedberg2-4/+12
2012-12-23btio: Fix missing config.h includesCristian Rodríguez1-0/+5
2012-11-14btio: Fix type detection for L2CAP fixed channelsLuiz Augusto von Dentz1-0/+1
2012-11-14btio: Fix type detection when psm or channel are 0Luiz Augusto von Dentz1-25/+12
They could be set to 0 on purpose so the kernel would automatically pick one available. To fix this now the detection is done while parsing the options, so in case the user set the option to 0 it will automatically set the type as well.
2012-08-29btio: Remove BT_IO_L2ERTMJohan Hedberg1-43/+6
There's no need to have a separate type for ERTM. The mode parameter takes care of most needs and if necessary a "reliable" parameter can be added later which will map to SOCK_STREAM usage.
2012-08-28btio: Make BtIOType privateJohan Hedberg2-35/+119
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-28btio: Remove unneeded L2CAP raw socket supportJohan Hedberg2-25/+0
Now that pairing is done through mgmt this support is no-longer needed.
2012-07-29btio: Connect callback errors handling cleanupClaudio Takahasi1-19/+7
Condition verification is not required for this watch since the condition to watch for was previously informed when it was added in the mainloop.
2012-07-29btio: Replace g_set_error by ERROR_FAILED macroClaudio Takahasi1-12/+7
This patch replaces the calls of g_set_error function by the local defined macro "ERROR_FAILED".
2012-07-24btio: Rescue lost errorneous numbersPaulo Alcantara2-37/+48
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-04-25btio: Add address type in bt_io_connectClaudio Takahasi2-4/+18
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-02-02btio: Add BtIOMode enum to be used with BT_IO_OPT_MODELuiz Augusto von Dentz1-0/+8
2012-01-31btio: Add L2ERTM typeLuiz Augusto von Dentz2-0/+18
L2ERTM type uses L2CAP socket in SOCK_STREAM instead of SOCK_SEQPACKET
2012-01-24btio: Remove the default security level from btioVinicius Costa Gomes1-1/+0
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-24btio: Add support for getting the Encryption Key Size via btioVinicius Costa Gomes2-0/+20
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-17btio: Remove support for hciX source addressesMarcel Holtmann1-6/+1
2011-12-08btio: Fix byte order conversion when getting L2CAP CIDSantiago Carot-Nemesio1-1/+1
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.
2011-11-30btio: Fix byte order conversion when getting L2CAP PSMSantiago Carot-Nemesio1-1/+1
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.
2011-11-17btio: Fix errno handling conventionAnderson Lizardo1-6/+8
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.
2011-11-04btio: add BT_IO_OPT_PRIORITY optionLuiz Augusto von Dentz2-4/+44
BT_IO_OPT_PRIORITY uses SO_PRIORITY to set the priority of the socket
2011-07-09btio: Fix the return value of bt_io functionsVinicius Costa Gomes1-6/+9
Some bt_io methods were ignoring the value stored in errno when reporting the error to the caller.
2011-05-27btio: Add workaround for not defined BT_FLUSHABLEMarcel Holtmann1-0/+4
2011-05-15btio: Fix unused variable warningJohan Hedberg1-2/+4
2011-05-05Fix btio.c compilation warningAnderson Briglia1-1/+1
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-04-21Add BT_FLUSHABLE support to BtIOJohan Hedberg2-5/+54
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-03-25Fix error message when getting SCO connection handleLuiz Augusto von Dentz1-2/+2
Error message should indicate the transport correctly which is SCO not RFCOMM.
2010-10-18Get mode option for L2CAP socketsSantiago Carot-Nemesio1-0/+3
2010-09-30Add L2CAP fixed channels support for BTIOClaudio Takahasi2-10/+28
Add new option BT_IO_OPT_CID to allow listen and connect using a fixed L2CAP channel for BTIO.
2010-09-13btio: Seperate btio.[ch] into btio directoryZhenhua Zhang2-0/+1396
Seperate btio.[ch] from src directory to btio sub-folder.