summaryrefslogtreecommitdiff
path: root/btio
Commit message (Collapse)AuthorAgeFilesLines
* Split bt_iso_qos into dedicated structuresIulia Tanasescu2023-03-311-3/+4
| | | | | Split bt_iso_qos into dedicated unicast and broadcast structures and add additional broadcast parameters.
* btio: Add support for ISO socketsLuiz Augusto von Dentz2022-07-222-3/+176
| | | | This adds support to create objects that map to ISO sockets.
* btio: Inclusive language changesArchie Pusaka2021-09-212-22/+22
| | | | | | | BT core spec 5.3 promotes the usage of inclusive languages. This CL uses "central" as it is deemed to be more appropriate. Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
* btio: Use G_PRIORITY_HIGH for watchesLuiz Augusto von Dentz2021-02-161-3/+3
| | | | | | This makes btio watches default to G_PRIORITY_HIGH instead of G_PRIORITY_DEFAULT so it takes priority over regular traffic or timeout handling.
* btio: Fix the unchecked return valueTedd Ho-Jeong An2020-11-241-4/+10
| | | | This patch fixes the unchecked return value.
* btio: Add SPDX License IdentifierTedd Ho-Jeong An2020-09-212-28/+2
| | | | | | | | | | | | | This patch adds SPDX License Identifier and removes the license text. ------------------------------------- License COUNT ------------------------------------- GPL-2.0-or-later : 2 License: GPL-2.0-or-later btio/btio.h btio/btio.c
* btio: Fix not translation mode to L2CAP modeLuiz Augusto von Dentz2020-06-051-2/+22
| | | | | When using L2CAP_OPTIONS legacy modes need to be used since they are not compatible with BT_MODE.
* btio: Fix error numberPali Rohár2020-04-241-2/+2
| | | | | In commit d20ee8273e61e16c78582344f274254973cdf00f was unintentionally negated error number. Fix this mistake.
* btio: Show destination address in connect error messagePali Rohár2020-04-221-5/+15
| | | | | When connect() fails it is not possible to retrieve destination address as socket is not bound. So put destination address into error message.
* btio: Add mode to for Enhanced Credit ModeLuiz Augusto von Dentz2020-03-302-9/+56
| | | | | This adds BT_IO_MODE_EXT_FLOWCTL which directly maps to BT_MODE_EXT_FLOWCTL.
* btio: Add BT_IO_PHY optionLuiz Augusto von Dentz2020-02-192-1/+37
| | | | | This adds BT_IO_PHY option which can be used to read the underline packet types/PHY in use by the link layer.
* build: Move declaration of _GNU_SOURCE back into individual source filesMarcel Holtmann2018-12-061-1/+1
|
* btio: Use local libbluetooth includesMarcel Holtmann2015-02-281-5/+5
|
* btio: List all enum values in switchSzymon Janc2014-12-081-0/+46
| | | | As described in coding style M10.
* btio: Fix uninitialized usage compilation errorMichael Janssen2014-11-031-3/+3
| | | | | When compiling with --enable-maintainer-mode these throw errors because of -Werror=maybe-uninitialized
* btio: Make sure voice setting are all zeroed firstMarcel Holtmann2014-09-201-0/+1
|
* btio: Fix not setting getsockopt optlen for BT_SNDMTUSzymon Janc2014-06-131-0/+1
|
* btio: Fix typo in error messageSzymon Janc2014-06-131-1/+1
|
* btio: Remove unnecessary get_peers() functionJohan Hedberg2014-04-021-24/+4
|
* btio: Do RFCOMM peer address lookup only when really necessaryJohan Hedberg2014-04-021-4/+30
|
* btio: Do L2CAP peer address lookup only when really necessaryJohan Hedberg2014-04-021-7/+69
|
* btio: Add missing BT_IO_OPT_DEST_TYPE getting supportJohan Hedberg2014-02-211-2/+2
|
* tools/l2cap-tester: Add MTU checks after successful connectionsJohan Hedberg2014-01-261-2/+3
|
* btio: Fix falling back to L2CAP_OPTIONS if BT_RCVMTU failsJohan Hedberg2013-12-301-2/+7
|
* btio: Update to support sockopts for LE CoC socketsJohan Hedberg2013-12-131-34/+84
|
* btio: Add option for SCO voice settingFrédéric Dalleau2013-08-012-4/+21
|
* btio: Add BT_IO_OPT_SOURCE_TYPE option for source bdaddr typeJohan Hedberg2013-05-172-4/+12
|
* btio: Fix missing config.h includesCristian Rodríguez2012-12-231-0/+5
|
* btio: Fix type detection for L2CAP fixed channelsLuiz Augusto von Dentz2012-11-141-0/+1
|
* btio: Fix type detection when psm or channel are 0Luiz Augusto von Dentz2012-11-141-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.
* btio: Remove BT_IO_L2ERTMJohan Hedberg2012-08-291-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.
* btio: Make BtIOType privateJohan Hedberg2012-08-282-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.
* btio: Remove unneeded L2CAP raw socket supportJohan Hedberg2012-08-282-25/+0
| | | | Now that pairing is done through mgmt this support is no-longer needed.
* btio: Connect callback errors handling cleanupClaudio Takahasi2012-07-291-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.
* btio: Replace g_set_error by ERROR_FAILED macroClaudio Takahasi2012-07-291-12/+7
| | | | | This patch replaces the calls of g_set_error function by the local defined macro "ERROR_FAILED".
* btio: Rescue lost errorneous numbersPaulo Alcantara2012-07-242-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.
* btio: Add address type in bt_io_connectClaudio Takahasi2012-04-252-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.
* btio: Add BtIOMode enum to be used with BT_IO_OPT_MODELuiz Augusto von Dentz2012-02-021-0/+8
|
* btio: Add L2ERTM typeLuiz Augusto von Dentz2012-01-312-0/+18
| | | | L2ERTM type uses L2CAP socket in SOCK_STREAM instead of SOCK_SEQPACKET
* btio: Remove the default security level from btioVinicius Costa Gomes2012-01-241-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.
* btio: Add support for getting the Encryption Key Size via btioVinicius Costa Gomes2012-01-242-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.
* btio: Remove support for hciX source addressesMarcel Holtmann2012-01-171-6/+1
|
* btio: Fix byte order conversion when getting L2CAP CIDSantiago Carot-Nemesio2011-12-081-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.
* btio: Fix byte order conversion when getting L2CAP PSMSantiago Carot-Nemesio2011-11-301-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.
* btio: Fix errno handling conventionAnderson Lizardo2011-11-171-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.
* btio: add BT_IO_OPT_PRIORITY optionLuiz Augusto von Dentz2011-11-042-4/+44
| | | | BT_IO_OPT_PRIORITY uses SO_PRIORITY to set the priority of the socket
* btio: Fix the return value of bt_io functionsVinicius Costa Gomes2011-07-091-6/+9
| | | | | Some bt_io methods were ignoring the value stored in errno when reporting the error to the caller.
* btio: Add workaround for not defined BT_FLUSHABLEMarcel Holtmann2011-05-271-0/+4
|
* btio: Fix unused variable warningJohan Hedberg2011-05-151-2/+4
|
* Fix btio.c compilation warningAnderson Briglia2011-05-051-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