From 49dec8be696f93ae31692e808a96f4d225e720f2 Mon Sep 17 00:00:00 2001 From: Wootak Jung Date: Thu, 11 Aug 2022 08:24:57 +0900 Subject: Add device name for l2cap le advertising Change-Id: Ia91934a2499f8d41e3128e23b7f6dc78e8983087 --- tests/test/bt_unit_test.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/test/bt_unit_test.c b/tests/test/bt_unit_test.c index a276aeb..27dbe2a 100644 --- a/tests/test/bt_unit_test.c +++ b/tests/test/bt_unit_test.c @@ -5157,6 +5157,11 @@ int test_input_callback(void *data) if (ret != BT_ERROR_NONE) TC_PRT("add service_data [0x%04x]", ret); + ret = bt_adapter_le_set_advertising_device_name(advertiser, + BT_ADAPTER_LE_PACKET_SCAN_RESPONSE, true); + if (ret != BT_ERROR_NONE) + TC_PRT("set device name [0x%04x]", ret); + return 0; default: TC_PRT("No adv data"); -- cgit v1.2.3