client/player: Fix not prompting all parameter on endpoint.register
Luiz Augusto von Dentz
maintainerPATCH 1/1 client/player: Fix not prompting all parameter on endpoint.register
From: Luiz Augusto von Dentz <[email protected]>
When Auto Accept is not enable not all parameters are requested.
--- client/player.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-)
client/player.c +3 -7
@@ -2813,17 +2813,13 @@ static void endpoint_auto_accept(const char *input, void *user_data)return ; }else if (!strcasecmp (input,"n" ) || !strcasecmp (input,"no" )) { ep->auto_accept = false; +bt_shell_prompt_input (ep->path,"Max Transports (auto/value):" , + endpoint_max_transports, ep); +return ; }else {bt_shell_printf ("Invalid input for Auto Accept\n" );return bt_shell_noninteractive_quit (EXIT_FAILURE ); } - -if (ep->broadcast) -bt_shell_prompt_input (ep->path,"BIG (auto/value):" , - endpoint_iso_group, ep); -else -bt_shell_prompt_input (ep->path,"CIG (auto/value):" , - endpoint_iso_group, ep); }static void endpoint_set_metadata (const char *input,void *user_data)
Signature · 1 line
2.43.0
Dear Luiz,
Am 07.12.23 um 19:47 schrieb Luiz Augusto von Dentz:
Quoted 3 lines
From: Luiz Augusto von Dentz <[email protected]>
When Auto Accept is not enable not all parameters are requested.
enable*d*
Quoted 17 lines
--- client/player.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-)client/player.c +3
-0@@ -2813,17 +2813,13 @@ static void endpoint_auto_accept(const char *input, void *user_data)return ; }else if (!strcasecmp (input,"n" ) || !strcasecmp (input,"no" )) { ep->auto_accept = false; +bt_shell_prompt_input (ep->path,"Max Transports (auto/value):" , + endpoint_max_transports, ep); +return ; }else {bt_shell_printf ("Invalid input for Auto Accept\n" );
client/player.c static void endpoint_auto_accept(const char *input, void *user_data) · line 2823
Quoted 10 lines
client/player.c +0
-7return bt_shell_noninteractive_quit (EXIT_FAILURE ); } - -if (ep->broadcast) -bt_shell_prompt_input (ep->path,"BIG (auto/value):" , - endpoint_iso_group, ep); -else -bt_shell_prompt_input (ep->path,"CIG (auto/value):" , - endpoint_iso_group, ep); }
Excuse my ignorance, but it’s not clear to me why *Max Transports* is now used instead of *BIG* or *CIG*, and what the code path is, that could not have led to one of the two prompts.
client/player.c static void endpoint_auto_accept(const char *input, void *user_data) · line 2825
Quoted 1 line
client/player.c +0
-0static void endpoint_set_metadata (const char *input,void *user_data)
Kind regards,
Paul
This is automated email and please do not reply to this email!
Dear submitter,
Thank you for submitting the patches to the linux bluetooth mailing list. This is a CI test results with your patch series:
PW Link:https://patchwork.kernel.org/project/bluetooth/list/?series=807969
---Test result---
Test Summary:
CheckPatch PASS 2.00 seconds GitLint PASS 0.51 seconds BuildEll PASS 24.16 seconds BluezMake PASS 732.65 seconds MakeCheck PASS 11.85 seconds MakeDistcheck PASS 159.63 seconds CheckValgrind PASS 217.54 seconds CheckSmatch PASS 321.99 seconds bluezmakeextell PASS 103.06 seconds IncrementalBuild PASS 681.09 seconds ScanBuild PASS 906.20 seconds
---
Regards,
Linux Bluetooth
This patch was applied to bluetooth/bluez.git (master) by Luiz Augusto von Dentz <[email protected]>:
Hello:
This patch was applied to bluetooth/bluez.git (master) by Luiz Augusto von Dentz <[email protected]>:
Quoted 6 lines · On Thu, 7 Dec 2023 13:47:23 -0500 you wrote:
From: Luiz Augusto von Dentz <[email protected]>
When Auto Accept is not enable not all parameters are requested.
--- client/player.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-)
Here is the summary with links:
- [BlueZ,v1] client/player: Fix not prompting all parameter on endpoint.register
https://git.kernel.org/pub/scm/bluetooth/bluez.git/?id=477c41c683ea
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html