| be79cd19 |
shared/bap: Fix not updating location
Fix not updating map.location when selecting. |
Luiz Augusto von Dentz |
1 year ago |
1 file, +2, -4 |
| fe71fa3d |
shared/util: add uuid for Poll Errqueue experimental feature
Add UUID for Poll Errqueue experimental feature to bt_uuidstr_to_str(). |
Pauli Virtanen |
1 year ago |
1 file, +2, -0 |
| 141f6641 |
iso-tester: add test for BT_POLL_ERRQUEUE
Also test BT_POLL_ERRQUEUE is experimental feature.
Add test:
ISO Send - TX No Poll Timestamping |
Pauli Virtanen |
1 year ago |
2 files, +125, -2 |
| c777c55a |
mgmt-tester: update for Poll Errqueue experimental fature
Update Read Exp Feature - Success (Index None) for new experimental
feature Poll Errqueue. |
Pauli Virtanen |
1 year ago |
1 file, +5, -1 |
| e1c178f9 |
adapter: add support for setting POLL_ERRQUEUE experimental feature
Add support for setting an experimental feature UUID which enables the
use of the BT_POLL_ERRQUEUE socket option.
Change adapter initialization to read and set also INDEX_NONE features.
This may set them multiple times, but this is harmless and it is simpler
to use the same framework. |
Pauli Virtanen |
1 year ago |
4 files, +72, -3 |
| 138e9702 |
lib: add BT_POLL_ERRQUEUE socket option
Add new (experimental) socket option. |
Pauli Virtanen |
1 year ago |
1 file, +2, -0 |
| b163e2bd |
hog-lib: Destroy uHID device if there is traffic while disconnected
This attempts to destroy input device if there is an attempt to
communicate with it while disconnected. |
Luiz Augusto von Dentz |
1 year ago |
1 file, +29, -18 |
| 528f5a8c |
input/device: Make use of bt_uhid_replay
This makes use of bt_uhid_replay to replay the GET/SET_REPORT messages
recorded as it offer the same functionality as hidp_replay. |
Luiz Augusto von Dentz |
1 year ago |
2 files, +3, -167 |
| a78c839b |
hog-lib: Make use of bt_uhid_replay
This makes use of bt_uhid_replay to replay the GET/SET_REPORT messages
recorded during the first time the device is created. |
Luiz Augusto von Dentz |
1 year ago |
1 file, +10, -3 |
| 991ec8e2 |
shared/uhid: Add support for bt_uhid_replay
This adds support for bt_uhid_replay which enablind replaying
GET/SET_REPORT messages stored during the first time a device is
created. |
Luiz Augusto von Dentz |
1 year ago |
2 files, +124, -0 |
| 7604a577 |
shared/gatt-db: Fix gatt_db_service_insert_characteristic
gatt_db_service_insert_characteristic shall not attempt to insert the
characteristic attribute handle on the next available index as there
could be descriptors in between so this changes the way
get_attribute_index calculates the index based on the given handle to
properly skip indexes used by descriptors. |
Luiz Augusto von Dentz |
1 year ago |
7 files, +74, -46 |
| c6dea886 |
input/device: Add replay support
This adds replay support when uhid is in use and the input node is keep
while disconnected:
Fixes: https://github.com/bluez/bluez/issues/777 |
Luiz Augusto von Dentz |
1 year ago |
1 file, +173, -1 |
| 94c4f445 |
input.conf: Change IdleTimeout unit to be in seconds
This changes IdleTimeout unit to be in seconds instead of in minutes
which offer better granularity. |
Luiz Augusto von Dentz |
1 year ago |
2 files, +4, -3 |
| ea96d7d1 |
input/device: Fix not handling IdleTimeout when uhid is in use
When uhid is in use IdleTimeout was not taking any effect, this also
attempt to force the destroy the input device node to make it useful
for users that don't want to keep the input node forever. |
Luiz Augusto von Dentz |
1 year ago |
2 files, +61, -27 |
| 98bed16d |
device: Fix airpods pairing
Apple Airpods are discoverable and pairable in BREDR mode, but also
advertise in unconnectable mode in LE with the same Public address, at the
same time. As the pairing process uses the latest seen address, sometimes
it uses the LE Public address to pair, which fails.
This commit introduces the connectable state when selecting the bearer to
use for a connection. The last_seen value is used only for connectable
devices. |
Frédéric Danis |
1 year ago |
1 file, +2, -2 |
| 03117404 |
device: Fix attemting to set WakeAllowed without it being supported
WakeAllowed shall only be set if WakeSupport is enabled. |
Luiz Augusto von Dentz |
1 year ago |
1 file, +1, -1 |
| 5069c5d6 |
monitor: Fix not decoding MGMT_OP_SET_BLOCKED_KEYS
@ MGMT Command: Set Blocked Keys (0x0046) plen 36
Keys: 2
type: Long Term Key (0x01)
Link key[16]: bf01fb9d4ef3bc36d874f5394138684c
type: Identity Resolving Key (0x02)
Link key[16]: a599bae4e17ca618228e0756b4e85f01
@ MGMT Event: Command Complete (0x0001) plen 3
Load Blocked Keys (0x0046) plen 0
Status: Success (0x00) |
Luiz Augusto von Dentz |
1 year ago |
1 file, +47, -1 |
| bcfd9acd |
monitor: Fix not decoding MGMT_OP_SET_WIDEBAND_SPEECH |
Luiz Augusto von Dentz |
1 year ago |
1 file, +10, -1 |
| ca3d0d4f |
adapter: Enable Wideband Speech
This enables sending MGMT_OP_SET_WIDEBAND_SPEECH so the users of SCO
sockets can take advantage of BT_PKT_STATUS to implement PLC logic. |
Luiz Augusto von Dentz |
1 year ago |
1 file, +3, -0 |
| 4fe4fda7 |
l2cap-tester: add tests for LE Client read/write/tx-timestamping
Add tests:
L2CAP LE Client - Read Success
L2CAP LE Client - Write Success
L2CAP LE Client - TX Timestamping |
Pauli Virtanen |
1 year ago |
1 file, +40, -1 |
| 9b21ce6f |
bthost: handle client L2CAP conn in LE credit based mode
Allow bthost hooks to receive data from L2CAP LE credit based
connections. Handle LE credit header when receiving, and reassemble
received SDU.
Handle L2CAP LE credit header also in bthost_send_cid. |
Pauli Virtanen |
1 year ago |
1 file, +180, -25 |
| 9faf6f90 |
sco-tester: add TX timestamping test
Add test:
SCO CVSD Send - TX Timestamping |
Pauli Virtanen |
1 year ago |
1 file, +94, -4 |
| 7158101e |
btdev: set nonzero SCO mtu & max pkt
Set nonzero max pkt count, so that kernel can transmit data.
The request & accept/reject flow is not emulated yet. |
Pauli Virtanen |
1 year ago |
1 file, +9, -2 |
| 349d7975 |
l2cap-tester: Add test for TX timestamping
Add test
L2CAP BR/EDR Client - TX Timestamping |
Pauli Virtanen |
1 year ago |
1 file, +102, -5 |
| 5e85956e |
iso-tester: Add tests for TX timestamping
Add TX timestamping test utilities in new tools/tester.h, so that they
can be shared between testers.
Add tests:
ISO Send - TX Timestamping
ISO Send - TX Sched Timestamping
ISO Send - TX Msg Timestamping |
Pauli Virtanen |
1 year ago |
2 files, +335, -10 |
| b3bfe211 |
lib: add BT_SCM_ERROR
Add new CMSG type used in new kernel TX timestamping support. |
Pauli Virtanen |
1 year ago |
1 file, +1, -0 |
| 036583f9 |
device: Add btd_device_bearer_is_connected
This adds btd_device_bearer_is_connected and use it when testing if
device needs to be disconnected.
Fixes: https://github.com/bluez/bluez/issues/785 |
Dimitris |
1 year ago |
3 files, +8, -2 |
| b8b4083c |
monitor: Decode PA data
This attempts to decode the PA data content:
Before:
> HCI Event: LE Meta Event (0x3e) plen 46
LE Periodic Advertising Report (0x0f)
Sync handle: 1
TX power: 127 dbm (0x7f)
RSSI: not available (0x7f)
CTE Type: No Constant Tone Extension (0xff)
Data status: Complete
Data length: 0x26
25 16 51 18 28 00 00 01 01 06 00 00 00 00 11 02 %.Q.(...........
01 03 02 02 01 05 03 01 00 00 00 03 04 28 00 04 .............(..
03 02 02 00 01 00
After:
> HCI Event: LE Meta Event (0x3e) plen 46
LE Periodic Advertising Report (0x0f)
Sync handle: 1
TX power: 127 dbm (0x7f)
RSSI: not available (0x7f)
CTE Type: No Constant Tone Extension (0xff)
Data status: Complete
Data length: 0x26
Service Data: Basic Audio Announcement (0x1851)
Presetation Delay: 40
Number of Subgroups: 1
Subgroup #0:
Number of BIS(s): 1
Codec: LC3 (0x06)
Codec Specific Configuration: #0: len 0x02 type 0x01
Codec Specific Configuration: Sampling Frequency: 16 Khz (0x03)
Codec Specific Configuration: #1: len 0x02 type 0x02
Codec Specific Configuration: Frame Duration: 10 ms (0x01)
Codec Specific Configuration: #2: len 0x05 type 0x03
Codec Specific Configuration: Location: 0x00000001
Codec Specific Configuration: Location: Front Left (0x00000001)
Codec Specific Configuration: #3: len 0x03 type 0x04
Codec Specific Configuration: Frame Length: 40 (0x0028)
Metadata: #0: len 0x03 type 0x02
Metadata: Context: 0x0002
Metadata: Context Conversational (0x0002)
BIS #0:
Index: 1 |
Luiz Augusto von Dentz |
1 year ago |
1 file, +1, -1 |
| 33af0ce9 |
iso-tester: Fix Codec Configuration length
The length is actually 16 (0x10) bytes not 17 (0x17). |
Luiz Augusto von Dentz |
1 year ago |
1 file, +3, -3 |
| f74f6a5c |
btdev: Fix framenting PA reports
PA reports can carry up to 247 bytes of data instead of just 31 bytes:
> HCI Event: LE Meta Event (0x3e) plen 46
LE Periodic Advertising Report (0x0f)
Sync handle: 1
TX power: 127 dbm (0x7f)
RSSI: not available (0x7f)
CTE Type: No Constant Tone Extension (0xff)
Data status: Complete
Data length: 0x26
25 16 51 18 28 00 00 01 01 06 00 00 00 00 11 02 %.Q.(...........
01 03 02 02 01 05 03 01 00 00 00 03 04 28 00 04 .............(..
03 02 02 00 01 00 |
Luiz Augusto von Dentz |
1 year ago |
1 file, +1, -1 |
| 9684bba4 |
iso-tester: Add test for Broadcast Receiver Get BASE
This adds a new Broadcast Receiver test, to validate that a Broadcast
Sink is able to sync to the PA transmitted by a Source (when no BIG
is active) and is able to successfully detect the BASE:
ISO Broadcaster Receiver Defer Get BASE - Success |
Iulia Tanasescu |
1 year ago |
1 file, +55, -3 |
| 8c8ac6f1 |
bthost: Add bthost_set_base
This adds bthost_set_base which takes create of creating the PA data
using bt_ad to add BAA service data and then generating the PA data
which is then passed to bthost_set_pa_data. |
Luiz Augusto von Dentz |
1 year ago |
2 files, +20, -0 |
| 32a3591b |
bthost: Add support for Set PA data
This adds bthost_set_pa_data. |
Iulia Tanasescu |
1 year ago |
3 files, +52, -2 |
| 0d38224b |
bap: Fix endpoint unregister for BAP broadcast source
Fix endpoint not being removed when endpoint unregister
is called for BAP broadcast source |
Silviu Florian Barbulescu |
1 year ago |
1 file, +1, -4 |
| 4520eca3 |
mgmt-tester: Adjust Coded PHY scan interval and window
Coded PHY interval and window recommneded by the core specification are
3x of the 1M. |
Luiz Augusto von Dentz |
1 year ago |
1 file, +6, -6 |
| 3403f65e |
iso-tester: Separate iso_defer_accept into dedicated functions
This separates the iso_defer_accept function into dedicated ones for
unicast/broadcast, since the flow is different for each scenario:
For unicast, POLLOUT is checked on socket before calling read and
adding a G_IO_OUT watch. Checking for POLLOUT is not necessary for
broadcast, since currently this event is never generated on the
child socket. Instead, G_IO_IN is generated after BIG sync is
established and a BIS socket is ready to be accepted. |
Iulia Tanasescu |
1 year ago |
1 file, +35, -10 |
| f4c40dc4 |
btio: Remove POLLOUT check from bt_io_bcast_accept
For the Broadcast Sink defer setup scenario, there is no need to check
for the POLLOUT event on the PA sync socket before calling "read" to
issue the Create BIG sync command. This check has been inherited from
unicast, but it is unnecessary for broadcast, since currently after
accept and read, the event to signal BIG sync established is G_IO_IN. |
Iulia Tanasescu |
1 year ago |
1 file, +3, -15 |
| 0ff7392a |
bap: Fix MediaEndpoint prop codec for bcast src endpoint
Fix MediaEndpoint prop codec returns 0 for bcast src endpoint |
Silviu Florian Barbulescu |
1 year ago |
1 file, +7, -1 |
| 07d42722 |
obexd: Fix "Size" use g_dbus_emit_property_changed_full() to emit
This is the comment for g_dbus_emit_property_changed()
/*
* Note that when multiple properties for a given object path are changed
* in the same mainloop iteration, they will be grouped with the last
* property changed. If this behaviour is undesired, use
* g_dbus_emit_property_changed_full() with the
* G_DBUS_PROPERTY_CHANGED_FLAG_FLUSH flag, causing the signal to ignore
* any grouping.
*/
When receiving a "small file" through Bluetooth, When using Blueman to
transfer files to the configured directory, "small files" in the cache
will not be moved to the configured directory. Debugging found that the
three properties "Size" "Transferred" and "complete" were reported at once
through the g_dbus_emit_property_changed function, but the "Size" property
did not have a value, it appears that there are the following errors
"UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb5 in position 0:
invalid start byte" in Blueman log.
So let the "Size" property use g_dbus_emit_property_changed_full to
single emit, if use g_dbus_emit_property_changed(grouped)to emit,
there is a possibility that "Size" property value has been freed
The following is the issue log
dbus-monitor log:
signal time=1710900297.140618 sender=:1.50 -> destination=(null)
serial=59 path=/org/bluez/obex/server/session4/transfer3;
interface=org.freedesktop.DBus.Properties; member=PropertiesChanged
string "org.bluez.obex.Transfer1"
array [
dict entry(
string "Status"
variant string "complete"
)
dict entry(
string "Transferred"
variant uint64 0
)
]
array [
string "Size"
]
method call time=1710900297.141361 sender=:1.39 -> destination=:1.50
serial=417 path=/org/bluez/obex/server/session4/transfer3;
interface=org.freedesktop.DBus.Properties; member=Get
string "org.bluez.obex.Transfer1"
string "Size"
error time=1710900297.141596 sender=:1.50 -> destination=:1.39
error_name=org.freedesktop.DBus.Error.InvalidArgs reply_serial=417
string "No such property 'Size'"
blueman log
blueman.desktop[2368]: blueman-applet 09.42.04 DEBUG
Transfer:25 do_g_properties_changed: /org/bluez/obex/server/session2/
transfer1 Transferred 0
blueman.desktop[2368]: blueman-applet 09.42.04 DEBUG
Base:74 do_g_properties_changed: /org/bluez/obex/server/session2
{'Source': 'xxx', 'Destination': 'xxx', 'Root': 'xxx/.cache/obexd'}
blueman.desktop[2368]: blueman-applet 09.42.04 ERROR
TransferService:97 _authorize_push: Failed to get StatusIcon
blueman.desktop[2368]: blueman-applet 09.42.15 INFO
Notification:239 do_g_signal: accept
blueman.desktop[2368]: blueman-applet 09.42.15 INFO
TransferService:57 on_action : Action accept
blueman.desktop[2368]: blueman-applet 09.42.15 INFO
Notification:239 do_g_signal: 3
blueman.desktop[2368]: blueman-applet 09.42.15 DEBUG
Notification:247 do_g_signal: The notification was closed by a call
to CloseNotification.
blueman.desktop[2368]:UnicodeDecodeError: 'utf-8' codec can't decode byte
0xb5 in position 0: invalid start byte
blueman.desktop[2368]: blueman-applet 09.42.15 INFO
Manager:73 _on_object_removed: /org/bluez/obex/server/session2/transfer1
blueman.desktop[2368]: blueman-applet 09.42.15 INFO
Manager:80 _on_object_removed: /org/bluez/obex/server/session2
After fix, The following log
dbus-monitor log:
signal time=1711000976.672383 sender=:1.724 -> destination=(null)
serial=18 path=/org/bluez/obex/server/session1/transfer0;
interface=org.freedesktop.DBus.Properties; member=PropertiesChanged
string "org.bluez.obex.Transfer1"
array [
dict entry(
string "Size"
variant uint64 50
)
]
array [
]
signal time=1711000976.672483 sender=:1.724 -> destination=(null)
serial=19 path=/org/bluez/obex/server/session1/transfer0;
interface=org.freedesktop.DBus.Properties; member=PropertiesChanged
string "org.bluez.obex.Transfer1"
array [
dict entry(
string "Status"
variant string "complete"
)
dict entry(
string "Transferred"
variant uint64 0
)
]
array [
]
blueman log
blueman.desktop[2368]: blueman-applet 14.13.29 DEBUG
Transfer:25 do_g_properties_changed: /org/bluez/obex/server/session2/
transfer1 Transferred 0
blueman.desktop[2368]: blueman-applet 14.13.29 DEBUG
Base:74 do_g_properties_changed: /org/bluez/obex/server/session2
{'Source': 'xxx', 'Destination': 'xxx', 'Root': 'xxx'}
blueman.desktop[2368]: blueman-applet 14.13.29 ERROR
TransferService:97 _authorize_push: Failed to get StatusIcon
blueman.desktop[2368]: blueman-applet 14.13.36 INFO
Notification:239 do_g_signal: accept
blueman.desktop[2368]: blueman-applet 14.13.36 INFO
TransferService:57 on_action : Action accept
blueman.desktop[2368]: blueman-applet 14.13.36 INFO
Notification:239 do_g_signal: 3
blueman.desktop[2368]: blueman-applet 14.13.36 DEBUG
Notification:247 do_g_signal: The notification was closed by a call to
CloseNotification.
blueman.desktop[2368]: blueman-applet 14.13.36 DEBUG
Transfer:25 do_g_properties_changed: /org/bluez/obex/server/session2/
transfer1 Size 50
blueman.desktop[2368]: blueman-applet 14.13.36 DEBUG
Transfer:25 do_g_properties_changed: /org/bluez/obex/server/session2/
transfer1 Status complete
blueman.desktop[2368]: blueman-applet 14.13.36 INFO
Manager:86 _on_transfer_completed: /org/bluez/obex/server/session2/
transfer1 True
blueman.desktop[2368]: blueman-applet 14.13.36 INFO
TransferService:275 _on_transfer_completed: Destination file exists,
renaming to: xxx.txt
blueman.desktop[2368]: blueman-applet 14.13.36 ERROR
TransferService:256 _notify_kwargs: No statusicon found
blueman.desktop[2368]: blueman-applet 14.13.36 INFO
TransferService:241 _add_open : adding action
blueman.desktop[2368]: blueman-applet 14.13.36 DEBUG
Transfer:25 do_g_properties_changed: /org/bluez/obex/server/session2/
transfer1 Transferred 0
blueman.desktop[2368]: blueman-applet 14.13.36 INFO
Manager:73 _on_object_removed: /org/bluez/obex/server/session2/transfer1
blueman.desktop[2368]: blueman-applet 14.13.36 INFO
Manager:80 _on_object_removed: /org/bluez/obex/server/session2
Signed-off-by: Youwan Wang <youwan@nfschina.com> |
Youwan Wang |
1 year ago |
1 file, +7, -2 |
| cd22ff6a |
monitor/att: Add support for decoding GATT Long Reads
This adds support for decoding GATT Long Reads:
< ACL Data TX: Handle 3585 flags 0x00 dlen 7
ATT: Read Request (0x0a) len 2
Handle: 0x0028 Type: Report Map (0x2a4b)
> ACL Data RX: Handle 3585 flags 0x02 dlen 27
ATT: Read Response (0x0b) len 22
Value[22]: 05010902a10185020901a10095107501150025010509
Long Value[22]: 05010902a10185020901a10095107501150025010509
< ACL Data TX: Handle 3585 flags 0x00 dlen 9
ATT: Read Blob Request (0x0c) len 4
Handle: 0x0028 Type: Report Map (0x2a4b)
Offset: 0x0016
> ACL Data RX: Handle 3585 flags 0x02 dlen 27
ATT: Read Blob Response (0x0d) len 22
Value[22]: 19012910810205011601f826ff07750c950209300931
Long Value[44]: 05010902a10185020901a1009510750115002501050919
012910810205011601f826ff07750c950209300931
< ACL Data TX: Handle 3585 flags 0x00 dlen 9
ATT: Read Blob Request (0x0c) len 4
Handle: 0x0028 Type: Report Map (0x2a4b)
Offset: 0x002c
> ACL Data RX: Handle 3585 flags 0x02 dlen 27
ATT: Read Blob Response (0x0d) len 22
Value[22]: 81061581257f75089501093881069501050c0a380281
Long Value[66]: 05010902a10185020901a1009510750115002501050919
012910810205011601f826ff07750c9502093009318106
1581257f75089501
< ACL Data TX: Handle 3585 flags 0x00 dlen 9
ATT: Read Blob Request (0x0c) len 4
Handle: 0x0028 Type: Report Map (0x2a4b)
Offset: 0x0042
> ACL Data RX: Handle 3585 flags 0x02 dlen 27
ATT: Read Blob Response (0x0d) len 22
Value[22]: 06c0c00643ff0a0202a101851175089513150026ff00
Long Value[88]: 05010902a10185020901a1009510750115002501050919
012910810205011601f826ff07750c9502093009318106
1581257f75089501093881069501050c0a38028106c0c0
0643ff0a0202a101851175089513150026ff00
< ACL Data TX: Handle 3585 flags 0x00 dlen 9
ATT: Read Blob Request (0x0c) len 4
Handle: 0x0028 Type: Report Map (0x2a4b)
Offset: 0x0058
> ACL Data RX: Handle 3585 flags 0x02 dlen 14
ATT: Read Blob Response (0x0d) len 9
Value[9]: 0902810009029100c0
Handle: 0x0028 Type: Report Map (0x2a4b)
Value[97]: 05010902a10185020901a1009510750115002501050919
012910810205011601f826ff07750c9502093009318106
1581257f75089501093881069501050c0a38028106c0c0
0643ff0a0202a101851175089513150026ff0009028100
09029100c0 |
Luiz Augusto von Dentz |
1 year ago |
2 files, +108, -19 |
| e6d849f3 |
shared/shell: Add commands from scripts to history
This enables saving the commands run from a script to also be visible in
the history. |
Luiz Augusto von Dentz |
1 year ago |
1 file, +9, -10 |
| 868d8fc5 |
shared/shell: Add script command
This adds script command to main menu which can be used to execute
scripts at any point rather than just at the init. |
Luiz Augusto von Dentz |
1 year ago |
1 file, +110, -76 |
| 41d6c4e1 |
bap: cancel ongoing SelectProperties() before freeing the ep
select_cb() callback is called when the sound server replies. However,
at that point the ep or session for which it was made may already be
gone if e.g. device disconnects or adapter is powered off.
Fix by implementing cancelling select() callbacks, and doing it before
freeing ep.
Fixes crash:
==889897==ERROR: AddressSanitizer: heap-use-after-free
READ of size 8 at 0x60400006b098 thread T0
#0 0x55aeba in setup_new profiles/audio/bap.c:840
#1 0x562158 in select_cb profiles/audio/bap.c:1361
#2 0x47ad66 in pac_select_cb profiles/audio/media.c:920
#3 0x47661b in endpoint_reply profiles/audio/media.c:375
...
freed by thread T0 here:
#0 0x7fd20bcd7fb8 in __interceptor_free.part.0
#1 0x55f913 in ep_free profiles/audio/bap.c:1156
#2 0x7d696e in remove_interface gdbus/object.c:660
#3 0x7de622 in g_dbus_unregister_interface gdbus/object.c:1394
#4 0x554536 in ep_unregister profiles/audio/bap.c:193
#5 0x574455 in ep_remove profiles/audio/bap.c:2963
#6 0x7f5341 in queue_remove_if src/shared/queue.c:279
#7 0x7f5aba in queue_remove_all src/shared/queue.c:321
#8 0x57452b in bap_disconnect profiles/audio/bap.c:2972
#9 0x6cd107 in btd_service_disconnect src/service.c:305
...
previously allocated by thread T0 here:
#0 0x7fd20bcd92ef in malloc
#1 0x7f6e98 in util_malloc src/shared/util.c:46
#2 0x560d28 in ep_register profiles/audio/bap.c:1282
#3 0x562bdf in pac_register profiles/audio/bap.c:1386
#4 0x8cc834 in bap_foreach_pac src/shared/bap.c:4950
#5 0x8cccfc in bt_bap_foreach_pac src/shared/bap.c:4964
#6 0x56330b in bap_ready profiles/audio/bap.c:1457
... |
Pauli Virtanen |
1 year ago |
2 files, +56, -0 |
| 6849c64e |
shared/bap: add bt_bap_cancel_select to cancel ongoing pac select
Add function and PAC ops for canceling a previously initiated
SelectProperties() call. |
Pauli Virtanen |
1 year ago |
2 files, +17, -0 |
| 150bd6e8 |
Advertising: Emit features property update
Advertising manager has some properties that relies on kernel
information. Once we received the information from kernel, we should
emit property update. |
Yun-Hao Chung |
1 year ago |
1 file, +13, -0 |
| 74545026 |
bap: Fix setting adapter address type for unicast
This fixes the settin of the adapter address type for unciast
scenario. Currently the address type is searched in data->adapter
however, this pointer is null and leads to the crash listed at the
end of this message. Instead, the address type should be taken from
the adapter variable, which is initialised using device_get_adapter
at the beggining of the function.
==321444==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000016
(pc 0x5601d284e03e bp 0x000000000016 sp 0x7ffdb164b740 T0)
==321444==The signal is caused by a READ memory access.
==321444==Hint: address points to the zero page.
0 0x5601d284e03e in btd_adapter_get_address_type src/adapter.c:545
1 0x5601d27a3f78 in setup_connect_io profiles/audio/bap.c:1860
2 0x5601d27a3f78 in setup_create_ucast_io profiles/audio/bap.c:2053
3 0x5601d27a3f78 in setup_create_io profiles/audio/bap.c:2106
4 0x5601d27a57cd in bap_state profiles/audio/bap.c:2143
5 0x5601d29d30df in bap_stream_state_changed src/shared/bap.c:1250
6 0x5601d29d71e2 in bap_ep_set_status src/shared/bap.c:4395
7 0x5601d293d592 in queue_foreach src/shared/queue.c:207
8 0x5601d2975c84 in notify_cb src/shared/gatt-client.c:2257
9 0x5601d2964217 in handle_notify src/shared/att.c:1012
10 0x5601d2964217 in can_read_data src/shared/att.c:1096 |
Vlad Pruteanu |
1 year ago |
1 file, +1, -1 |
| 87cabb26 |
bap: Fix not setting adapter address type
This fixes not setting adapter address type when listening/connecting
ISO sockets which prevents them working when adapter comes unconfigured
which then gets assigned a random address. |
Luiz Augusto von Dentz |
1 year ago |
1 file, +8, -0 |
| 9250929e |
shared/btsnoop: Add proper identifiers for ISO packets
This adds ISO packets identifiers so they are properly stored on files. |
Luiz Augusto von Dentz |
1 year ago |
1 file, +16, -0 |
| 97fa2525 |
obexd: Remove redundant judgments and fix code style |
Youwan Wang |
1 year ago |
1 file, +1, -4 |
| a2b2d2e4 |
player: Adjust SDU size based on the number of locations
Adjust the SDU size based on the number of locations/channels
that is being requested. |
Silviu Florian Barbulescu |
1 year ago |
1 file, +8, -0 |