Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp104030pxb; Fri, 5 Mar 2021 15:56:39 -0800 (PST) X-Google-Smtp-Source: ABdhPJytAJPDMuleKliNBJUDQr5N18wcbWzfPTUgsgwduqgxU6H05bGPfenMu5UywYzlWVk+yw6s X-Received: by 2002:a17:906:565a:: with SMTP id v26mr4791622ejr.516.1614988599215; Fri, 05 Mar 2021 15:56:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614988599; cv=none; d=google.com; s=arc-20160816; b=hrIsiCUCOPKxC2O5Yo8xkIBmKtMAmG6dBjY9c6wTYT2kcpe+kGq5X/H/W4MaHOkaqJ GE9jQJBfn65TuzyFhCtflE9o5psyxKUgsuIosAVf6O/ar/AvRZqbD3Wg2F8IzeYScQg2 jFSOWVrAzwVUy0ZEAgeIDCN184lNe4FFlNfUiStXKM7vyRG8/bG6G/PdTZAaolpPFddq lPSegE3Hw1qp0DzdX7B0DhqaSFvBGhaUXZovqB5/+3mQarLTeIRszWTmg1AylkSV0IdI nfHj/cVD3J/WmNUSWZQAT43IIpnX7jLlAh3M9/qQfV+XpI9SHjArs5nIePJah6/H/MQj qu7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:from:subject:references:mime-version :message-id:in-reply-to:date:sender:dkim-signature; bh=hUg6I8D8GZwLQDAfRhk65G9y85zlIgD8R1KBTwKyx4c=; b=Gxr82RGASG/w8De3JRDCuE11jJJfLvoCqm94OtCaN0xT4JVplXdJi6zh33CtsAAojn glfaqXRFWwDD5cQe2CiSqKE0K3OE4QnERrf/vDnnUQMKC9n5nHOH0QBicW7bwqi/115Q Qr3lvT8rxXRdRpT36v6hrYJHk7YcYImRQpfAg8y2uq5tWY7u4eWtcZqrwT3vPsY6aZTH 5DTtDYvcsmtP1vQruMNwc4snGT2l6wSl6+tVYKiVanGTcrQM3ybljFukURShiidrOvns 0knBO3GjfdpZPwQ3mLc9ZnmdTIpsuPtWeb92/8NMcVuPQOWxR2zu+lcMTXgb5hQHU8ni hWoQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=ALVBhPab; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g8si2009272eje.538.2021.03.05.15.56.15; Fri, 05 Mar 2021 15:56:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=ALVBhPab; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229768AbhCEXwl (ORCPT + 99 others); Fri, 5 Mar 2021 18:52:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42466 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229969AbhCEXw1 (ORCPT ); Fri, 5 Mar 2021 18:52:27 -0500 Received: from mail-qv1-xf49.google.com (mail-qv1-xf49.google.com [IPv6:2607:f8b0:4864:20::f49]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 05498C06175F for ; Fri, 5 Mar 2021 15:52:27 -0800 (PST) Received: by mail-qv1-xf49.google.com with SMTP id iy2so2732382qvb.22 for ; Fri, 05 Mar 2021 15:52:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=sender:date:in-reply-to:message-id:mime-version:references:subject :from:to:cc; bh=hUg6I8D8GZwLQDAfRhk65G9y85zlIgD8R1KBTwKyx4c=; b=ALVBhPabaX2N5u0FtVXwRWphgqoaTjNt5kfBhPnXp4+dxgqPMt3JxIkQnxIiEw/Tvu D8WdzG+A10+739qU9VN06uFPlnfEJTanViAxCi5Q/RR89/PSlWL7Ds/PsnnYcYr9Vpjz 2efuAoSsgKqm6MI8k8hd/sfLKGI0WbOuy13uH7uv1GP/N1ZNguwMVVQJhMN87cqq28gf oeUdKlG3O/aTk2sACnIQqO83Vl6m/dHM2s+1fSptLTsTbpZJYzSRKWu8Yr/DuhwKnt6F CaKW4OfCBnnvjlkZhSXuq+tcLPe3Yna8+AzC9tlLAbZ2rv7Yfq3sP17gyy9pVYQucryv 8T1Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=hUg6I8D8GZwLQDAfRhk65G9y85zlIgD8R1KBTwKyx4c=; b=OttS5iRSpbpysjAgwkyk9feB0E+rmg0bPKnYu5kPaNBIZ5NE/DjZFVr3ZmaczG0B1j du3uNmJ4u86l54yOBDJuiKfoLaT+nQ0Sh5K1W+IkxCQDcJz9xqCKE7BBliCC0VOE8oj6 uJ9aJJ72GEyURKtOHUgUCSi2hZBJRtTWk7/BXbJuIoIxWV8mm8MOr6qKLvRUypMep3kl yNAp/lQ1m6cxnZMsEfaFxLpl+gDH4sULlV0bNkPF7FzAVErSww6cSzhCsEQVhpdiaF/d Sxz1Gsoq/iy3AWaCphP6cOYX0v3N2T3JVeq1HTi9dTE7oz4KIN9leU4GU5ZcrMUsTmAa Tllg== X-Gm-Message-State: AOAM5334MWADf04FwCbZvZVUoDSvQQ3r3KvYmo+QkWeUs9bPlGjYTQan kr3FuafkfwzIJ0dqdglvy9toSkB7d0qqJQDkXzsjgAVrOKmPbtx1ZkEIAQhUvndNqRPx79dQeM1 Ebt+aAv+dER0FAoXLqkuN9yppX//hiQ4iyurfil5yL2uMfYQBeRGGnCevNKWT7PN0bDegKF4aOl u0AfH8lS2iqqZdfAwr Sender: "danielwinkler via sendgmr" X-Received: from danielwinkler-linux.mtv.corp.google.com ([2620:15c:202:201:94dd:309a:2fcb:13a]) (user=danielwinkler job=sendgmr) by 2002:a0c:b998:: with SMTP id v24mr11895944qvf.4.1614988346080; Fri, 05 Mar 2021 15:52:26 -0800 (PST) Date: Fri, 5 Mar 2021 15:52:16 -0800 In-Reply-To: <20210305235217.2382976-1-danielwinkler@google.com> Message-Id: <20210305155113.Bluez.v3.2.I33cf8432f94675b635ab429b3125f54048c5b66a@changeid> Mime-Version: 1.0 References: <20210305235217.2382976-1-danielwinkler@google.com> X-Mailer: git-send-email 2.30.1.766.gb4fecdf3b7-goog Subject: [Bluez PATCH v3 2/3] client: Add adv SupportedFeatures to bluetoothctl From: Daniel Winkler To: linux-bluetooth@vger.kernel.org Cc: chromeos-bluetooth-upstreaming@chromium.org, Daniel Winkler , Miao-chen Chou Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org This change adds SupportedFeatures to be shown in "show" option of bluetoothctl. It was tested with and without kernel support for features to verify that they are shown or not shown correctly. Change was tested by verifying SupportedFeatures were populated correctly in bluetoothctl on hatch and kukui chromebooks Reviewed-by: Miao-chen Chou --- Changes in v3: None Changes in v2: None client/main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/client/main.c b/client/main.c index 79658a463..1669d2c89 100644 --- a/client/main.c +++ b/client/main.c @@ -942,6 +942,7 @@ static void cmd_show(int argc, char *argv[]) print_property(adapter->ad_proxy, "SupportedIncludes"); print_property(adapter->ad_proxy, "SupportedSecondaryChannels"); print_property(adapter->ad_proxy, "SupportedCapabilities"); + print_property(adapter->ad_proxy, "SupportedFeatures"); } if (adapter->adv_monitor_proxy) { -- 2.30.1.766.gb4fecdf3b7-goog