Commits

Commit Message Author Age Changes
f8670f9a shared/att: Fix not requeueing in the same channel If request needs to be resend due to change in the security use the chan->queue otherwise it may end up using a different channel. Luiz Augusto von Dentz 3 years ago 1 file, +2, -2
758161c4 iso-tester: Add test when peer rejects CIS This adds the following test for testing when remote stack rejects the CIS: ISO Connect - Reject Passed Luiz Augusto von Dentz 3 years ago 1 file, +31, -6
33b84917 bthost: Add callback to accept ISO connections This enables setting an accept callback which can return reject reason if the connection shall not be accepted. Luiz Augusto von Dentz 3 years ago 3 files, +22, -6
9a550d43 client: Allow gatt.select-attribute to work with local attributes This allows gatt.select-attribute local to select from the registered attributes: [bluetooth]# gatt.select-attribute local /org/bluez/app/service0/chrc0 [/org/bluez/app/service0/chrc0]# gatt.write 0x01 [CHG] Attribute /org/bluez/app/service0/chrc0 (%UUID) written [/org/bluez/app/service0/chrc0]# gatt.read 01 . [/org/bluez/app/service0/chrc0]# gatt.select-attribute local /org/bluez/app/service0/chrc1 [/org/bluez/app/service0/chrc1]# gatt.write 0x01 [CHG] Attribute /org/bluez/app/service0/chrc1 (%UUID) written [/org/bluez/app/service0/chrc1]# gatt.read 01 . [/org/bluez/app/service0/chrc1]# Luiz Augusto von Dentz 3 years ago 3 files, +285, -65
35947e26 monitor/att: Fix crash when accessing packet_conn This fixes the following crash: :monitor/att.c:2697:11: runtime error: member access within null pointer of type 'struct att_conn_data' Luiz Augusto von Dentz 3 years ago 1 file, +8, -1
d84ce72a bluetooth.ver: Export sanitizer symbols Fix llvm sanitizer support by not hiding sanitizer related symbols. Allen Webb 3 years ago 1 file, +8, -0
a4bde19d client: Move common print_* functions to its own file This move common print_* functions to its own file so they can be properly reused instead of duplicating the code. Luiz Augusto von Dentz 3 years ago 5 files, +213, -248
f28433d4 bap: Fix not waiting Endpoint.SelectProperties If there are multiple Endpoint.SelectProperties wait them to complete before attempting to proceed to configure a stream otherwise streams may not be linked properly and may end up creating multiple CIS instead. Luiz Augusto von Dentz 3 years ago 2 files, +54, -31
b907befc shared/bap: Merge PAC records of the same type/codec This attempts to merge PAC records which contain the same type and codec to simplify the matching with client endpoints so all capabilities and metadata are match at once instead of for each PAC record. Luiz Augusto von Dentz 3 years ago 1 file, +62, -3
7280f435 media: Fix crash when transport configuration changes In case of BAP the same transport may be reconfigured multiple times which means it would appears multiple times on endpoint->transports leading to a crash when disconnecting as the code would attempt to destroy the same object multiple times. Luiz Augusto von Dentz 3 years ago 1 file, +3, -3
707a547e bap: Fix not able to reconfigure While attempting to configure QoS setting the request id is not reset to 0 when a response is received which prevents any the QoS to be reconfigured. Luiz Augusto von Dentz 3 years ago 1 file, +2, -0
7642669e client/player: Add support for custom preset This adds support for a custom preset which asks the user to enter its configuration: [bluetooth]# endpoint.presets 00002bc9-0000-1000-8000-00805f9b34fb custom [Codec] Enter frequency (Khz): 48 [Codec] Enter frame duration (ms): 10 [Codec] Enter channel allocation: 0x000000003 [Codec] Enter frame length: 100 [QoS] Enter Target Latency (Low, Balance, High): Low [QoS] Enter SDU Interval (us): 10000 [QoS] Enter Framing (Unframed, Framed): Unframed [QoS] Enter PHY (1M, 2M): 2M [QoS] Enter Max SDU: 200 [QoS] Enter RTN: 3 [QoS] Enter Max Transport Latency (ms): 20 [QoS] Enter Presentation Delay (us): 10000 Luiz Augusto von Dentz 3 years ago 1 file, +366, -48
636c7866 shared/bap: Fix initiating QoS and Enable procedures as server According to Table 3.2: ASE state machine transition these procedures can only be initated by clients. Luiz Augusto von Dentz 3 years ago 1 file, +8, -12
b6a6f6a8 shared/bap: Fix not reading all instances of PAC Sinks/Sources Both PAC Sink and Source are allowed to have multiple instances: - The server wanted to support a smaller maximum transmission unit (ATT_MTU, as defined in Volume 3, Part F, Section 3.2.8 in [2]) size. Exposing all supported PAC records in a single Sink PAC characteristic would require the server to increase its supported Maximum Transmission Unit (MTU) size to a value the server considered excessive. - The server wanted to expose support for proprietary audio capabilities (such as vendor-specific audio codecs, as denoted by the Codec_ID parameter value) separately from support for non-vendor-specific audio capabilities and used separate Sink PAC characteristics to expose such support. - The server wanted to minimize the amount of data to be transferred, when sending notifications to a client that the Sink PAC characteristic value changed, by exposing the audio capabilities likely to change quicker than others in separate Sink PAC characteristics. Luiz Augusto von Dentz 3 years ago 1 file, +8, -4
43d71b84 shared/gatt-client: Fix not checking valid ranges When attempting to update discovery ranges the code shall verify if the range is still valid (handles != 0x0000 and start < end). Luiz Augusto von Dentz 3 years ago 1 file, +23, -7
25d6c9a0 monitor: Decode vendor codecs of BT_HCI_CMD_READ_LOCAL_CODECS_V2 This attempts to decode the vendor codecs includec in the response of BT_HCI_CMD_READ_LOCAL_CODECS_V2. Luiz Augusto von Dentz 3 years ago 2 files, +31, -0
9f503683 main.conf: Add SecureConnections option This introduces SecureConnections option to main.conf that can be used to configure this on adapter initialization. This is useful for: - disable for adapters that have a problems with SecureConnections enabled - if you want to disable CTKD (cross transport key derivation) - add option to enable only SecureConnections Simon Mikuda 3 years ago 4 files, +35, -1
5a872af4 client/player: Fix scan-build warning This fixes the following warning: client/player.c:1775:25: warning: Dereference of null pointer [core.NullDereference] iov_append(&cfg->caps, preset->data.iov_base, preset->data.iov_len); ^~~~~~~~~~~~~~~~~~~~~ Luiz Augusto von Dentz 3 years ago 1 file, +3, -0
818adf28 tools: Use portable 64 bit data formats The isotest executable was using the non-portable %zd string formatter for loging 64 bit integers. This replaces them with PRId64. Brian Gix 3 years ago 1 file, +3, -2
e2b2b167 hostname: Fallback to transient hostname After pretty hostname, and static hostname, also support transient hostname as a last resort before 'BlueZ X.XX'. This happens on Fedora's Workstation installation as it calls "hostnamectl set-hostname" on startup. In Fedora Silverblue, the default hostname is set as fedora in /etc/os-release. In both cases, we should fall back to that transient hostname, as bad as it could be. Note that the transient hostname needs to be monitored through the kernel directly, as explained in: https://www.freedesktop.org/software/systemd/man/org.freedesktop.hostname1.html Bastien Nocera 3 years ago 1 file, +55, -2
e515f4b6 hostname: Add '' around printed strings Otherwise we can't see whether the string is nul, or empty. Bastien Nocera 3 years ago 1 file, +3, -3
1ebbfee3 unit: Introduce test-bap Test Summary ------------ BAP/UCL/DISC/BV-01-C Passed BAP/UCL/DISC/BV-02-C Passed BAP/UCL/DISC/BV-06-C Passed BAP/UCL/DISC/BV-05-C Passed BAP/UCL/DISC/BV-03-C Passed BAP/UCL/DISC/BV-04-C Passed Total: 6, Passed: 6 (100.0%), Failed: 0, Not Run: 0 Luiz Augusto von Dentz 3 years ago 2 files, +574, -0
7fcd6889 shared/bap: Fix crash when canceling requests If bt_bap_unref/bap_free is called while there is an ongoing pending request it may endup calling into bap_notify_ready which will try to notify ready callbacks while holding a reference, but in case the reference is already 0 that means it would switch to 1 and back 0 causing a double free. To prevent that bap_notify_ready now checks that the reference is not 0 with use of bt_bap_ref_safe. Luiz Augusto von Dentz 3 years ago 1 file, +10, -1
918c73ac shared/tester: Add tester_io_set_complete_func This adds tester_io_set_complete_func which can be used to set a callback when all iovec has been sent/received. Luiz Augusto von Dentz 3 years ago 2 files, +17, -0
f96bccd8 shared/bap: Make use of util_iov helpers This make use of util_iov helpers instead of reimplementing them. Luiz Augusto von Dentz 3 years ago 1 file, +51, -132
7c2e276d shared/util: Add iovec helpers This adds iovec helpers functions. Luiz Augusto von Dentz 3 years ago 2 files, +113, -0
b3a8f8fe monitor/att: Fix not dequeing att_read on error response If a read/read by type fails it needs to be dequeued otherwise it can cause the next operation of the same type to return the wrong request and possible decoding as if it was a different attribute type. Luiz Augusto von Dentz 3 years ago 1 file, +58, -51
63b01d0b Release 5.66 Marcel Holtmann 3 years ago 2 files, +9, -1
532c903a build: Update library version Marcel Holtmann 3 years ago 1 file, +1, -1
3bd7df28 monitor: Add some definitions from Bluetooth 5.3 Core specification Marcel Holtmann 3 years ago 1 file, +13, -0
7e0e08ca monitor/att: Add support for decoding Characteristic Declaration This adds supports for decoding the so called Characteristic Declaration (0x2803): > ACL Data RX: Handle 3585 flags 0x02 dlen 76 ATT: Read By Type Response (0x09) len 71 Attribute data length: 7 Attribute data list: 10 entries Handle: 0x0002 Value: 200300052a Properties: 0x20 Indicate (0x20) Value Handle: 0x0003 Value UUID: Service Changed (0x2a05) Handle: 0x0015 Value: 021600002a Properties: 0x02 Read (0x02) Value Handle: 0x0016 Value UUID: Device Name (0x2a00) Handle: 0x0017 Value: 021800012a Properties: 0x02 Read (0x02) Value Handle: 0x0018 Value UUID: Appearance (0x2a01) Handle: 0x0019 Value: 021a00a62a Properties: 0x02 Read (0x02) Value Handle: 0x001a Value UUID: Central Address Resolution (0x2aa6) Handle: 0x0029 Value: 102a00372a Properties: 0x10 Notify (0x10) Value Handle: 0x002a Value UUID: Heart Rate Measurement (0x2a37) Handle: 0x002c Value: 022d00382a Properties: 0x02 Read (0x02) Value Handle: 0x002d Value UUID: Body Sensor Location (0x2a38) Handle: 0x002e Value: 082f00392a Properties: 0x08 Write (0x08) Value Handle: 0x002f Value UUID: Heart Rate Control Point (0x2a39) Handle: 0x0031 Value: 0a32008a2a Properties: 0x0a Read (0x02) Write (0x08) Value Handle: 0x0032 Value UUID: First Name (0x2a8a) Handle: 0x0033 Value: 0a3400902a Properties: 0x0a Read (0x02) Write (0x08) Value Handle: 0x0034 Value UUID: Last Name (0x2a90) Handle: 0x0035 Value: 0a36008c2a Properties: 0x0a Read (0x02) Write (0x08) Value Handle: 0x0036 Value UUID: Gender (0x2a8c) Luiz Augusto von Dentz 3 years ago 1 file, +41, -0
3a3298e2 monitor/att: Add handler support for Read by Type This adds handler support for Read by Type so it can further decode the values when the procedure is used. Luiz Augusto von Dentz 3 years ago 2 files, +152, -61
f9657b86 tools: Switch hciattach_qualcomm to FAILIF macro completely Use the FAILIF() macro consistently to avoid unused variable n warnings. Marek Vasut 3 years ago 1 file, +8, -16
d9253248 tools: Make hciattach_* firmware path build-time configurable Make hciattach_qualcomm.c and hciattach_tialt.c behave the same way as hciattach_bcm43xx.c does, where FIRMWARE_DIR can be overridden at build time by using -DFIRMWARE_DIR= CFLAGS. Marek Vasut 3 years ago 4 files, +8, -6
b3f76b30 tools/test-runner: Remove bluetooth.enable_ecred L2CAP ECRED is now enabled by default by the following kernel change: 98f18bb78b7d ("Bluetooth: Add CONFIG_BT_LE_L2CAP_ECRED") Luiz Augusto von Dentz 3 years ago 1 file, +0, -1
f65b4d5f doc/ci.config: Add configuration for CI test This patch adds the bluetooth kernel config file used by CI test, which enables all bluetooth features. Tedd Ho-Jeong An 3 years ago 1 file, +122, -0
6899322b monitor: Ellisys: Add iso packet support Ellisys Bluetooth Analyzer Injection API Services.pdf HCI Packet Type Object Value HCI Packet Type 0x05 HCI ISO Data (host to controller) 0x85 HCI ISO Data (controller to host) Yao Xiao 3 years ago 1 file, +6, -0
c8836711 client: Fix advertise.data command advertise.data when no parameter is given shall print what is set on ad.data not the ad.manufacturer which is a different field set by advertise.manufacturer. Luiz Augusto von Dentz 3 years ago 1 file, +1, -1
3153b0ec shared/util: Increase debug trace buffer size Most of the debug traces are longer than 78 characters, increase the buffer to not lost trace's end Frédéric Danis 3 years ago 1 file, +1, -1
68155e2f monitor/att: Revert treating Notification/Indication as a request Notification/Indication shall be treated as response (rsp=true) so the correct database is used: > ACL Data RX: Handle 3585 flags 0x02 dlen 14 ATT: Handle Value Notification (0x1b) len 9 Handle: 0x002a Type: Report (0x2a4d) Data: 0000feffff0000 Luiz Augusto von Dentz 3 years ago 1 file, +1, -1
a49b47f2 monitor/att: Detect cache changes This attempts to detect if the were any changes on cache files since they were last loaded and then attempt to reload them. Luiz Augusto von Dentz 3 years ago 1 file, +29, -12
9c739ba2 settings: Fix scan-build warning This fixes the following warning: src/settings.c:281:7: warning: Branch condition evaluates to a garbage value [core.uninitialized.Branch] if (ret) { ^~~ Luiz Augusto von Dentz 3 years ago 1 file, +1, -0
07fd4b94 monitor/att: Add decoding support for GMCS This adds decoding support for GMCS attributes. < ACL Data TX: Handle 3585 flags 0x00 dlen 7 ATT: Read Request (0x0a) len 2 Handle: 0x0056 Type: Media Control Point Opcodes Supported (0x2ba5) > ACL Data RX: Handle 3585 flags 0x02 dlen 9 ATT: Read Response (0x0b) len 4 Value: 33180000 Handle: 0x0056 Type: Media Control Point Opcodes Supported (0x2ba5) Supported Opcodes: 0x00001833 Play (0x00000001) Pause (0x00000002) Stop (0x00000010) Move Relative (0x00000020) Previous Track (0x00000800) Next Track (0x00001000) Abhay Maheta 3 years ago 1 file, +513, -0
123e1ee1 profiles: Add initial code for mcp plugin This adds initial code for mcp plugin which handles Media Control Profile and Generic Media Control Service for Client Role. The plugin exposes dbus methods for media control operations like play, pause which can be invoked using player menu in bluetoothctl. Abhay Maheta 3 years ago 3 files, +439, -0
3973147a shared/mcp: Add initial code for handling MCP This adds initial code for Media Control Profile for Client Role. Abhay Maheta 3 years ago 4 files, +1546, -0
d3a204b8 lib/uuid: Add GMCS UUIDs This adds GMCS UUIDs which will be used by Media Control Profile. Abhay Maheta 3 years ago 1 file, +15, -0
1096a99c monitor: Fix incorrect vendor name for vendor cmd and evt This patch fixes the issue that the vendor name for all vendor HCI command and event are display as Microsoft. Tedd Ho-Jeong An 3 years ago 1 file, +31, -15
5f064739 mesh: Keep cancelled SAR data for at least 10 sec When a SAR transmission has been completed or cancelled, the recipent should store the block authentication values for at least 10 seconds and ignore new segments with the same values during this period. See MshPRFv1.0.1 section 3.5.3.4. Isak Westin 3 years ago 1 file, +26, -5
9065853f mgmt-tester: Fix Set Static Address tests Set Static Address tests needs to power after setting the address since the programming of the address using the HCI command only happens during power on procedure. Luiz Augusto von Dentz 3 years ago 1 file, +51, -12
c2bf1513 vhci: Add function to interact with force_static_address This adds functions that can be used to set debugfs force_static_address. Luiz Augusto von Dentz 3 years ago 2 files, +11, -0
Previous Next