| a76ff587 |
mesh: Add interface output filter
According to the mesh profile (3.4.5.2), if TTL is set to 1 for an
outgoing message, that message shall be dropped. |
Isak Westin |
3 years ago |
1 file, +28, -0 |
| 75ba186a |
mesh: Fix potential memory leak
This memory leak will never happen, however since we added a new
return from function that malloc'd memory, the free should still be
done. |
Brian Gix |
3 years ago |
1 file, +3, -1 |
| 0da759f1 |
tools/ioctl-tester - Add ioctl-tester
This patch adds ioctl-tester which tests the IOCTL commands.
HCI Down
Device List
Device List - Invalid Param 1
Device Info
Reset Stat
Set Link Mode - ACCEPT
Set Link Mode - MASTER
Set Pkt Type - DM
Set Pkt Type - DH
Set Pkt Type - HV
Set Pkt Type - 2-DH
Set Pkt Type - 2-DH
Set Pkt Type - ALL
Set ACL MTU - 1
Set ACL MTU - 2
Set SCO MTU - 1
Set SCO MTU - 2
Block BDADDR - Success
Block BDADDR - Fail
Unblock BDADDR - Success
Unblock BDADDR - Fail
Connection List - No Conn
Connection List
Connection Info
Connection Info - No Connection
Connection Info - Wrong Type
Authentication Info - No Connection
Authentication Info |
Tedd Ho-Jeong An |
3 years ago |
3 files, +972, -1 |
| 7233b50f |
Profiles: Enable bt_vcp_set_debug
Set bt_vcp_set_debug to be used for VCP. |
Sathish Narasimman |
3 years ago |
1 file, +7, -0 |
| 89ac7b82 |
shared/vcp: Add bt_vcp_set_debug
Add support for bt_vcp_set_debug and replace the exisiting DBG. |
Sathish Narasimman |
3 years ago |
2 files, +156, -87 |
| 40a90f4e |
shared/gatt-db: Fix scan-build warnings
This fixes the following warnings:
src/shared/gatt-db.c:1339:2: warning: Undefined or garbage value
returned to caller [core.uninitialized.UndefReturn]
return data.num_of_res;
^~~~~~~~~~~~~~~~~~~~~~
src/shared/gatt-db.c:725:5: warning: Access to field 'handle' results
in a dereference of a null pointer
service->attributes[0]->handle == handle)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
Luiz Augusto von Dentz |
3 years ago |
1 file, +9, -5 |
| 31b32daf |
gatt: Fix scan-build warnings
This fixes the following warnings:
src/gatt-database.c:3541:14: warning: Value stored to 'iface' during
its initialization is never read [deadcode.DeadStores]
const char *iface = g_dbus_proxy_get_interface(proxy);
^~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/gatt-database.c:3542:14: warning: Value stored to 'path' during
its initialization is never read [deadcode.DeadStores]
const char *path = g_dbus_proxy_get_path(proxy);
^~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
Luiz Augusto von Dentz |
3 years ago |
1 file, +2, -2 |
| c2734c41 |
client/gatt: Fix notification enabled/disabled output
When notifications are enabled/disable the output was not print a new
line. |
Luiz Augusto von Dentz |
3 years ago |
1 file, +3, -2 |
| 50782b0e |
gatt-db: Check if permissions are set when adding CCC
CCC shall always have some permission set. |
Luiz Augusto von Dentz |
3 years ago |
1 file, +1, -1 |
| fbf17ac4 |
gatt: Fix not setting permissions for CCC
CCC shall always have both Read and Write permissions set in addition to
what application set.
Fixes: https://github.com/bluez/bluez/issues/399 |
Luiz Augusto von Dentz |
3 years ago |
1 file, +7, -1 |
| 115514d8 |
monitor/att: Add decoding support for Volume Control Serice
This adds decoding support for VCS attributes
> ACL Data RX: Handle 3585 flags 0x02 dlen 7
ATT: Read Request (0x0a) len 2
Handle: 0x0017 Type: Volume State (0x2b7d)
< ACL Data TX: Handle 3585 flags 0x00 dlen 8
ATT: Read Response (0x0b) len 3
Value: 000000
Handle: 0x0017 Type: Volume State (0x2b7d)
Volume Setting: 0
Not Muted: 0
Change Counter: 0
> HCI Event: Number of Completed Packets (0x13) plen 5
Num handles: 1
Handle: 3585 Address: 49:71:FC:C0:66:C6 (Resolvable)
Count: 1
> ACL Data RX: Handle 3585 flags 0x02 dlen 7
ATT: Read Request (0x0a) len 2
Handle: 0x001c Type: Volume Flags (0x2b7f)
< ACL Data TX: Handle 3585 flags 0x00 dlen 6
ATT: Read Response (0x0b) len 1
Value: 01
Handle: 0x001c Type: Volume Flags (0x2b7f)
Volume Falg: 1 |
Sathish Narasimman |
3 years ago |
1 file, +159, -0 |
| a96ede87 |
profiles: Add initial code for vcp plugin
This adds initial code for vcp plugin which handles Volume Control
Profile and Volume Control Service. |
Sathish Narasimman |
3 years ago |
3 files, +320, -0 |
| b8a113ec |
shared/vcp: Add initial code for handling VCP
This adds initial code for Volume Control Profile. |
Sathish Narasimman |
3 years ago |
3 files, +1159, -0 |
| f6ac0886 |
shared/gatt-client: Make use of gatt_db_attribute_get_ccc
This makes use of gatt_db_attribute_get_ccc to locate a CCC of a given
attribute. |
Luiz Augusto von Dentz |
3 years ago |
1 file, +10, -31 |
| b7023510 |
a2dp: Fix not detecting transport connection collision
Some headsets appears to attempt to connect back after receiving
AVDTP_Open which would cause unexpected transitions since setup->io
and stream->io would not be in sync:
> ACL Data RX: Handle 70 flags 0x02 dlen 6
Channel: 64 len 2 [PSM 25 mode Basic (0x00)] {chan 0}
AVDTP: Open (0x06) Response Accept (0x02) type 0x00 label 2 nosp 0
< ACL Data TX: Handle 70 flags 0x00 dlen 12
L2CAP: Connection Request (0x02) ident 6 len 4
PSM: 25 (0x0019)
Source CID: 67
> ACL Data RX: Handle 70 flags 0x02 dlen 12
L2CAP: Connection Request (0x02) ident 10 len 4
PSM: 25 (0x0019)
Source CID: 68
< ACL Data TX: Handle 70 flags 0x00 dlen 16
L2CAP: Connection Response (0x03) ident 10 len 8
Destination CID: 68
Source CID: 68
Result: Connection pending (0x0001)
Status: Authorization pending (0x0002)
< ACL Data TX: Handle 70 flags 0x00 dlen 16
L2CAP: Connection Response (0x03) ident 10 len 8
Destination CID: 68
Source CID: 68
Result: Connection successful (0x0000)
Status: No further information available (0x0000)
> ACL Data RX: Handle 70 flags 0x02 dlen 16
L2CAP: Connection Response (0x03) ident 6 len 8
Destination CID: 69
Source CID: 67
Result: Connection successful (0x0000)
Status: No further information available (0x0000)
Fixes: https://github.com/bluez/bluez/issues/327 |
Luiz Augusto von Dentz |
3 years ago |
1 file, +2, -1 |
| 68adb4d1 |
shared/tester: Remove include to io.h
Users of tester.h shall also include io.h, including io.h by default may
cause errors if has been previously included. |
Luiz Augusto von Dentz |
3 years ago |
3 files, +3, -1 |
| de0a3668 |
shared/bap: Remove include to io.h
Users of bap.h shall also include io.h, including io.h by default may
cause errors if has been previously included. |
Luiz Augusto von Dentz |
3 years ago |
3 files, +2, -2 |
| af1bfbb4 |
lib/uuid: Add VCS UUIDs
This adds Volume Control Service UUIDs which will be used by
Volume Control Profile. |
Sathish Narasimman |
3 years ago |
1 file, +7, -0 |
| b632ec3f |
rfcomm-tester: Add test to close socket while connecting
This adds Basic RFCOMM Socket Client - Close test which attempt to close
socket while connecting. |
Luiz Augusto von Dentz |
3 years ago |
1 file, +37, -4 |
| 877b88c5 |
shared/bap: Fix attempting to disable stream when it is idle
If the stream is already in idle state do not attempt to disable it
again. |
Luiz Augusto von Dentz |
3 years ago |
1 file, +8, -5 |
| 9d8fd3c2 |
monitor: Add mesh MGMT cmds/events to btmon parser
Sample Output:
@ MGMT Command: Read Mesh Features (0x0058) plen 0
@ MGMT Event: Command Complete (0x0001) plen 7
Read Mesh Features (0x0058) plen 4
Status: Success (0x00)
Index: 0
Max Handles: 3
Used Handles: 0
@ MGMT Command: Set Mesh Receiver (0x0057) plen 9
Enable: 1
Window: 4096
Period: 4096
Num AD Types: 3
AD Type: 42
AD Type: 43
AD Type: 41
@ MGMT Event: Command Complete (0x0001) plen 3
Set Mesh Receiver (0x0057) plen 0
Status: Success (0x00)
@ MGMT Command: Mesh Send (0x0059) plen 43
Address: 00:00:00:00:00:00 (OUI 00-00-00)
Addr Type: 2
Instant: 0x0000000000000000
Delay: 0
Count: 1
Data Length: 24
Data: 172b01002dda0c2491537ae2000000009de2120a725038b2
@ MGMT Event: Command Complete (0x0001) plen 4
Mesh Send (0x0059) plen 1
Status: Success (0x00)
Handle: 3
@ MGMT Event: Mesh Packet Complete (0x0032) plen 1
Handle: 3 |
Brian Gix |
3 years ago |
1 file, +111, -0 |
| 0940cba0 |
monitor: Add ADV Monitor events to btmon parser
Add missing ADV Monitor MGMT events |
Brian Gix |
3 years ago |
1 file, +35, -0 |
| 4c8a6ba5 |
shared/bap: Fix not unregistering disconnect callback
bt_bap_detach shall always unregister the disconnect callback otherwise
the session pointer may still be accessible. |
Luiz Augusto von Dentz |
3 years ago |
1 file, +24, -3 |
| 3d3b1cea |
rfcomm-tester: Use latest Bluetooth version
This makes rfcomm-tester use the latest Bluetooth supported by the
emulator which is useful the detect regression related to ACL data
transfer. |
Luiz Augusto von Dentz |
3 years ago |
1 file, +1, -1 |
| c96629be |
mgmt-tester: Adds turning on Mesh Experimental feature
Turns on experimental Mesh feature, and expects it in report when
querying which experimental features are supported and have been
enabled. |
Brian Gix |
3 years ago |
1 file, +38, -2 |
| da4b6548 |
tools: Add mesh-tester to test Kernel mesh support
Ever growing set of tests for Mesh kernel support |
Brian Gix |
3 years ago |
3 files, +1454, -1 |
| 4f452c77 |
lib: Add mgmt opcodes and events for Mesh |
Brian Gix |
3 years ago |
1 file, +47, -0 |
| 61f4f289 |
adapter: Fix typo in function name |
Bastien Nocera |
3 years ago |
1 file, +2, -2 |
| 6e49216a |
adapter-api: Add PowerState property documentation |
Bastien Nocera |
3 years ago |
1 file, +15, -0 |
| 48992da6 |
client: Print the PowerState property |
Bastien Nocera |
3 years ago |
1 file, +1, -0 |
| 58021a66 |
adapter: Implement PowerState property
This property should allow any program to show whether an adapter is in
the process of being turned on.
As turning on an adapter isn't instantaneous, it's important that the UI
reflects the transitional state of the adapter's power, and doesn't
assume the device is already turned on but not yet working, or still off
despite having requested for it to be turned on, in both cases making
the UI feel unresponsive.
This can also not be implemented in front-ends directly as, then,
the status of an adapter wouldn't be reflected correctly in the Settings
window if it's turned on in the system menu. Implementing it in the
front-ends would also preclude from having feedback about the state of
the adapter when bluetoothd is the one powering up the adapter after the
rfkill was unblocked.
See https://gitlab.gnome.org/GNOME/gnome-bluetooth/-/issues/121
and the original https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/5773 |
Bastien Nocera |
3 years ago |
1 file, +128, -11 |
| abf5ba6b |
adapter: Keep track of whether the adapter is rfkill'ed
Instead of only replying to D-Bus requests with an error saying the
adapter is blocked, keep track of the rfkill being enabled or disabled
so we know the rfkill state of the adapter at all times. |
Bastien Nocera |
3 years ago |
4 files, +91, -25 |
| 49b8c590 |
media: Fix scan-build warnings
This fixes the following warnings:
profiles/audio/media.c:1465:6: warning: 8th function call argument
is an uninitialized value
if (media_endpoint_create(adapter, sender, path, uuid, delay_reporting,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
profiles/audio/media.c:3012:3: warning: Use of memory after it is freed
release_endpoint(adapter->endpoints->data);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
profiles/audio/media.c:3015:3: warning: Use of memory after it is freed
media_player_destroy(adapter->players->data);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
Luiz Augusto von Dentz |
3 years ago |
1 file, +16, -5 |
| a84aa0e6 |
media: Fix registering PAC endpoints if ISO socket are not supported
If adapter don't support ISO sockets the PAC UUIDs shall not be allowed
to be registered as they depend on ISO sockets to work properly. |
Luiz Augusto von Dentz |
3 years ago |
1 file, +11, -4 |
| f8c3a38e |
shared/shell: Fix scan-build error
This fixes the following error:
src/shared/shell.c:1135:19: warning: Null pointer passed to 1st
parameter expecting 'nonnull'
data.timeout = atoi(optarg);
^~~~~~~~~~~~ |
Luiz Augusto von Dentz |
3 years ago |
1 file, +6, -1 |
| d8febc76 |
client/player: Fix checkpatch warning
This fixes the following checkpatch warning:
WARNING:LINE_SPACING: Missing a blank line after declarations
216: FILE: client/player.c:625:
+ GDBusProxy *proxy = l->data;
+ print_player(proxy, NULL); |
Luiz Augusto von Dentz |
3 years ago |
1 file, +4, -7 |
| d04b6400 |
profiles: Fix function definition style
This was found by checkpatch in previous commit:
WARNING:SPACING: Unnecessary space before function pointer arguments
124: FILE: src/shared/bap.h:123:
+ int (*select) (struct bt_bap_pac *lpac, struct bt_bap_pac *rpac,
Do the same for (*config) and (*clear) for consistence. |
Frédéric Danis |
3 years ago |
1 file, +2, -2 |
| fdff0e3c |
doc: Add remote endpoint path to SelectProperties |
Frédéric Danis |
3 years ago |
1 file, +4, -2 |
| eb62d17e |
profiles: Add remote endpoint path to SelectProperties
This adds the remote endpoint path to the dictionary sent in
SelectProperties.
It allows audio application to know for which remote endpoint the call is
done and so for which it should act as an initiator. |
Frédéric Danis |
3 years ago |
4 files, +30, -6 |
| d297a587 |
client: Add -e/--endpoint option to auto register endpoints
This adds -e/--endpoint option that can be used to auto register
supported endpoints. |
Luiz Augusto von Dentz |
3 years ago |
2 files, +98, -38 |
| 75f73f6d |
shell: Set empty argument if optarg is NULL
This sets enmpty string ("") when argument don't set any optarg so the
application can tell when an option was set or not. |
Luiz Augusto von Dentz |
3 years ago |
1 file, +1, -1 |
| 150bbff4 |
tools/btmgmt: add missing return statement
Leave function on error instead of printing (possibly) invalid flags. |
Christian Eggers |
3 years ago |
1 file, +1, -1 |
| 147cc4cf |
client/advertising: Fix typos: *_exits --> *_exists |
Christian Eggers |
3 years ago |
1 file, +18, -16 |
| 9b93d958 |
client: Add missing return statement in error path
Client will SEGFAULT if default_ctrl==NULL |
Christian Eggers |
3 years ago |
1 file, +1, -1 |
| b843a5c5 |
profiles: Update transport Links property on state change to QoS
Currently, the Links property is only sent after the first call to the
Acquire method, this cmay result in a rejection if a linked transport tries
to call the Acquire method before receiving the Links update. |
Frédéric Danis |
3 years ago |
1 file, +1, -0 |
| 34e8c20d |
profiles: Allow linked transport to release the fd
Multiple transports can be linked when using LE Audio BAP.
In this case only one transport is used to Acquire the file descriptor
which will be shared by all linked transports.
In the same way, any transport can Release the file descriptor. |
Frédéric Danis |
3 years ago |
1 file, +43, -0 |
| 9e298f84 |
client/player: Use QoS interval on transport.send
This makes use of QoS interval when sending a file. |
Luiz Augusto von Dentz |
3 years ago |
2 files, +67, -3 |
| dc61ec44 |
client/player: Add support for PACS endpoints
This adds support for PAC_SINK and PAC_SOURCE endpoints as well as LC3
presets. |
Luiz Augusto von Dentz |
3 years ago |
2 files, +532, -89 |
| f081ac88 |
test/simple-endpoint: Add support for LC3 endpoints
This adds support for LC3 sink/source endpoints. |
Luiz Augusto von Dentz |
3 years ago |
1 file, +17, -0 |
| 3579cf8b |
media-api: Add SelectProperties
This adds SelectProperties which is a more extensible version of
SelectCapability since it takes a dictionary rather than a byte array
and define new Properties for LE Audio. |
Luiz Augusto von Dentz |
3 years ago |
1 file, +87, -1 |