From: "Frédéric Danis" <frederic.danis@collabora.com>
To: linux-bluetooth@vger.kernel.org
Subject: [PATCH BlueZ] tools/btpclient: Fix name advertising
Date: Thu, 15 Jan 2026 15:40:58 +0100 [thread overview]
Message-ID: <20260115144058.12960-1-frederic.danis@collabora.com> (raw)
This allows to pass GAP/BROB/BCST/BV-03-C and GAP/BROB/OBSV/BV-06-C
tests with auto-pts.
Those tests request privacy to be on to share IRK.
---
tools/btpclient.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/tools/btpclient.c b/tools/btpclient.c
index e722b2242..5c01e345d 100644
--- a/tools/btpclient.c
+++ b/tools/btpclient.c
@@ -33,6 +33,7 @@
#define AD_TYPE_FLAGS 0x01
#define AD_TYPE_INCOMPLETE_UUID16_SERVICE_LIST 0x02
#define AD_TYPE_SHORT_NAME 0x08
+#define AD_TYPE_COMPLETE_NAME 0x09
#define AD_TYPE_TX_POWER 0x0a
#define AD_TYPE_SOLICIT_UUID16_SERVICE_LIST 0x14
#define AD_TYPE_SERVICE_DATA_UUID16 0x16
@@ -1066,6 +1067,7 @@ static void create_advertising_data(uint8_t adv_data_len, const uint8_t *data)
break;
}
case AD_TYPE_SHORT_NAME:
+ case AD_TYPE_COMPLETE_NAME:
ad.local_name = malloc(ad_len + 1);
memcpy(ad.local_name, ad_data, ad_len);
ad.local_name[ad_len] = '\0';
--
2.43.0
next reply other threads:[~2026-01-15 14:41 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-01-15 14:40 Frédéric Danis [this message]
2026-01-15 15:38 ` [BlueZ] tools/btpclient: Fix name advertising bluez.test.bot
2026-01-15 21:40 ` [PATCH BlueZ] " patchwork-bot+bluetooth
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260115144058.12960-1-frederic.danis@collabora.com \
--to=frederic.danis@collabora.com \
--cc=linux-bluetooth@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox