public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH BlueZ] tools/btpclient: Fix name advertising
@ 2026-01-15 14:40 Frédéric Danis
  2026-01-15 15:38 ` [BlueZ] " bluez.test.bot
  2026-01-15 21:40 ` [PATCH BlueZ] " patchwork-bot+bluetooth
  0 siblings, 2 replies; 3+ messages in thread
From: Frédéric Danis @ 2026-01-15 14:40 UTC (permalink / raw)
  To: linux-bluetooth

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


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-01-15 21:43 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-15 14:40 [PATCH BlueZ] tools/btpclient: Fix name advertising Frédéric Danis
2026-01-15 15:38 ` [BlueZ] " bluez.test.bot
2026-01-15 21:40 ` [PATCH BlueZ] " patchwork-bot+bluetooth

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox