Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp1890777rdb; Thu, 7 Dec 2023 11:30:18 -0800 (PST) X-Google-Smtp-Source: AGHT+IFhgCS3rqeEZoi6502yjhKVlQZTNlZjvR8Xz42q0a7ZIutRlD5UCehQX3L/0WC/BHHIKsD4 X-Received: by 2002:a17:902:e851:b0:1d0:6ffd:9e04 with SMTP id t17-20020a170902e85100b001d06ffd9e04mr3305914plg.86.1701977418536; Thu, 07 Dec 2023 11:30:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701977418; cv=none; d=google.com; s=arc-20160816; b=xr0YmJ1+lY0jWTYEg5ZIb4bcE0kni7MAK0FZgj/1Kg5trS1j/dPYM5IfiAeEiuBFXQ 9583aFG33QdZcv0idDjh2LQpX5m/pn5sGd0OmfmH9McaIeoyk+SIJ7C7QNVqzIThJD21 khbj41w3CbttB5G3tY+Fca94huR1/v0mFB1a1ow3ngQnwy0RkBaa3H+gYGT5pQBuXnFS KvB1LTg2KCXUueWV/BJZ+AsV/b4rmRwmwWxUeDzJqPN3I/YPCNmkJ58Xht+MBF58TKBh XtZXQabHuOm5J+hBty91LLPEp40v9XzXiusO1DOPdvSt93n7XUdLy8U9GQ2AlluepqRy 1SAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:cc:references:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id; bh=Ax+NedxLHbtvmY2C6phyPjWCa/97lpVXwQZcc1mQYLA=; fh=v4Z3N2Htbr8NtGqMLkQjkIE/EbeUcf6lhEWEAm07n3g=; b=J7lIlcDCoHaqgg4KqRniQIBHCdoIujaqZXSHt3r5R2Jrb5EOmn0LKfI+IFXdv6pBdq 4B4IaD19UFRfy36MpUQF5UK9e6/82zPWnZt+H3jmXC0tPiEMxvpRQuvqJS+e93XJaQyC 0ACae/yrG0OCk9Lup2MhcdaHBPudmA0naT3Kd3+PeBEHhtTAIDTcVpsAxNU3mSQJTrDv 4dv6yaakKCBm3a6bem5k660MhZ5pTSb/dKRyaUckDmA5ZcKJRTRn/Z+kP+Zk6e8YNSmM N29vZQxxC1Lw5N0AUb0Ug1XNSZK58zRWlfIcmnQ45pizwzQQDBtNoJwNgeshy6sgwCiq avJg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-bluetooth+bounces-442-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-442-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id o12-20020a170902bccc00b001cc692bf120si220756pls.61.2023.12.07.11.30.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Dec 2023 11:30:18 -0800 (PST) Received-SPF: pass (google.com: domain of linux-bluetooth+bounces-442-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-bluetooth+bounces-442-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-442-linux.lists.archive=gmail.com@vger.kernel.org" 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 22292B20D0E for ; Thu, 7 Dec 2023 19:30:13 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4E9844F61D; Thu, 7 Dec 2023 19:30:04 +0000 (UTC) X-Original-To: linux-bluetooth@vger.kernel.org Received: from mx3.molgen.mpg.de (mx3.molgen.mpg.de [141.14.17.11]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1EF671708 for ; Thu, 7 Dec 2023 11:29:57 -0800 (PST) Received: from [141.14.220.40] (g40.guest.molgen.mpg.de [141.14.220.40]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: pmenzel) by mx.molgen.mpg.de (Postfix) with ESMTPSA id A619A61E5FE04; Thu, 7 Dec 2023 20:29:50 +0100 (CET) Message-ID: <8ff48948-af4d-4bba-be38-891e89e25a92@molgen.mpg.de> Date: Thu, 7 Dec 2023 20:29:49 +0100 Precedence: bulk X-Mailing-List: linux-bluetooth@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH BlueZ v1] client/player: Fix not prompting all parameter on endpoint.register Content-Language: en-US To: Luiz Augusto von Dentz References: <20231207184723.3862261-1-luiz.dentz@gmail.com> Cc: linux-bluetooth@vger.kernel.org From: Paul Menzel In-Reply-To: <20231207184723.3862261-1-luiz.dentz@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Dear Luiz, Am 07.12.23 um 19:47 schrieb Luiz Augusto von Dentz: > From: Luiz Augusto von Dentz > > When Auto Accept is not enable not all parameters are requested. enable*d* > --- > 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); > } 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. > static void endpoint_set_metadata(const char *input, void *user_data) Kind regards, Paul