mbox series

[BlueZ,0/1] bap: Fix endpoint unregister for BAP broadcast source

Message ID 20240402154955.45229-1-silviu.barbulescu@nxp.com
Headers show
Series bap: Fix endpoint unregister for BAP broadcast source | expand

Message

Silviu Florian Barbulescu April 2, 2024, 3:49 p.m. UTC
Fix endpoint unregister command for BAP broadcast source
before fix endpoint is not deleted:
endpoint.register 00001852-0000-1000-8000-00805f9b34fb 0x065f9b34fb 0x06
[/local/endpoint/ep0] Auto Accept (yes/no): y
[/local/endpoint/ep0] Max Transports (auto/value): a
[/local/endpoint/ep0] Locations: 3
[/local/endpoint/ep0] Supported Context (value): 0
Capabilities:
03 01 ff 00 02 02 03 02 03 03 05 04 1a 00 f0 00 ................
Metadata:
[bluetooth]# [NEW] Endpoint /org/bluez/hci0/pac_bcast0
[bluetooth]# Endpoint /local/endpoint/ep0 registered
[bluetooth]# endpoint.config /org/bluez/hci0/pac_bcast0
/local/endpoint/ep0 48_4endpoint.config /org/bluez/hci0/pac_bcast0
/local/endpoint/ep0 48_4_1
[/local/endpoint/ep0] BIG (auto/value): 0
[/local/endpoint/ep0] Enter channel location (value/no): 1
[/local/endpoint/ep0] Enter Metadata (value/no): n
.................
[bluetooth]# [NEW] Transport /org/bluez/hci0/pac_bcast0/fd0
[bluetooth]# Endpoint: SetConfiguration
[bluetooth]# Transport /org/bluez/hci0/pac_bcast0/fd0
[bluetooth]# Properties.Device: /org/bluez/hci0
[bluetooth]# Auto Accepting...
[bluetooth]# Endpoint /local/endpoint/ep0 configured
endpoint.unregister 00001852-0000-1000-8000-00805f9b34fb-00805f9b34fb
[bluetooth]# [DEL] Transport /org/bluez/hci0/pac_bcast0/fd0
[bluetooth]# Endpoint /local/endpoint/ep0 unregistered


after fix endpoint is deleted:
[bluetooth]# [CHG] Controller 00:AA:01:00:00:00 Pairable: yes
[bluetooth]# AdvertisementMonitor path registered
endpoint.register 00001852-0000-1000-8000-00805f9b34fb 0x065f9b34fb 0x06
[/local/endpoint/ep0] Auto Accept (yes/no): y
[/local/endpoint/ep0] Max Transports (auto/value): a
[/local/endpoint/ep0] Locations: 3
[/local/endpoint/ep0] Supported Context (value): 0
Capabilities:
03 01 ff 00 02 02 03 02 03 03 05 04 1a 00 f0 00 ................
Metadata:
[bluetooth]# [NEW] Endpoint /org/bluez/hci0/pac_bcast0
[bluetooth]# Endpoint /local/endpoint/ep0 registered
[bluetooth]# endpoint.config /org/bluez/hci0/pac_bcast0
/local/endpoint/ep0 48_4endpoint.config /org/bluez/hci0/pac_bcast0
/local/endpoint/ep0 48_4_1
[/local/endpoint/ep0] BIG (auto/value): 0
[/local/endpoint/ep0] Enter channel location (value/no): 1
[/local/endpoint/ep0] Enter Metadata (value/no): n
............
[bluetooth]# [NEW] Transport /org/bluez/hci0/pac_bcast0/fd0
[bluetooth]# Endpoint: SetConfiguration
[bluetooth]# Transport /org/bluez/hci0/pac_bcast0/fd0
[bluetooth]# Properties.Device: /org/bluez/hci0
[bluetooth]# Auto Accepting...
[bluetooth]# Endpoint /local/endpoint/ep0 configured
endpoint.unregister 00001852-0000-1000-8000-00805f9b34fb-00805f9b34fb
[bluetooth]# [DEL] Transport /org/bluez/hci0/pac_bcast0/fd0
[bluetooth]# [DEL] Endpoint /org/bluez/hci0/pac_bcast0
[bluetooth]# Endpoint /local/endpoint/ep0 unregistered

Silviu Florian Barbulescu (1):
  bap: Fix endpoint unregister for BAP broadcast source

 profiles/audio/bap.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)


base-commit: 3403f65e266a0c40ace9cecc868fa96ad3335920

Comments

patchwork-bot+bluetooth@kernel.org April 2, 2024, 8:40 p.m. UTC | #1
Hello:

This patch was applied to bluetooth/bluez.git (master)
by Luiz Augusto von Dentz <luiz.von.dentz@intel.com>:

On Tue,  2 Apr 2024 18:49:54 +0300 you wrote:
> Fix endpoint unregister command for BAP broadcast source
> before fix endpoint is not deleted:
> endpoint.register 00001852-0000-1000-8000-00805f9b34fb 0x065f9b34fb 0x06
> [/local/endpoint/ep0] Auto Accept (yes/no): y
> [/local/endpoint/ep0] Max Transports (auto/value): a
> [/local/endpoint/ep0] Locations: 3
> [/local/endpoint/ep0] Supported Context (value): 0
> Capabilities:
> 03 01 ff 00 02 02 03 02 03 03 05 04 1a 00 f0 00 ................
> Metadata:
> [bluetooth]# [NEW] Endpoint /org/bluez/hci0/pac_bcast0
> [bluetooth]# Endpoint /local/endpoint/ep0 registered
> [bluetooth]# endpoint.config /org/bluez/hci0/pac_bcast0
> /local/endpoint/ep0 48_4endpoint.config /org/bluez/hci0/pac_bcast0
> /local/endpoint/ep0 48_4_1
> [/local/endpoint/ep0] BIG (auto/value): 0
> [/local/endpoint/ep0] Enter channel location (value/no): 1
> [/local/endpoint/ep0] Enter Metadata (value/no): n
> .................
> [bluetooth]# [NEW] Transport /org/bluez/hci0/pac_bcast0/fd0
> [bluetooth]# Endpoint: SetConfiguration
> [bluetooth]# Transport /org/bluez/hci0/pac_bcast0/fd0
> [bluetooth]# Properties.Device: /org/bluez/hci0
> [bluetooth]# Auto Accepting...
> [bluetooth]# Endpoint /local/endpoint/ep0 configured
> endpoint.unregister 00001852-0000-1000-8000-00805f9b34fb-00805f9b34fb
> [bluetooth]# [DEL] Transport /org/bluez/hci0/pac_bcast0/fd0
> [bluetooth]# Endpoint /local/endpoint/ep0 unregistered
> 
> [...]

Here is the summary with links:
  - [BlueZ,1/1] bap: Fix endpoint unregister for BAP broadcast source
    https://git.kernel.org/pub/scm/bluetooth/bluez.git/?id=0d38224bf566

You are awesome, thank you!