diff mbox series

[BlueZ,v1] client/player: Fix not prompting all parameter on endpoint.register

Message ID 20231207184723.3862261-1-luiz.dentz@gmail.com
State New
Headers show
Series [BlueZ,v1] client/player: Fix not prompting all parameter on endpoint.register | expand

Commit Message

Luiz Augusto von Dentz Dec. 7, 2023, 6:47 p.m. UTC
From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>

When Auto Accept is not enable not all parameters are requested.
---
 client/player.c | 10 +++-------
 1 file changed, 3 insertions(+), 7 deletions(-)
diff mbox series

Patch

diff --git a/client/player.c b/client/player.c
index 4673d2efece8..4d49602c70d7 100644
--- a/client/player.c
+++ b/client/player.c
@@ -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)