From patchwork Fri Mar 5 23:52:15 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Winkler X-Patchwork-Id: 12119595 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-26.3 required=3.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_GIT,USER_IN_DEF_DKIM_WL autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 02362C433E9 for ; Fri, 5 Mar 2021 23:53:13 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id C293B650B4 for ; Fri, 5 Mar 2021 23:53:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229992AbhCEXwl (ORCPT ); Fri, 5 Mar 2021 18:52:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42456 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229768AbhCEXwZ (ORCPT ); Fri, 5 Mar 2021 18:52:25 -0500 Received: from mail-yb1-xb49.google.com (mail-yb1-xb49.google.com [IPv6:2607:f8b0:4864:20::b49]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E2E1CC06175F for ; Fri, 5 Mar 2021 15:52:24 -0800 (PST) Received: by mail-yb1-xb49.google.com with SMTP id v196so4288779ybv.3 for ; Fri, 05 Mar 2021 15:52:24 -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=QXCaWeacRSyK84p34eElm2tdjRHFV2ozbDFoOiTQlIM=; b=QVRJwjdLKTCRFelNUHOGp2Rlne4TrfetuJp/0+RRzuX8o1aPo6RxiXUTYr7HeqU140 S/lcaK3e2egnY48YV88pSoENZSQhITZVfmC58h4r29Yio3QfMe7B24NvdKa5nxMcZVOy dWmh3XmeeEb//SHl5Vz5+4Fm9r/BBoib9+JMif1Z/bepbBrT7tObmTbwnYuc+4u0/Tiy UKK+eaSYgX5zcx9tMoAxIHKo8mitFHQ7OVeaOQrFL6h74z7KqIAXPE6NK33L3J2izBCn WD5U0Val0iO19NziqkwexMkqZFxHEQUEOxjDu1uMPmr7sqPEtWyfvxrCeP6HzdXDQkwC gCNg== 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=QXCaWeacRSyK84p34eElm2tdjRHFV2ozbDFoOiTQlIM=; b=L/52QaG//C/ZiteuF1pfRf4LC6UzKiqJLkOFXwr1iB30Ixeijpyjowdzteyej/2Dum iatULml/x9Mrs/U5sKRCJNy3E5jqXE6XMIne481Nk+RMR0KErY18ILKb8bZTQ1jfaAbP 86en7gRe0mDLQuWxYQHz4j2Eq9E08ibOTc5ySRy/ObYZTEcTC8o/O8btSSSM6SGCA9xo ygxpZg0P/agw2mZCYw0Z4X4A3FNMyCsH7GbOEOhEKAEthKSctZ0neugJgJA0RQb28XYH EOYrr++/kM3hT+LxaNiqAMiE4Ask2TyjO9dSF1PlM7HNZHNKoglVSxWqQF5eKZdMJPxg VlbQ== X-Gm-Message-State: AOAM530PA13b53mqB1VYaPdOarfQZLnq9pVtJGJ59ZAbOk1qgrW0NYfe TPlQORKcftCoPqHK0CJkoLcfRR1kp+mP8bXaJZykeWoODkVz4IGl5ZoU9Y8dxNCm8RAdXzsFsyW uAoAexq/PIz67QNtiiZPr+LHOaNyr9ZW9H6Z7mE9Dtf4dDVLRrDOel8MO5cEO6+qgEZtTZC1mOB c5B1I5fqXCS4xHTD9A X-Google-Smtp-Source: ABdhPJy+Q+LkLu7AMPdFDbF7wU5ualDfvMQhz/WtHErI+rAyDXsE4OLwghxefghN6s4TBi95RVEmPCO+bzZNPr/S5suo 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:a25:d943:: with SMTP id q64mr16822819ybg.508.1614988344178; Fri, 05 Mar 2021 15:52:24 -0800 (PST) Date: Fri, 5 Mar 2021 15:52:15 -0800 In-Reply-To: <20210305235217.2382976-1-danielwinkler@google.com> Message-Id: <20210305155113.Bluez.v3.1.Idf2f9f409a4df20b466ba723dd9b729275a5afbf@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 1/3] advertising: Add SupportedFeatures to LEAdvertisingManager1 From: Daniel Winkler To: linux-bluetooth@vger.kernel.org Cc: chromeos-bluetooth-upstreaming@chromium.org, Daniel Winkler , Miao-chen Chou Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org The new SupportedFeatures member tells advertising clients whether the platform has hardware support for advertising or capability to set tx power of advertisements. Additionally, fix small typo in "secondary_exists" function name. Change is tested on hatch and kukui chromebooks by using dbus-send to verify that SupportedFeatures always exists, and is only populated when extended advertising is available. Reviewed-by: Miao-chen Chou --- Changes in v3: None Changes in v2: - Expose empty SupportedFeatures if no support available lib/mgmt.h | 2 ++ src/advertising.c | 43 +++++++++++++++++++++++++++++++++++++++++-- 2 files changed, 43 insertions(+), 2 deletions(-) diff --git a/lib/mgmt.h b/lib/mgmt.h index 76a03c9c2..c0021abd8 100644 --- a/lib/mgmt.h +++ b/lib/mgmt.h @@ -503,6 +503,8 @@ struct mgmt_rp_add_advertising { #define MGMT_ADV_FLAG_SEC_1M (1 << 7) #define MGMT_ADV_FLAG_SEC_2M (1 << 8) #define MGMT_ADV_FLAG_SEC_CODED (1 << 9) +#define MGMT_ADV_FLAG_CAN_SET_TX_POWER (1 << 10) +#define MGMT_ADV_FLAG_HW_OFFLOAD (1 << 11) #define MGMT_ADV_PARAM_DURATION (1 << 12) #define MGMT_ADV_PARAM_TIMEOUT (1 << 13) #define MGMT_ADV_PARAM_INTERVALS (1 << 14) diff --git a/src/advertising.c b/src/advertising.c index 15a343e52..dd6008cb9 100644 --- a/src/advertising.c +++ b/src/advertising.c @@ -1616,7 +1616,8 @@ static void append_secondary(struct btd_adv_manager *manager, } } -static gboolean secondary_exits(const GDBusPropertyTable *property, void *data) +static gboolean secondary_exists(const GDBusPropertyTable *property, + void *data) { struct btd_adv_manager *manager = data; @@ -1640,6 +1641,43 @@ static gboolean get_supported_secondary(const GDBusPropertyTable *property, return TRUE; } +static struct adv_feature { + int flag; + const char *name; +} features[] = { + { MGMT_ADV_FLAG_CAN_SET_TX_POWER, "CanSetTxPower" }, + { MGMT_ADV_FLAG_HW_OFFLOAD, "HardwareOffload" }, + { }, +}; + +static void append_features(struct btd_adv_manager *manager, + DBusMessageIter *iter) +{ + struct adv_feature *feat; + + for (feat = features; feat->name; feat++) { + if (manager->supported_flags & feat->flag) + dbus_message_iter_append_basic(iter, DBUS_TYPE_STRING, + &feat->name); + } +} + +static gboolean get_supported_features(const GDBusPropertyTable *property, + DBusMessageIter *iter, void *data) +{ + struct btd_adv_manager *manager = data; + DBusMessageIter entry; + + dbus_message_iter_open_container(iter, DBUS_TYPE_ARRAY, + DBUS_TYPE_STRING_AS_STRING, &entry); + + append_features(manager, &entry); + + dbus_message_iter_close_container(iter, &entry); + + return TRUE; +} + static gboolean get_supported_cap(const GDBusPropertyTable *property, DBusMessageIter *iter, void *data) { @@ -1678,7 +1716,8 @@ static const GDBusPropertyTable properties[] = { { "SupportedInstances", "y", get_instances, NULL, NULL }, { "SupportedIncludes", "as", get_supported_includes, NULL, NULL }, { "SupportedSecondaryChannels", "as", get_supported_secondary, NULL, - secondary_exits }, + secondary_exists }, + { "SupportedFeatures", "as", get_supported_features, NULL, NULL }, { "SupportedCapabilities", "a{sv}", get_supported_cap, NULL, NULL, G_DBUS_PROPERTY_FLAG_EXPERIMENTAL}, { } From patchwork Fri Mar 5 23:52:16 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Winkler X-Patchwork-Id: 12119589 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-26.3 required=3.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_GIT,USER_IN_DEF_DKIM_WL autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D2F05C433E6 for ; Fri, 5 Mar 2021 23:53:12 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id AB47A650AC for ; Fri, 5 Mar 2021 23:53:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230002AbhCEXwl (ORCPT ); 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 X-Google-Smtp-Source: ABdhPJwq7U1l0XiJsOvr2j0h2enRvFhHoYGAKjh2brSSNR5I73Q8zV3cyfe6BFOVyjAc+qS/NVV0SP3sSNlodL8YA0M7 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 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) { From patchwork Fri Mar 5 23:52:17 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Winkler X-Patchwork-Id: 12119593 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-26.3 required=3.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_GIT,USER_IN_DEF_DKIM_WL autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 20507C433E0 for ; Fri, 5 Mar 2021 23:53:13 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id EA0AC650B5 for ; Fri, 5 Mar 2021 23:53:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230007AbhCEXwl (ORCPT ); Fri, 5 Mar 2021 18:52:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42474 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229972AbhCEXw3 (ORCPT ); Fri, 5 Mar 2021 18:52:29 -0500 Received: from mail-yb1-xb49.google.com (mail-yb1-xb49.google.com [IPv6:2607:f8b0:4864:20::b49]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CA4B4C06175F for ; Fri, 5 Mar 2021 15:52:28 -0800 (PST) Received: by mail-yb1-xb49.google.com with SMTP id l10so4308454ybt.6 for ; Fri, 05 Mar 2021 15:52:28 -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=JCTB0flAHIiTjBr3HF9i0mcV0r9v1jIF+xjdrPpa554=; b=F93N82ZsdvnQtbsS61zG8vWx9O9iRuTMamFMdS1E++9oy6xINuSmCrri29huTG5zkq tF05ohehPyFhlqOtERFRvU6uId05RqPszA1KYbnDMKRvsiMSmAL348ZV5PHEWmk2U6l1 /fP0nheoDt5gCqJLnMwDBYCbZhXi4vho2Cfoe63SK+dq24HPwetZ/0el1nBoN0dpnPN0 bdV1Kq2gdwWQgDE9I8q6rIX1D7l1H+RrJMhESVk83fV97J83yRckSKSEVeiSmmBCF5z2 LhD+vlKq/kZmVpbhIa8t0IN/ydcCS74CmV7uo7NR13qv1IxNoLomjNNZ0Kmh2RVGLNnt GEfA== 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=JCTB0flAHIiTjBr3HF9i0mcV0r9v1jIF+xjdrPpa554=; b=Gha1vZbcsaGLVN9SdLUb6RFZdpO6wCqD83yJKMf6tm+wEveB9lqxrCbn4QKyQ5dPSd j4WA367GiXh99DWd4XjwMAPQdxgx2ZsxiDp+34f4V113YQco6OzH3Qrtu23JVlisu6X0 3E91SaapCgI0kslxhuypvZK613J0IUT4kzjtWygHVLtq89jLNoBVI6GFcmx9tsXHFZKj zQGCJQUAhA8pT520QExOXkB0pbJsT84a/aenVX66vue4lr+Ikn6405l35mOT3kGJld4g lnhxQbROvuTp2yDMCW+2z3xc2G+pSaFGzPZvZmEVdrPEC7St+46J79sZCmn/opCIVIil d0Ng== X-Gm-Message-State: AOAM5323jKMqFslP8rEstuagXmkBRc7hyJaGgfzTqvvu6IcJ7OySUW+o 99j5a6TGZzKEwcEcUqCiAZIU8zous+FOqAG3MTb70++0ImfSjg9IuYiqkgNNSokHCjKKFR9g5y0 sKQ5ewJwiQFDydYQ+RycLA2S6LnUlGGw8sbnRfQsmsOTUml6Y1i4yGuEii8va/rbVEtTPFnLu0f 2o3kSomQ3netpI2VVi X-Google-Smtp-Source: ABdhPJxQf3TqPID8DT62iE1azdzACdSUa4z39fEx/xl4XGTgT39JZUrj7hnBwTI6pRyAge/XaSeDAZfUvWP7iFeNJxgj 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:a25:a441:: with SMTP id f59mr17873902ybi.245.1614988348010; Fri, 05 Mar 2021 15:52:28 -0800 (PST) Date: Fri, 5 Mar 2021 15:52:17 -0800 In-Reply-To: <20210305235217.2382976-1-danielwinkler@google.com> Message-Id: <20210305155113.Bluez.v3.3.Ieb6522963e3f54b0d63dd88ed3ce24a8942ed73e@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 3/3] doc/advertising-api: Add adv SupportedFeatures to doc From: Daniel Winkler To: linux-bluetooth@vger.kernel.org Cc: chromeos-bluetooth-upstreaming@chromium.org, Daniel Winkler , Miao-chen Chou Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Add supported features to advertising dbus api. Reviewed-by: Miao-chen Chou --- Changes in v3: - Rebased onto master Changes in v2: - Doc: Expect empty SupportedFeatures if no support available doc/advertising-api.txt | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/doc/advertising-api.txt b/doc/advertising-api.txt index 541c57004..ba9eacaae 100644 --- a/doc/advertising-api.txt +++ b/doc/advertising-api.txt @@ -235,6 +235,7 @@ Properties byte ActiveInstances "2M" "Coded" + dict SupportedCapabilities [Experimental] Enumerates Advertising-related controller capabilities @@ -257,3 +258,22 @@ Properties byte ActiveInstances int16 MaxTxPower Max advertising tx power (dBm) + + + array{string} SupportedFeatures [readonly, optional] + + List of supported platform features. If no features + are available on the platform, the SupportedFeatures + array will be empty. + + Possible values: "CanSetTxPower" + + Indicates whether platform can + specify tx power on each + advertising instance. + + "HardwareOffload" + + Indicates whether multiple + advertising will be offloaded + to the controller.