| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
Split bt_iso_qos into dedicated unicast and broadcast
structures and add additional broadcast parameters.
|
|
|
|
| |
This adds support to create objects that map to ISO sockets.
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
| |
This makes btio watches default to G_PRIORITY_HIGH instead of
G_PRIORITY_DEFAULT so it takes priority over regular traffic or
timeout handling.
|
|
|
|
| |
This patch fixes the unchecked return value.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
| |
When using L2CAP_OPTIONS legacy modes need to be used since they are
not compatible with BT_MODE.
|
|
|
|
|
| |
In commit d20ee8273e61e16c78582344f274254973cdf00f was unintentionally
negated error number. Fix this mistake.
|
|
|
|
|
| |
When connect() fails it is not possible to retrieve destination address as
socket is not bound. So put destination address into error message.
|
|
|
|
|
| |
This adds BT_IO_MODE_EXT_FLOWCTL which directly maps to
BT_MODE_EXT_FLOWCTL.
|
|
|
|
|
| |
This adds BT_IO_PHY option which can be used to read the underline
packet types/PHY in use by the link layer.
|
| |
|
| |
|
|
|
|
| |
As described in coding style M10.
|
|
|
|
|
| |
When compiling with --enable-maintainer-mode these throw
errors because of -Werror=maybe-uninitialized
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
Now that pairing is done through mgmt this support is no-longer needed.
|
|
|
|
|
|
| |
Condition verification is not required for this watch since the
condition to watch for was previously informed when it was added
in the mainloop.
|
|
|
|
|
| |
This patch replaces the calls of g_set_error function by the local
defined macro "ERROR_FAILED".
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
| |
L2ERTM type uses L2CAP socket in SOCK_STREAM instead of SOCK_SEQPACKET
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
BT_IO_OPT_PRIORITY uses SO_PRIORITY to set the priority of the socket
|
|
|
|
|
| |
Some bt_io methods were ignoring the value stored in errno when
reporting the error to the caller.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
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
|