Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp1867087rdb; Thu, 7 Dec 2023 10:47:34 -0800 (PST) X-Google-Smtp-Source: AGHT+IGvPe/vilylQ+KU1GvgA9P6TtFMIpdbcbudc+Yk7HBLCd8RCjwllqtACm/3zmIgAsaeH+Ks X-Received: by 2002:a17:906:2246:b0:a1a:81aa:56cc with SMTP id 6-20020a170906224600b00a1a81aa56ccmr6277446ejr.26.1701974854326; Thu, 07 Dec 2023 10:47:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701974854; cv=none; d=google.com; s=arc-20160816; b=kKX06I2zyhqlwnFaL/F0qD54RGKk/83KngBjrrHz/tiIXqXz9rdph39EEO+DviWdH1 d0sGslarSs/r69kGOtHzqaKkn68XfxO1nUKvr0oiayY2iOLNKols1gSG4CsQyaIJD791 OIPtad4g0yhfiUuOONNahqotvbenFYJ5Rye23bkSfkJjU7Fo4V4ZBAm+Qj+OT0aOxAib 9AOMpQsRHmEI6JFsWKZJlh6MI3do/9pXpqRfsiwbqpKNS2Kt033XzDJbD4qR4Ph4XsEh 1uKNTCGZRn48309t7FqDWTN+BoygYKbTQ41mPN8Ba2kONGrtdFxXSmYKgaVI5CEt533+ x6iw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:to:from :dkim-signature; bh=J0DMQvM0X0TWe5eEVe4BlNvp79zys3iQHTwQKtKgndg=; fh=4lGQI6056MBa4/oovMyIYaKLn+Wz/24RGvUivMmQP8E=; b=ph2ySJqoaRBkewXfJHe7LSwal8cssc45sF00Fu29eXqh0p9yA+ZKeQD8tBpgTDqDK1 TVJFxMqyynUcpMT4tgXid3hQoJZa2Zkj04UBgQRCYX0EayG9hX79PKZ1n4X+KzwHjTal BcCJtfkLzibQXs9q6UWolDxVOzBy8IvLLdxGBKDFQTupFnHptvAw0TnVQ3VmDjhFiVU5 vDSY+ulb7fJJOoAKB0A5//UZh0RREtX3sQCLdM9R1mlq2A6i/T6NoPWyCEuWAk1IAUaN Ro2mML3sqw5DCCGjecV9AOREiBa21NMsJuSwA0qIo2evTcVN3FmibnkB8V3PdmboNVNH 0oCw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=SXRaP61u; spf=pass (google.com: domain of linux-bluetooth+bounces-441-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-441-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id l9-20020a170906414900b00a1cf4599d19si56404ejk.90.2023.12.07.10.47.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Dec 2023 10:47:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-bluetooth+bounces-441-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=SXRaP61u; spf=pass (google.com: domain of linux-bluetooth+bounces-441-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-441-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id AFE011F21254 for ; Thu, 7 Dec 2023 18:47:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 33C4945BF0; Thu, 7 Dec 2023 18:47:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="SXRaP61u" X-Original-To: linux-bluetooth@vger.kernel.org Received: from mail-oo1-xc33.google.com (mail-oo1-xc33.google.com [IPv6:2607:f8b0:4864:20::c33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EEBB3E0 for ; Thu, 7 Dec 2023 10:47:27 -0800 (PST) Received: by mail-oo1-xc33.google.com with SMTP id 006d021491bc7-58d06bfadf8so572661eaf.1 for ; Thu, 07 Dec 2023 10:47:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1701974846; x=1702579646; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:from:to:cc:subject:date:message-id:reply-to; bh=J0DMQvM0X0TWe5eEVe4BlNvp79zys3iQHTwQKtKgndg=; b=SXRaP61usOFFDb9PSE0cuzrj9ffBcbmcc/KhKPES0uoKULUmumvYyKDZ8u+qhxrUnk lRG7EEkJsC/Ta5OsztKkAmxK6xNfxJDy/OmCdKhHKumUXuAc+ZQqLfBG+RyXg5kgElat 91nwtvnErL7NLGT9BUt0tifAS8osC9/S4x4hEs/Uy73BWeVbURWGi0UD2uHuR6k+nkXv pq5sj5h+Rc5ICMVFV2fyuz7WNCzlcg2H/1+FIPdrYD3h0TRwmQiUDOnJ4EfpNBbxPAE4 uKeDmUpvbGXGkGx76NuMw8+0LmNGvxSwc+ck3/5v9Rd4JZ/ztbhi2bTns2BTnuuuagZm mktA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701974846; x=1702579646; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=J0DMQvM0X0TWe5eEVe4BlNvp79zys3iQHTwQKtKgndg=; b=XjaUYb/YZQV/oA7s19G0fVnstid2ikRUcL1eLmb3jSlQO0jAYj+oyGUyn72nSa9K2A 2T/cIv4RYfgFf0WYAP8lMhQhILP2ZiXXR4H1inXises2Yv61dQYBivR+wjyMY1AC3KX1 3uT+DrH9z3VORgcXjJTbEigahQqrXEilth/F9o9fWufEx/hbiF35QhRQj0mUOYw0WIqd +W8RFIH9it/aoj0bKE3UV+X7hPeOr5Sv/GoTqtCvQ2VYMaRLz4mvbxUB1XDyESuO8n0V wHYw9Be1tvhxx6gg07HO47mPq1BivE5LInjNneIl25N/N03pHUX1EYnd1KXKEo4Ti6S/ ovVQ== X-Gm-Message-State: AOJu0YzBz1ANRIZYvuIc8fre64rTPH4xWd7Ioj81zwxb3C3MopkjSv9u 33xoQk2sksKAGkJXVmSinBDEgy05pNo= X-Received: by 2002:a05:6820:2a14:b0:590:77c3:9d7f with SMTP id dr20-20020a0568202a1400b0059077c39d7fmr882081oob.16.1701974845962; Thu, 07 Dec 2023 10:47:25 -0800 (PST) Received: from lvondent-mobl4.. (071-047-239-151.res.spectrum.com. [71.47.239.151]) by smtp.gmail.com with ESMTPSA id v10-20020a4a244a000000b00581fc1af0a7sm29889oov.28.2023.12.07.10.47.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Dec 2023 10:47:24 -0800 (PST) From: Luiz Augusto von Dentz To: linux-bluetooth@vger.kernel.org Subject: [PATCH BlueZ v1] client/player: Fix not prompting all parameter on endpoint.register Date: Thu, 7 Dec 2023 13:47:23 -0500 Message-ID: <20231207184723.3862261-1-luiz.dentz@gmail.com> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-bluetooth@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Luiz Augusto von Dentz When Auto Accept is not enable not all parameters are requested. --- client/player.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) 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) -- 2.43.0