Skip to contentSkip to conversation

Bluetooth: SMP: Convert BT_ERR/BT_DBG to bt_dev_err/bt_dev_dbg

PATCH Superseded Luiz Augusto von Dentz 3 participants 5 messages Mar 11, 2021 – Mar 13, 2021

Subsystems (2)

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore

Luiz Augusto von Dentz

author maintainer
#0 lore raw

PATCH v2 1/1 Bluetooth: SMP: Convert BT_ERR/BT_DBG to bt_dev_err/bt_dev_dbg

From: Luiz Augusto von Dentz <[email protected]>

This converts instances of BT_ERR and BT_DBG to bt_dev_err and bt_dev_dbg which can be enabled at runtime when BT_FEATURE_DEBUG is enabled.

Note: Not all instances could be converted as some are exercised by selftest.

---
v2: Fix issues found by CI

 net/bluetooth/smp.c | 98 ++++++++++++++++++++++++---------------------
 1 file changed, 52 insertions(+), 46 deletions(-)
net/bluetooth/smp.c +52 -46
index e03cc284161c..3cc1ad042edf 100644
@@ -595,7 +595,7 @@ static void smp_send_cmd(struct l2cap_conn *conn, u8 code, u16 len, void *data)
 	if (!chan)
 		return;
 
-	BT_DBG("code 0x%2.2x", code);
+	bt_dev_dbg(conn->hcon->hdev, "code 0x%2.2x", code);
 
 	iv[0].iov_base = &code;
 	iv[0].iov_len = 1;
@@ -859,7 +859,8 @@ static int tk_request(struct l2cap_conn *conn, u8 remote_oob, u8 auth,
 	memset(smp->tk, 0, sizeof(smp->tk));
 	clear_bit(SMP_FLAG_TK_VALID, &smp->flags);
 
-	BT_DBG("tk_request: auth:%d lcl:%d rem:%d", auth, local_io, remote_io);
+	bt_dev_dbg(hcon->hdev, "auth:%d lcl:%d rem:%d", auth, local_io,
+		   remote_io);
 
 	/* If neither side wants MITM, either "just" confirm an incoming
 	 * request or use just-works for outgoing ones. The JUST_CFM
@@ -924,7 +925,7 @@ static int tk_request(struct l2cap_conn *conn, u8 remote_oob, u8 auth,
 		get_random_bytes(&passkey, sizeof(passkey));
 		passkey %= 1000000;
 		put_unaligned_le32(passkey, smp->tk);
-		BT_DBG("PassKey: %d", passkey);
+		bt_dev_dbg(hcon->hdev, "PassKey: %d", passkey);
 		set_bit(SMP_FLAG_TK_VALID, &smp->flags);
 	}
 
@@ -949,7 +950,7 @@ static u8 smp_confirm(struct smp_chan *smp)
 	struct smp_cmd_pairing_confirm cp;
 	int ret;
 
-	BT_DBG("conn %p", conn);
+	bt_dev_dbg(conn->hcon->hdev, "conn %p", conn);
 
 	ret = smp_c1(smp->tk, smp->prnd, smp->preq, smp->prsp,
 		     conn->hcon->init_addr_type, &conn->hcon->init_addr,
@@ -977,7 +978,8 @@ static u8 smp_random(struct smp_chan *smp)
 	u8 confirm[16];
 	int ret;
 
-	BT_DBG("conn %p %s", conn, conn->hcon->out ? "master" : "slave");
+	bt_dev_dbg(conn->hcon->hdev, "conn %p %s", conn,
+		   conn->hcon->out ? "master" : "slave");
 
 	ret = smp_c1(smp->tk, smp->rrnd, smp->preq, smp->prsp,
 		     hcon->init_addr_type, &hcon->init_addr,
@@ -1236,7 +1238,7 @@ static void smp_distribute_keys(struct smp_chan *smp)
 	struct hci_dev *hdev = hcon->hdev;
 	__u8 *keydist;
 
-	BT_DBG("conn %p", conn);
+	bt_dev_dbg(hdev, "conn %p", conn);
 
 	rsp = (void *) &smp->prsp[1];
 
@@ -1266,7 +1268,7 @@ static void smp_distribute_keys(struct smp_chan *smp)
 		*keydist &= ~SMP_SC_NO_DIST;
 	}
 
-	BT_DBG("keydist 0x%x", *keydist);
+	bt_dev_dbg(hdev, "keydist 0x%x", *keydist);
 
 	if (*keydist & SMP_DIST_ENC_KEY) {
 		struct smp_cmd_encrypt_info enc;
@@ -1366,13 +1368,14 @@ static void smp_timeout(struct work_struct *work)
 					    security_timer.work);
 	struct l2cap_conn *conn = smp->conn;
 
-	BT_DBG("conn %p", conn);
+	bt_dev_dbg(conn->hcon->hdev, "conn %p", conn);
 
 	hci_disconnect(conn->hcon, HCI_ERROR_REMOTE_USER_TERM);
 }
 
 static struct smp_chan *smp_chan_create(struct l2cap_conn *conn)
 {
+	struct hci_conn *hcon = conn->hcon;
 	struct l2cap_chan *chan = conn->smp;
 	struct smp_chan *smp;
 
@@ -1382,13 +1385,13 @@ static struct smp_chan *smp_chan_create(struct l2cap_conn *conn)
 
 	smp->tfm_cmac = crypto_alloc_shash("cmac(aes)", 0, 0);
 	if (IS_ERR(smp->tfm_cmac)) {
-		BT_ERR("Unable to create CMAC crypto context");
+		bt_dev_err(hcon->hdev, "Unable to create CMAC crypto context");
 		goto zfree_smp;
 	}
 
 	smp->tfm_ecdh = crypto_alloc_kpp("ecdh", 0, 0);
 	if (IS_ERR(smp->tfm_ecdh)) {
-		BT_ERR("Unable to create ECDH crypto context");
+		bt_dev_err(hcon->hdev, "Unable to create ECDH crypto context");
 		goto free_shash;
 	}
 
@@ -1399,7 +1402,7 @@ static struct smp_chan *smp_chan_create(struct l2cap_conn *conn)
 
 	INIT_DELAYED_WORK(&smp->security_timer, smp_timeout);
 
-	hci_conn_hold(conn->hcon);
+	hci_conn_hold(hcon);
 
 	return smp;
 
@@ -1564,8 +1567,8 @@ static u8 sc_passkey_round(struct smp_chan *smp, u8 smp_op)
 		if (!hcon->out)
 			return 0;
 
-		BT_DBG("%s Starting passkey round %u", hdev->name,
-		       smp->passkey_round + 1);
+		bt_dev_dbg(hdev, "%s Starting passkey round %u", hdev->name,
+			   smp->passkey_round + 1);
 
 		SMP_ALLOW_CMD(smp, SMP_CMD_PAIRING_CONFIRM);
 
@@ -1625,7 +1628,7 @@ int smp_user_confirm_reply(struct hci_conn *hcon, u16 mgmt_op, __le32 passkey)
 	u32 value;
 	int err;
 
-	BT_DBG("");
+	bt_dev_dbg(conn->hcon->hdev, "");
 
 	if (!conn)
 		return -ENOTCONN;
@@ -1651,7 +1654,7 @@ int smp_user_confirm_reply(struct hci_conn *hcon, u16 mgmt_op, __le32 passkey)
 	case MGMT_OP_USER_PASSKEY_REPLY:
 		value = le32_to_cpu(passkey);
 		memset(smp->tk, 0, sizeof(smp->tk));
-		BT_DBG("PassKey: %d", value);
+		bt_dev_dbg(conn->hcon->hdev, "PassKey: %d", value);
 		put_unaligned_le32(value, smp->tk);
 		fallthrough;
 	case MGMT_OP_USER_CONFIRM_REPLY:
@@ -1733,7 +1736,7 @@ static u8 smp_cmd_pairing_req(struct l2cap_conn *conn, struct sk_buff *skb)
 	u8 key_size, auth, sec_level;
 	int ret;
 
-	BT_DBG("conn %p", conn);
+	bt_dev_dbg(hdev, "conn %p", conn);
 
 	if (skb->len < sizeof(*req))
 		return SMP_INVALID_PARAMS;
@@ -1887,7 +1890,7 @@ static u8 sc_send_public_key(struct smp_chan *smp)
 	}
 
 	if (hci_dev_test_flag(hdev, HCI_USE_DEBUG_KEYS)) {
-		BT_DBG("Using debug keys");
+		bt_dev_dbg(hdev, "Using debug keys");
 		if (set_ecdh_privkey(smp->tfm_ecdh, debug_sk))
 			return SMP_UNSPECIFIED;
 		memcpy(smp->local_pk, debug_pk, 64);
@@ -1924,7 +1927,7 @@ static u8 smp_cmd_pairing_rsp(struct l2cap_conn *conn, struct sk_buff *skb)
 	u8 key_size, auth;
 	int ret;
 
-	BT_DBG("conn %p", conn);
+	bt_dev_dbg(hdev, "conn %p", conn);
 
 	if (skb->len < sizeof(*rsp))
 		return SMP_INVALID_PARAMS;
@@ -2019,7 +2022,7 @@ static u8 sc_check_confirm(struct smp_chan *smp)
 {
 	struct l2cap_conn *conn = smp->conn;
 
-	BT_DBG("");
+	bt_dev_dbg(conn->hcon->hdev, "");
 
 	if (smp->method == REQ_PASSKEY || smp->method == DSP_PASSKEY)
 		return sc_passkey_round(smp, SMP_CMD_PAIRING_CONFIRM);
@@ -2078,8 +2081,10 @@ static u8 smp_cmd_pairing_confirm(struct l2cap_conn *conn, struct sk_buff *skb)
 {
 	struct l2cap_chan *chan = conn->smp;
 	struct smp_chan *smp = chan->data;
+	struct hci_conn *hcon = conn->hcon;
+	struct hci_dev *hdev = hcon->hdev;
 
-	BT_DBG("conn %p %s", conn, conn->hcon->out ? "master" : "slave");
+	bt_dev_dbg(hdev, "conn %p %s", conn, hcon->out ? "master" : "slave");
 
 	if (skb->len < sizeof(smp->pcnf))
 		return SMP_INVALID_PARAMS;
@@ -2094,7 +2099,7 @@ static u8 smp_cmd_pairing_confirm(struct l2cap_conn *conn, struct sk_buff *skb)
 		if (test_bit(SMP_FLAG_REMOTE_PK, &smp->flags))
 			return sc_check_confirm(smp);
 
-		BT_ERR("Unexpected SMP Pairing Confirm");
+		bt_dev_err(hdev, "Unexpected SMP Pairing Confirm");
 
 		ret = fixup_sc_false_positive(smp);
 		if (ret)
@@ -2125,7 +2130,7 @@ static u8 smp_cmd_pairing_random(struct l2cap_conn *conn, struct sk_buff *skb)
 	u32 passkey;
 	int err;
 
-	BT_DBG("conn %p", conn);
+	bt_dev_dbg(hcon->hdev, "conn %p", conn);
 
 	if (skb->len < sizeof(smp->rrnd))
 		return SMP_INVALID_PARAMS;
@@ -2284,7 +2289,7 @@ static u8 smp_cmd_security_req(struct l2cap_conn *conn, struct sk_buff *skb)
 	struct smp_chan *smp;
 	u8 sec_level, auth;
 
-	BT_DBG("conn %p", conn);
+	bt_dev_dbg(hdev, "conn %p", conn);
 
 	if (skb->len < sizeof(*rp))
 		return SMP_INVALID_PARAMS;
@@ -2347,7 +2352,8 @@ int smp_conn_security(struct hci_conn *hcon, __u8 sec_level)
 	__u8 authreq;
 	int ret;
 
-	BT_DBG("conn %p hcon %p level 0x%2.2x", conn, hcon, sec_level);
+	bt_dev_dbg(hcon->hdev, "conn %p hcon %p level 0x%2.2x", conn, hcon,
+		   sec_level);
 
 	/* This may be NULL if there's an unexpected disconnection */
 	if (!conn)
@@ -2483,7 +2489,7 @@ static int smp_cmd_encrypt_info(struct l2cap_conn *conn, struct sk_buff *skb)
 	struct l2cap_chan *chan = conn->smp;
 	struct smp_chan *smp = chan->data;
 
-	BT_DBG("conn %p", conn);
+	bt_dev_dbg(conn->hcon->hdev, "conn %p", conn);
 
 	if (skb->len < sizeof(*rp))
 		return SMP_INVALID_PARAMS;
@@ -2516,7 +2522,7 @@ static int smp_cmd_master_ident(struct l2cap_conn *conn, struct sk_buff *skb)
 	struct smp_ltk *ltk;
 	u8 authenticated;
 
-	BT_DBG("conn %p", conn);
+	bt_dev_dbg(hdev, "conn %p", conn);
 
 	if (skb->len < sizeof(*rp))
 		return SMP_INVALID_PARAMS;
@@ -2548,7 +2554,7 @@ static int smp_cmd_ident_info(struct l2cap_conn *conn, struct sk_buff *skb)
 	struct l2cap_chan *chan = conn->smp;
 	struct smp_chan *smp = chan->data;
 
-	BT_DBG("");
+	bt_dev_dbg(conn->hcon->hdev, "");
 
 	if (skb->len < sizeof(*info))
 		return SMP_INVALID_PARAMS;
@@ -2580,7 +2586,7 @@ static int smp_cmd_ident_addr_info(struct l2cap_conn *conn,
 	struct hci_conn *hcon = conn->hcon;
 	bdaddr_t rpa;
 
-	BT_DBG("");
+	bt_dev_dbg(hcon->hdev, "");
 
 	if (skb->len < sizeof(*info))
 		return SMP_INVALID_PARAMS;
@@ -2647,7 +2653,7 @@ static int smp_cmd_sign_info(struct l2cap_conn *conn, struct sk_buff *skb)
 	struct smp_chan *smp = chan->data;
 	struct smp_csrk *csrk;
 
-	BT_DBG("conn %p", conn);
+	bt_dev_dbg(conn->hcon->hdev, "conn %p", conn);
 
 	if (skb->len < sizeof(*rp))
 		return SMP_INVALID_PARAMS;
@@ -2727,7 +2733,7 @@ static int smp_cmd_public_key(struct l2cap_conn *conn, struct sk_buff *skb)
 	struct smp_cmd_pairing_confirm cfm;
 	int err;
 
-	BT_DBG("conn %p", conn);
+	bt_dev_dbg(hdev, "conn %p", conn);
 
 	if (skb->len < sizeof(*key))
 		return SMP_INVALID_PARAMS;
@@ -2791,7 +2797,7 @@ static int smp_cmd_public_key(struct l2cap_conn *conn, struct sk_buff *skb)
 
 	smp->method = sc_select_method(smp);
 
-	BT_DBG("%s selected method 0x%02x", hdev->name, smp->method);
+	bt_dev_dbg(hdev, "%s selected method 0x%02x", hdev->name, smp->method);
 
 	/* JUST_WORKS and JUST_CFM result in an unauthenticated key */
 	if (smp->method == JUST_WORKS || smp->method == JUST_CFM)
@@ -2866,7 +2872,7 @@ static int smp_cmd_dhkey_check(struct l2cap_conn *conn, struct sk_buff *skb)
 	u8 io_cap[3], r[16], e[16];
 	int err;
 
-	BT_DBG("conn %p", conn);
+	bt_dev_dbg(hcon->hdev, "conn %p", conn);
 
 	if (skb->len < sizeof(*check))
 		return SMP_INVALID_PARAMS;
@@ -2926,7 +2932,7 @@ static int smp_cmd_keypress_notify(struct l2cap_conn *conn,
 {
 	struct smp_cmd_keypress_notify *kp = (void *) skb->data;
 
-	BT_DBG("value 0x%02x", kp->value);
+	bt_dev_dbg(conn->hcon->hdev, "value 0x%02x", kp->value);
 
 	return 0;
 }
@@ -3023,7 +3029,7 @@ static int smp_sig_channel(struct l2cap_chan *chan, struct sk_buff *skb)
 		break;
 
 	default:
-		BT_DBG("Unknown command code 0x%2.2x", code);
+		bt_dev_dbg(hcon->hdev, "Unknown command code 0x%2.2x", code);
 		reason = SMP_CMD_NOTSUPP;
 		goto done;
 	}
@@ -3048,7 +3054,7 @@ static void smp_teardown_cb(struct l2cap_chan *chan, int err)
 {
 	struct l2cap_conn *conn = chan->conn;
 
-	BT_DBG("chan %p", chan);
+	bt_dev_dbg(conn->hcon->hdev, "chan %p", chan);
 
 	if (chan->data)
 		smp_chan_destroy(conn);
@@ -3065,7 +3071,7 @@ static void bredr_pairing(struct l2cap_chan *chan)
 	struct smp_cmd_pairing req;
 	struct smp_chan *smp;
 
-	BT_DBG("chan %p", chan);
+	bt_dev_dbg(hdev, "chan %p", chan);
 
 	/* Only new pairings are interesting */
 	if (!test_bit(HCI_CONN_NEW_LINK_KEY, &hcon->flags))
@@ -3112,7 +3118,7 @@ static void bredr_pairing(struct l2cap_chan *chan)
 
 	set_bit(SMP_FLAG_SC, &smp->flags);
 
-	BT_DBG("%s starting SMP over BR/EDR", hdev->name);
+	bt_dev_dbg(hdev, "%s starting SMP over BR/EDR", hdev->name);
 
 	/* Prepare and send the BR/EDR SMP Pairing Request */
 	build_bredr_pairing_cmd(smp, &req, NULL);
@@ -3130,7 +3136,7 @@ static void smp_resume_cb(struct l2cap_chan *chan)
 	struct l2cap_conn *conn = chan->conn;
 	struct hci_conn *hcon = conn->hcon;
 
-	BT_DBG("chan %p", chan);
+	bt_dev_dbg(hcon->hdev, "chan %p", chan);
 
 	if (hcon->type == ACL_LINK) {
 		bredr_pairing(chan);
@@ -3153,7 +3159,7 @@ static void smp_ready_cb(struct l2cap_chan *chan)
 	struct l2cap_conn *conn = chan->conn;
 	struct hci_conn *hcon = conn->hcon;
 
-	BT_DBG("chan %p", chan);
+	bt_dev_dbg(hcon->hdev, "chan %p", chan);
 
 	/* No need to call l2cap_chan_hold() here since we already own
 	 * the reference taken in smp_new_conn_cb(). This is just the
@@ -3171,7 +3177,7 @@ static int smp_recv_cb(struct l2cap_chan *chan, struct sk_buff *skb)
 {
 	int err;
 
-	BT_DBG("chan %p", chan);
+	bt_dev_dbg(chan->conn->hcon->hdev, "chan %p", chan);
 
 	err = smp_sig_channel(chan, skb);
 	if (err) {
@@ -3223,7 +3229,7 @@ static inline struct l2cap_chan *smp_new_conn_cb(struct l2cap_chan *pchan)
 {
 	struct l2cap_chan *chan;
 
-	BT_DBG("pchan %p", pchan);
+	bt_dev_dbg(pchan->conn->hcon->hdev, "pchan %p", pchan);
 
 	chan = l2cap_chan_create();
 	if (!chan)
@@ -3244,7 +3250,7 @@ static inline struct l2cap_chan *smp_new_conn_cb(struct l2cap_chan *pchan)
 	 */
 	atomic_set(&chan->nesting, L2CAP_NESTING_SMP);
 
-	BT_DBG("created chan %p", chan);
+	bt_dev_dbg(pchan->conn->hcon->hdev, "created chan %p", chan);
 
 	return chan;
 }
@@ -3285,14 +3291,14 @@ static struct l2cap_chan *smp_add_cid(struct hci_dev *hdev, u16 cid)
 
 	tfm_cmac = crypto_alloc_shash("cmac(aes)", 0, 0);
 	if (IS_ERR(tfm_cmac)) {
-		BT_ERR("Unable to create CMAC crypto context");
+		bt_dev_err(hdev, "Unable to create CMAC crypto context");
 		kfree_sensitive(smp);
 		return ERR_CAST(tfm_cmac);
 	}
 
 	tfm_ecdh = crypto_alloc_kpp("ecdh", 0, 0);
 	if (IS_ERR(tfm_ecdh)) {
-		BT_ERR("Unable to create ECDH crypto context");
+		bt_dev_err(hdev, "Unable to create ECDH crypto context");
 		crypto_free_shash(tfm_cmac);
 		kfree_sensitive(smp);
 		return ERR_CAST(tfm_ecdh);
@@ -3348,7 +3354,7 @@ static void smp_del_chan(struct l2cap_chan *chan)
 {
 	struct smp_dev *smp;
 
-	BT_DBG("chan %p", chan);
+	bt_dev_dbg(chan->conn->hcon->hdev, "chan %p", chan);
 
 	smp = chan->data;
 	if (smp) {
@@ -3391,7 +3397,7 @@ int smp_register(struct hci_dev *hdev)
 {
 	struct l2cap_chan *chan;
 
-	BT_DBG("%s", hdev->name);
+	bt_dev_dbg(hdev, "%s", hdev->name);
 
 	/* If the controller does not support Low Energy operation, then
 	 * there is also no need to register any SMP channel.
Signature · 1 line
2.29.2
#1 lore raw

This is automated email and please do not reply to this email!

Dear submitter,

Thank you for submitting the patches to the linux bluetooth mailing list. This is a CI test results with your patch series:
PW Link:https://patchwork.kernel.org/project/bluetooth/list/?series=446611

---Test result---

##############################

    Test: CheckPatch - PASS
    

    ##############################
    Test: CheckGitLint - PASS
    

    ##############################
    Test: CheckBuildK - PASS
    

    ##############################
    Test: CheckTestRunner: Setup - PASS
    

    ##############################
    Test: CheckTestRunner: l2cap-tester - PASS
    Total: 40, Passed: 34 (85.0%), Failed: 0, Not Run: 6

    ##############################
    Test: CheckTestRunner: bnep-tester - PASS
    Total: 1, Passed: 1 (100.0%), Failed: 0, Not Run: 0

    ##############################
    Test: CheckTestRunner: mgmt-tester - FAIL
    Total: 416, Passed: 399 (95.9%), Failed: 3, Not Run: 14

    ##############################
    Test: CheckTestRunner: rfcomm-tester - PASS
    Total: 9, Passed: 9 (100.0%), Failed: 0, Not Run: 0

    ##############################
    Test: CheckTestRunner: sco-tester - PASS
    Total: 8, Passed: 8 (100.0%), Failed: 0, Not Run: 0

    ##############################
    Test: CheckTestRunner: smp-tester - PASS
    Total: 8, Passed: 8 (100.0%), Failed: 0, Not Run: 0

    ##############################
    Test: CheckTestRunner: userchan-tester - PASS
    Total: 3, Passed: 3 (100.0%), Failed: 0, Not Run: 0

---
Regards,
Linux Bluetooth

c[?7lSeaBIOS (version 1.13.0-1ubuntu1.1) Booting from ROM..c[?7learly console in extract_kernel
input_data: 0x0000000001e732e0
input_len: 0x000000000035333d
output: 0x0000000001000000
output_len: 0x00000000011944cc
kernel_total_size: 0x0000000001030000
needed_size: 0x0000000001200000
trampoline_32bit: 0x000000000009d000
Physical KASLR using RDTSC...
Virtual KASLR using RDTSC...

Decompressing Linux... Parsing ELF... Performing relocations... done.
Booting the kernel.
Linux version 5.11.0-g6c5a4024817a (root@4d611f9ce9ba) (gcc (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0, GNU ld (GNU Binutils for Ubuntu) 2.34) #2 Fri Mar 12 00:16:21 UTC 2021
Command line: console=ttyS0,115200n8 earlyprintk=serial rootfstype=9p rootflags=trans=virtio,version=9p2000.L acpi=off pci=noacpi noapic quiet ro init=/github/workspace/bluez/tools/test-runner TESTHOME=/github/workspace TESTDBUS=0 TESTMONITOR=0 TESTDEVS=0 TESTAUTO=0 TESTARGS='/github/workspace/bluez/tools/l2cap-tester' x86/fpu: x87 FPU will use FXSAVE
BIOS-provided physical RAM map:
BIOS-e820: [mem 0x0000000000000000-0x000000000009fbff] usable
BIOS-e820: [mem 0x000000000009fc00-0x000000000009ffff] reserved
BIOS-e820: [mem 0x00000000000f0000-0x00000000000fffff] reserved
BIOS-e820: [mem 0x0000000000100000-0x000000000bffdfff] usable
BIOS-e820: [mem 0x000000000bffe000-0x000000000bffffff] reserved
BIOS-e820: [mem 0x00000000b0000000-0x00000000bfffffff] reserved
BIOS-e820: [mem 0x00000000fed1c000-0x00000000fed1ffff] reserved
BIOS-e820: [mem 0x00000000fffc0000-0x00000000ffffffff] reserved
printk: bootconsole [earlyser0] enabled
Memory KASLR using RDTSC...
Poking KASLR using RDTSC...
Mounting sysfs to /sys
Mounting proc to /proc
Mounting devtmpfs to /dev
Creating /dev/pts
Mounting devpts to /dev/pts
Creating /dev/shm
Mounting tmpfs to /dev/shm
Mounting tmpfs to /run
Mounting tmpfs to /tmp
Mounting debugfs to /sys/kernel/debug
Linking /dev/fd to /proc/self/fd
Linking /dev/stdin to /proc/self/fd/0
Linking /dev/stdout to /proc/self/fd/1
Linking /dev/stderr to /proc/self/fd/2
Creating new session group leader
Setting controlling terminal
Creating /var/lib/bluetooth
Failed to create filesystem: No such file or directory
Creating /etc/bluetooth
Failed to create filesystem: No such file or directory
Creating /etc/dbus-1
Failed to create filesystem: No such file or directory
Creating /usr/share/dbus-1
Running command /github/workspace/bluez/tools/l2cap-tester
Changing into directory /github/workspace
New process 38 created

Basic L2CAP Socket - Success - init
Read Index List callback

    Status: 0x00
  New hciemu instance created
  Index Added callback
    Index: 0x0000
  Read Info callback
    Status: 0x00
    Address: 00:AA:01:00:00:00
    Version: 0x05
    Manufacturer: 0x003f
    Supported settings: 0x000110ff
    Current settings: 0x00000080
    Class: 0x000000
    Name: 
    Short name: 

Basic L2CAP Socket - Success - setup
Powering on controller
Controller powered on
Client set connectable status 0x00
Basic L2CAP Socket - Success - setup complete
Basic L2CAP Socket - Success - run
Basic L2CAP Socket - Success - test passed
Basic L2CAP Socket - Success - teardown
Index Removed callback

    Index: 0x0000

Basic L2CAP Socket - Success - teardown complete
Basic L2CAP Socket - Success - done

Non-connected getpeername - Failure - init
Read Index List callback

    Status: 0x00
  New hciemu instance created
  Index Added callback
    Index: 0x0000
  Read Info callback
    Status: 0x00
    Address: 00:AA:01:00:00:00
    Version: 0x05
    Manufacturer: 0x003f
    Supported settings: 0x000110ff
    Current settings: 0x00000080
    Class: 0x000000
    Name: 
    Short name: 

Non-connected getpeername - Failure - setup
Powering on controller
Controller powered on
Client set connectable status 0x00
Non-connected getpeername - Failure - setup complete Non-connected getpeername - Failure - run Non-connected getpeername - Failure - test passed Non-connected getpeername - Failure - teardown
Index Removed callback

    Index: 0x0000

Non-connected getpeername - Failure - teardown complete Non-connected getpeername - Failure - done

L2CAP BR/EDR Client - Success - init
Read Index List callback

    Status: 0x00
  New hciemu instance created
  Index Added callback
    Index: 0x0000
  Read Info callback
    Status: 0x00
    Address: 00:AA:01:00:00:00
    Version: 0x05
    Manufacturer: 0x003f
    Supported settings: 0x000110ff
    Current settings: 0x00000080
    Class: 0x000000
    Name: 
    Short name: 

L2CAP BR/EDR Client - Success - setup
Powering on controller
Controller powered on
Client set connectable status 0x00
L2CAP BR/EDR Client - Success - setup complete
L2CAP BR/EDR Client - Success - run
Connect in progress
Successfully connected
L2CAP BR/EDR Client - Success - test passed
L2CAP BR/EDR Client - Success - teardown
Index Removed callback

    Index: 0x0000

L2CAP BR/EDR Client - Success - teardown complete
L2CAP BR/EDR Client - Success - done

L2CAP BR/EDR Client SSP - Success 1 - init
Read Index List callback

    Status: 0x00
  New hciemu instance created
  Index Added callback
    Index: 0x0000
  Read Info callback
    Status: 0x00
    Address: 00:AA:01:00:00:00
    Version: 0x05
    Manufacturer: 0x003f
    Supported settings: 0x000110ff
    Current settings: 0x00000080
    Class: 0x000000
    Name: 
    Short name: 

L2CAP BR/EDR Client SSP - Success 1 - setup
Powering on controller
Controller powered on
Client set connectable status 0x00
Client enable SSP status 0x00
L2CAP BR/EDR Client SSP - Success 1 - setup complete L2CAP BR/EDR Client SSP - Success 1 - run
Connect in progress
Successfully connected
L2CAP BR/EDR Client SSP - Success 1 - test passed L2CAP BR/EDR Client SSP - Success 1 - teardown
Index Removed callback

    Index: 0x0000

L2CAP BR/EDR Client SSP - Success 1 - teardown complete L2CAP BR/EDR Client SSP - Success 1 - done

L2CAP BR/EDR Client SSP - Success 2 - init
Read Index List callback

    Status: 0x00
  New hciemu instance created
  Index Added callback
    Index: 0x0000
  Read Info callback
    Status: 0x00
    Address: 00:AA:01:00:00:00
    Version: 0x05
    Manufacturer: 0x003f
    Supported settings: 0x000110ff
    Current settings: 0x00000080
    Class: 0x000000
    Name: 
    Short name: 

L2CAP BR/EDR Client SSP - Success 2 - setup
Powering on controller
Controller powered on
Client set connectable status 0x00
Client enable SSP status 0x00
L2CAP BR/EDR Client SSP - Success 2 - setup complete L2CAP BR/EDR Client SSP - Success 2 - run
Connect in progress
Successfully connected
L2CAP BR/EDR Client SSP - Success 2 - test passed L2CAP BR/EDR Client SSP - Success 2 - teardown
Index Removed callback

    Index: 0x0000

L2CAP BR/EDR Client SSP - Success 2 - teardown complete L2CAP BR/EDR Client SSP - Success 2 - done

L2CAP BR/EDR Client PIN Code - Success - init
Read Index List callback

    Status: 0x00
  New hciemu instance created
  Index Added callback
    Index: 0x0000
  Read Info callback
    Status: 0x00
    Address: 00:AA:01:00:00:00
    Version: 0x05
    Manufacturer: 0x003f
    Supported settings: 0x000110ff
    Current settings: 0x00000080
    Class: 0x000000
    Name: 
    Short name: 

L2CAP BR/EDR Client PIN Code - Success - setup
Powering on controller
Controller powered on
Client set connectable status 0x00
L2CAP BR/EDR Client PIN Code - Success - setup complete L2CAP BR/EDR Client PIN Code - Success - run
Connect in progress
Successfully connected
L2CAP BR/EDR Client PIN Code - Success - test passed L2CAP BR/EDR Client PIN Code - Success - teardown
Index Removed callback

    Index: 0x0000

L2CAP BR/EDR Client PIN Code - Success - teardown complete L2CAP BR/EDR Client PIN Code - Success - done

L2CAP BR/EDR Client - Read Success - init
Read Index List callback

    Status: 0x00
  New hciemu instance created
  Index Added callback
    Index: 0x0000
  Read Info callback
    Status: 0x00
    Address: 00:AA:01:00:00:00
    Version: 0x05
    Manufacturer: 0x003f
    Supported settings: 0x000110ff
    Current settings: 0x00000080
    Class: 0x000000
    Name: 
    Short name: 

L2CAP BR/EDR Client - Read Success - setup
Powering on controller
Controller powered on
Client set connectable status 0x00
L2CAP BR/EDR Client - Read Success - setup complete L2CAP BR/EDR Client - Read Success - run
Connect in progress
Successfully connected
L2CAP BR/EDR Client - Read Success - test passed L2CAP BR/EDR Client - Read Success - teardown
Index Removed callback

    Index: 0x0000

L2CAP BR/EDR Client - Read Success - teardown complete L2CAP BR/EDR Client - Read Success - done

L2CAP BR/EDR Client - Write Success - init
Read Index List callback

    Status: 0x00
  New hciemu instance created
  Index Added callback
    Index: 0x0000
  Read Info callback
    Status: 0x00
    Address: 00:AA:01:00:00:00
    Version: 0x05
    Manufacturer: 0x003f
    Supported settings: 0x000110ff
    Current settings: 0x00000080
    Class: 0x000000
    Name: 
    Short name: 

L2CAP BR/EDR Client - Write Success - setup
Powering on controller
Controller powered on
Client set connectable status 0x00
L2CAP BR/EDR Client - Write Success - setup complete L2CAP BR/EDR Client - Write Success - run
Connect in progress
Successfully connected
L2CAP BR/EDR Client - Write Success - test passed L2CAP BR/EDR Client - Write Success - teardown
Index Removed callback

    Index: 0x0000

L2CAP BR/EDR Client - Write Success - teardown complete L2CAP BR/EDR Client - Write Success - done

L2CAP BR/EDR Client - Invalid PSM 1 - init
Read Index List callback

    Status: 0x00
  New hciemu instance created
  Index Added callback
    Index: 0x0000
  Read Info callback
    Status: 0x00
    Address: 00:AA:01:00:00:00
    Version: 0x05
    Manufacturer: 0x003f
    Supported settings: 0x000110ff
    Current settings: 0x00000080
    Class: 0x000000
    Name: 
    Short name: 

L2CAP BR/EDR Client - Invalid PSM 1 - setup
Powering on controller
Controller powered on
Client set connectable status 0x00
L2CAP BR/EDR Client - Invalid PSM 1 - setup complete L2CAP BR/EDR Client - Invalid PSM 1 - run
Connect in progress
Connect failed: Connection refused (111)
L2CAP BR/EDR Client - Invalid PSM 1 - test passed L2CAP BR/EDR Client - Invalid PSM 1 - teardown
Index Removed callback

    Index: 0x0000

L2CAP BR/EDR Client - Invalid PSM 1 - teardown complete L2CAP BR/EDR Client - Invalid PSM 1 - done

L2CAP BR/EDR Client - Invalid PSM 2 - init
Read Index List callback

    Status: 0x00
  New hciemu instance created
  Index Added callback
    Index: 0x0000
  Read Info callback
    Status: 0x00
    Address: 00:AA:01:00:00:00
    Version: 0x05
    Manufacturer: 0x003f
    Supported settings: 0x000110ff
    Current settings: 0x00000080
    Class: 0x000000
    Name: 
    Short name: 

L2CAP BR/EDR Client - Invalid PSM 2 - setup
Powering on controller
Controller powered on
Client set connectable status 0x00
L2CAP BR/EDR Client - Invalid PSM 2 - setup complete L2CAP BR/EDR Client - Invalid PSM 2 - run
Connect in progress
Connect failed: Connection refused (111)
L2CAP BR/EDR Client - Invalid PSM 2 - test passed L2CAP BR/EDR Client - Invalid PSM 2 - teardown
Index Removed callback

    Index: 0x0000

L2CAP BR/EDR Client - Invalid PSM 2 - teardown complete L2CAP BR/EDR Client - Invalid PSM 2 - done

L2CAP BR/EDR Client - Invalid PSM 3 - init
Read Index List callback

    Status: 0x00
  New hciemu instance created
  Index Added callback
    Index: 0x0000
  Read Info callback
    Status: 0x00
    Address: 00:AA:01:00:00:00
    Version: 0x05
    Manufacturer: 0x003f
    Supported settings: 0x000110ff
    Current settings: 0x00000080
    Class: 0x000000
    Name: 
    Short name: 

L2CAP BR/EDR Client - Invalid PSM 3 - setup
Powering on controller
Controller powered on
Client set connectable status 0x00
Client enable SSP status 0x00
L2CAP BR/EDR Client - Invalid PSM 3 - setup complete L2CAP BR/EDR Client - Invalid PSM 3 - run
Connect in progress
Connect failed: Connection refused (111)
L2CAP BR/EDR Client - Invalid PSM 3 - test passed L2CAP BR/EDR Client - Invalid PSM 3 - teardown
Index Removed callback

    Index: 0x0000

L2CAP BR/EDR Client - Invalid PSM 3 - teardown complete L2CAP BR/EDR Client - Invalid PSM 3 - done

L2CAP BR/EDR Client - Socket Shut WR Success - init
Read Index List callback

    Status: 0x00
  New hciemu instance created
  Index Added callback
    Index: 0x0000
  Read Info callback
    Status: 0x00
    Address: 00:AA:01:00:00:00
    Version: 0x05
    Manufacturer: 0x003f
    Supported settings: 0x000110ff
    Current settings: 0x00000080
    Class: 0x000000
    Name: 
    Short name: 

L2CAP BR/EDR Client - Socket Shut WR Success - setup
Powering on controller
Controller powered on
Client set connectable status 0x00
L2CAP BR/EDR Client - Socket Shut WR Success - setup complete L2CAP BR/EDR Client - Socket Shut WR Success - run
Connect in progress
Successfully connected
L2CAP BR/EDR Client - Socket Shut WR Success - test passed L2CAP BR/EDR Client - Socket Shut WR Success - teardown
Index Removed callback

    Index: 0x0000

L2CAP BR/EDR Client - Socket Shut WR Success - teardown complete L2CAP BR/EDR Client - Socket Shut WR Success - done

L2CAP BR/EDR Server - Success - init
Read Index List callback

    Status: 0x00
  New hciemu instance created
  Index Added callback
    Index: 0x0000
  Read Info callback
    Status: 0x00
    Address: 00:AA:01:00:00:00
    Version: 0x05
    Manufacturer: 0x003f
    Supported settings: 0x000110ff
    Current settings: 0x00000080
    Class: 0x000000
    Name: 
    Short name: 

L2CAP BR/EDR Server - Success - setup
Powering on controller
Controller powered on
L2CAP BR/EDR Server - Success - setup complete
L2CAP BR/EDR Server - Success - run
Listening for connections
New client connection with handle 0x002a
Sending L2CAP Request from client
Client received response code 0x03
L2CAP BR/EDR Server - Success - test passed
Successfully connected
L2CAP BR/EDR Server - Success - test passed
L2CAP BR/EDR Server - Success - teardown
Index Removed callback

    Index: 0x0000

L2CAP BR/EDR Server - Success - teardown complete
L2CAP BR/EDR Server - Success - done

L2CAP BR/EDR Server - Read Success - init
Read Index List callback

    Status: 0x00
  New hciemu instance created
  Index Added callback
    Index: 0x0000
  Read Info callback
    Status: 0x00
    Address: 00:AA:01:00:00:00
    Version: 0x05
    Manufacturer: 0x003f
    Supported settings: 0x000110ff
    Current settings: 0x00000080
    Class: 0x000000
    Name: 
    Short name: 

L2CAP BR/EDR Server - Read Success - setup
Powering on controller
Controller powered on
L2CAP BR/EDR Server - Read Success - setup complete L2CAP BR/EDR Server - Read Success - run
Listening for connections
New client connection with handle 0x002a Sending L2CAP Request from client
Client received response code 0x03
L2CAP BR/EDR Server - Read Success - test passed L2CAP BR/EDR Server - Read Success - teardown
Index Removed callback

    Index: 0x0000

L2CAP BR/EDR Server - Read Success - teardown complete L2CAP BR/EDR Server - Read Success - done

L2CAP BR/EDR Server - Write Success - init
Read Index List callback

    Status: 0x00
  New hciemu instance created
  Index Added callback
    Index: 0x0000
  Read Info callback
    Status: 0x00
    Address: 00:AA:01:00:00:00
    Version: 0x05
    Manufacturer: 0x003f
    Supported settings: 0x000110ff
    Current settings: 0x00000080
    Class: 0x000000
    Name: 
    Short name: 

L2CAP BR/EDR Server - Write Success - setup
Powering on controller
Controller powered on
L2CAP BR/EDR Server - Write Success - setup complete L2CAP BR/EDR Server - Write Success - run
Listening for connections
New client connection with handle 0x002a Sending L2CAP Request from client
Client received response code 0x03
L2CAP BR/EDR Server - Write Success - test passed L2CAP BR/EDR Server - Write Success - teardown
Index Removed callback

    Index: 0x0000

L2CAP BR/EDR Server - Write Success - teardown complete L2CAP BR/EDR Server - Write Success - done

L2CAP BR/EDR Server - Security Block - init
Read Index List callback

    Status: 0x00
  New hciemu instance created
  Index Added callback
    Index: 0x0000
  Read Info callback
    Status: 0x00
    Address: 00:AA:01:00:00:00
    Version: 0x05
    Manufacturer: 0x003f
    Supported settings: 0x000110ff
    Current settings: 0x00000080
    Class: 0x000000
    Name: 
    Short name: 

L2CAP BR/EDR Server - Security Block - setup
Powering on controller
Controller powered on
Server enable SSP status 0x00
L2CAP BR/EDR Server - Security Block - setup complete L2CAP BR/EDR Server - Security Block - run
Listening for connections
New client connection with handle 0x002a Sending L2CAP Request from client
Client received response code 0x03
L2CAP BR/EDR Server - Security Block - test passed L2CAP BR/EDR Server - Security Block - teardown
Index Removed callback

    Index: 0x0000

L2CAP BR/EDR Server - Security Block - teardown complete L2CAP BR/EDR Server - Security Block - done

L2CAP BR/EDR Server - Invalid PSM - init
Read Index List callback

    Status: 0x00
  New hciemu instance created
  Index Added callback
    Index: 0x0000
  Read Info callback
    Status: 0x00
    Address: 00:AA:01:00:00:00
    Version: 0x05
    Manufacturer: 0x003f
    Supported settings: 0x000110ff
    Current settings: 0x00000080
    Class: 0x000000
    Name: 
    Short name: 

L2CAP BR/EDR Server - Invalid PSM - setup
Powering on controller
Controller powered on
L2CAP BR/EDR Server - Invalid PSM - setup complete L2CAP BR/EDR Server - Invalid PSM - run
New client connection with handle 0x002a Sending L2CAP Request from client
Client received response code 0x03
L2CAP BR/EDR Server - Invalid PSM - test passed L2CAP BR/EDR Server - Invalid PSM - teardown
Index Removed callback

    Index: 0x0000

L2CAP BR/EDR Server - Invalid PSM - teardown complete L2CAP BR/EDR Server - Invalid PSM - done

L2CAP BR/EDR Server - Invalid PDU - init
Read Index List callback

    Status: 0x00
  New hciemu instance created
  Index Added callback
    Index: 0x0000
  Read Info callback
    Status: 0x00
    Address: 00:AA:01:00:00:00
    Version: 0x05
    Manufacturer: 0x003f
    Supported settings: 0x000110ff
    Current settings: 0x00000080
    Class: 0x000000
    Name: 
    Short name: 

L2CAP BR/EDR Server - Invalid PDU - setup
Powering on controller
Controller powered on
L2CAP BR/EDR Server - Invalid PDU - setup complete L2CAP BR/EDR Server - Invalid PDU - run
New client connection with handle 0x002a Sending L2CAP Request from client
Bluetooth: Wrong link type (-71)
Client received response code 0x01
L2CAP BR/EDR Server - Invalid PDU - test passed L2CAP BR/EDR Server - Invalid PDU - teardown
Index Removed callback

    Index: 0x0000

L2CAP BR/EDR Server - Invalid PDU - teardown complete L2CAP BR/EDR Server - Invalid PDU - done

L2CAP BR/EDR Server - Invalid Disconnect CID - init
Read Index List callback

    Status: 0x00
  New hciemu instance created
  Index Added callback
    Index: 0x0000
  Read Info callback
    Status: 0x00
    Address: 00:AA:01:00:00:00
    Version: 0x05
    Manufacturer: 0x003f
    Supported settings: 0x000110ff
    Current settings: 0x00000080
    Class: 0x000000
    Name: 
    Short name: 

L2CAP BR/EDR Server - Invalid Disconnect CID - setup
Powering on controller
Controller powered on
L2CAP BR/EDR Server - Invalid Disconnect CID - setup complete L2CAP BR/EDR Server - Invalid Disconnect CID - run
New client connection with handle 0x002a
Sending L2CAP Request from client
Client received response code 0x01
L2CAP BR/EDR Server - Invalid Disconnect CID - test passed L2CAP BR/EDR Server - Invalid Disconnect CID - teardown
Index Removed callback

    Index: 0x0000

L2CAP BR/EDR Server - Invalid Disconnect CID - teardown complete L2CAP BR/EDR Server - Invalid Disconnect CID - done

L2CAP BR/EDR Server - Invalid Config CID - init
Read Index List callback

    Status: 0x00
  New hciemu instance created
  Index Added callback
    Index: 0x0000
  Read Info callback
    Status: 0x00
    Address: 00:AA:01:00:00:00
    Version: 0x05
    Manufacturer: 0x003f
    Supported settings: 0x000110ff
    Current settings: 0x00000080
    Class: 0x000000
    Name: 
    Short name: 

L2CAP BR/EDR Server - Invalid Config CID - setup
Powering on controller
Controller powered on
L2CAP BR/EDR Server - Invalid Config CID - setup complete L2CAP BR/EDR Server - Invalid Config CID - run
New client connection with handle 0x002a Sending L2CAP Request from client
Client received response code 0x01
L2CAP BR/EDR Server - Invalid Config CID - test passed L2CAP BR/EDR Server - Invalid Config CID - teardown
Index Removed callback

    Index: 0x0000

L2CAP BR/EDR Server - Invalid Config CID - teardown complete L2CAP BR/EDR Server - Invalid Config CID - done

L2CAP LE Client - Success - init
Read Index List callback

    Status: 0x00
  New hciemu instance created
  Index Added callback
    Index: 0x0000
  Read Info callback
    Status: 0x00
    Address: 00:AA:01:00:00:00
    Version: 0x09
    Manufacturer: 0x003f
    Supported settings: 0x0001be1b
    Current settings: 0x00000200
    Class: 0x000000
    Name: 
    Short name: 

L2CAP LE Client - Success - setup
Powering on controller
Controller powered on
Client set connectable status 0x00
L2CAP LE Client - Success - setup complete
L2CAP LE Client - Success - run
Connect in progress
Successfully connected
L2CAP LE Client - Success - test passed
L2CAP LE Client - Success - teardown
Index Removed callback

    Index: 0x0000

L2CAP LE Client - Success - teardown complete
L2CAP LE Client - Success - done

L2CAP LE Client, Direct Advertising - Success - init
Read Index List callback

    Status: 0x00
  New hciemu instance created
  Index Added callback
    Index: 0x0000
  Read Info callback
    Status: 0x00
    Address: 00:AA:01:00:00:00
    Version: 0x09
    Manufacturer: 0x003f
    Supported settings: 0x0001be1b
    Current settings: 0x00000200
    Class: 0x000000
    Name: 
    Short name: 

L2CAP LE Client, Direct Advertising - Success - setup
Powering on controller
Controller powered on
Client set connectable status 0x00
L2CAP LE Client, Direct Advertising - Success - setup complete L2CAP LE Client, Direct Advertising - Success - run
Connect in progress
Received advertising parameters HCI command
L2CAP LE Client, Direct Advertising - Success - test passed L2CAP LE Client, Direct Advertising - Success - teardown
Index Removed callback

    Index: 0x0000

L2CAP LE Client, Direct Advertising - Success - teardown complete L2CAP LE Client, Direct Advertising - Success - done

L2CAP LE Client SMP - Success - init
Read Index List callback

    Status: 0x00
  New hciemu instance created
  Index Added callback
    Index: 0x0000
  Read Info callback
    Status: 0x00
    Address: 00:AA:01:00:00:00
    Version: 0x09
    Manufacturer: 0x003f
    Supported settings: 0x0001be1b
    Current settings: 0x00000200
    Class: 0x000000
    Name: 
    Short name: 

L2CAP LE Client SMP - Success - setup
Powering on controller
Controller powered on
Client set connectable status 0x00
L2CAP LE Client SMP - Success - setup complete
L2CAP LE Client SMP - Success - run
Connect in progress
Successfully connected
L2CAP LE Client SMP - Success - test passed
Bluetooth: hci0: link tx timeout
L2CAP LE Client SMP - Success - teardown
Index Removed callback

    Index: 0x0000

L2CAP LE Client SMP - Success - teardown complete
L2CAP LE Client SMP - Success - done

L2CAP LE Client - Command Reject - init
Read Index List callback

    Status: 0x00
  New hciemu instance created
  Index Added callback
    Index: 0x0000
  Read Info callback
    Status: 0x00
    Address: 00:AA:01:00:00:00
    Version: 0x09
    Manufacturer: 0x003f
    Supported settings: 0x0001be1b
    Current settings: 0x00000200
    Class: 0x000000
    Name: 
    Short name: 

L2CAP LE Client - Command Reject - setup
Powering on controller
Controller powered on
Client set connectable status 0x00
L2CAP LE Client - Command Reject - setup complete
L2CAP LE Client - Command Reject - run
Connect in progress
New connection with handle 0x002a
Connect failed: Connection refused (111)
L2CAP LE Client - Command Reject - test passed
L2CAP LE Client - Command Reject - teardown
Index Removed callback

    Index: 0x0000

L2CAP LE Client - Command Reject - teardown complete L2CAP LE Client - Command Reject - done

L2CAP LE Client - Connection Reject - init
Read Index List callback

    Status: 0x00
  New hciemu instance created
  Index Added callback
    Index: 0x0000
  Read Info callback
    Status: 0x00
    Address: 00:AA:01:00:00:00
    Version: 0x05
    Manufacturer: 0x003f
    Supported settings: 0x000110ff
    Current settings: 0x00000080
    Class: 0x000000
    Name: 
    Short name: 

L2CAP LE Client - Connection Reject - setup
Powering on controller
Controller powered on
Client set connectable status 0x00
L2CAP LE Client - Connection Reject - setup complete L2CAP LE Client - Connection Reject - run
Can't connect socket: No route to host (113)
L2CAP LE Client - Connection Reject - test passed L2CAP LE Client - Connection Reject - teardown
Index Removed callback

    Index: 0x0000

L2CAP LE Client - Connection Reject - teardown complete L2CAP LE Client - Connection Reject - done

L2CAP LE Client - Close socket 1 - init
Read Index List callback

    Status: 0x00
  New hciemu instance created
  Index Added callback
    Index: 0x0000
  Read Info callback
    Status: 0x00
    Address: 00:AA:01:00:00:00
    Version: 0x09
    Manufacturer: 0x003f
    Supported settings: 0x0001be1b
    Current settings: 0x00000200
    Class: 0x000000
    Name: 
    Short name: 

L2CAP LE Client - Close socket 1 - setup
Powering on controller
Controller powered on
Client set connectable status 0x00
L2CAP LE Client - Close socket 1 - setup complete
L2CAP LE Client - Close socket 1 - run
Connect in progress, sk = 13
Will close socket during scan phase...
Checking whether scan was properly stopped...
L2CAP LE Client - Close socket 1 - test passed
L2CAP LE Client - Close socket 1 - teardown
Index Removed callback

    Index: 0x0000

L2CAP LE Client - Close socket 1 - teardown complete L2CAP LE Client - Close socket 1 - done

L2CAP LE Client - Close socket 2 - init
Read Index List callback

    Status: 0x00
  New hciemu instance created
  Index Added callback
    Index: 0x0000
  Read Info callback
    Status: 0x00
    Address: 00:AA:01:00:00:00
    Version: 0x09
    Manufacturer: 0x003f
    Supported settings: 0x0001be1b
    Current settings: 0x00000200
    Class: 0x000000
    Name: 
    Short name: 

L2CAP LE Client - Close socket 2 - setup
Powering on controller
Controller powered on
L2CAP LE Client - Close socket 2 - setup complete
L2CAP LE Client - Close socket 2 - run
Connect in progress, sk = 13
Client set connectable status 0x00
Client set connectable status 0x00
L2CAP LE Client - Close socket 2 - test passed
L2CAP LE Client - Close socket 2 - teardown
Index Removed callback

    Index: 0x0000

L2CAP LE Client - Close socket 2 - teardown complete L2CAP LE Client - Close socket 2 - done

L2CAP LE Client - Open two sockets - init
Read Index List callback

    Status: 0x00
  New hciemu instance created
  Index Added callback
    Index: 0x0000
  Read Info callback
    Status: 0x00
    Address: 00:AA:01:00:00:00
    Version: 0x09
    Manufacturer: 0x003f
    Supported settings: 0x0001be1b
    Current settings: 0x00000200
    Class: 0x000000
    Name: 
    Short name: 

L2CAP LE Client - Open two sockets - setup
Powering on controller
Controller powered on
L2CAP LE Client - Open two sockets - setup complete L2CAP LE Client - Open two sockets - run
Connect in progress, sk = 13
HCI Command 0x200b length 7
HCI Command 0x200c length 2
Connect in progress, sk = 14
HCI Command 0x200c length 2
Client set connectable status 0x00
HCI Command 0x200d length 25
HCI Command 0x2016 length 2
Successfully connected
Successfully connected
L2CAP LE Client - Open two sockets - test passed

(l2cap-tester:38): GLib-WARNING **: 00:16:30.148: Invalid file descriptor. L2CAP LE Client - Open two sockets - teardown
Index Removed callback

    Index: 0x0000

L2CAP LE Client - Open two sockets - teardown complete L2CAP LE Client - Open two sockets - done

L2CAP LE Client - Open two sockets close one - init
Read Index List callback

    Status: 0x00
  New hciemu instance created
  Index Added callback
    Index: 0x0000
  Read Info callback
    Status: 0x00
    Address: 00:AA:01:00:00:00
    Version: 0x09
    Manufacturer: 0x003f
    Supported settings: 0x0001be1b
    Current settings: 0x00000200
    Class: 0x000000
    Name: 
    Short name: 

L2CAP LE Client - Open two sockets close one - setup
Powering on controller
Controller powered on
L2CAP LE Client - Open two sockets close one - setup complete L2CAP LE Client - Open two sockets close one - run
Connect in progress, sk = 13
HCI Command 0x200b length 7
HCI Command 0x200c length 2
Connect in progress, sk = 14
Closing first socket! 13
HCI Command 0x200c length 2
Client set connectable status 0x00
HCI Command 0x200d length 25
HCI Command 0x2016 length 2
Successfully connected
L2CAP LE Client - Open two sockets close one - test passed

(l2cap-tester:38): GLib-WARNING **: 00:16:30.184: Invalid file descriptor. L2CAP LE Client - Open two sockets close one - teardown
Index Removed callback

    Index: 0x0000

L2CAP LE Client - Open two sockets close one - teardown complete L2CAP LE Client - Open two sockets close one - done

L2CAP LE Client - Invalid PSM - init
Read Index List callback

    Status: 0x00
  New hciemu instance created
  Index Added callback
    Index: 0x0000
  Read Info callback
    Status: 0x00
    Address: 00:AA:01:00:00:00
    Version: 0x09
    Manufacturer: 0x003f
    Supported settings: 0x0001be1b
    Current settings: 0x00000200
    Class: 0x000000
    Name: 
    Short name: 

L2CAP LE Client - Invalid PSM - setup
Powering on controller
Controller powered on
Client set connectable status 0x00
L2CAP LE Client - Invalid PSM - setup complete
L2CAP LE Client - Invalid PSM - run
Connect in progress
Connect failed: Connection refused (111)
L2CAP LE Client - Invalid PSM - test passed
L2CAP LE Client - Invalid PSM - teardown
Index Removed callback

    Index: 0x0000

L2CAP LE Client - Invalid PSM - teardown complete
L2CAP LE Client - Invalid PSM - done

L2CAP LE Server - Success - init
Read Index List callback

    Status: 0x00
  New hciemu instance created
  Index Added callback
    Index: 0x0000
  Read Info callback
    Status: 0x00
    Address: 00:AA:01:00:00:00
    Version: 0x09
    Manufacturer: 0x003f
    Supported settings: 0x0001be1b
    Current settings: 0x00000200
    Class: 0x000000
    Name: 
    Short name: 

L2CAP LE Server - Success - setup
Powering on controller
Controller powered on
L2CAP LE Server - Success - setup complete
L2CAP LE Server - Success - run
Listening for connections
New client connection with handle 0x002a
Sending L2CAP Request from client
Successfully connected
L2CAP LE Server - Success - test passed
Client received response code 0x15
L2CAP LE Server - Success - test passed
L2CAP LE Server - Success - teardown
Index Removed callback

    Index: 0x0000

L2CAP LE Server - Success - teardown complete
L2CAP LE Server - Success - done

L2CAP LE Server - Nval SCID - init
Read Index List callback

    Status: 0x00
  New hciemu instance created
  Index Added callback
    Index: 0x0000
  Read Info callback
    Status: 0x00
    Address: 00:AA:01:00:00:00
    Version: 0x09
    Manufacturer: 0x003f
    Supported settings: 0x0001be1b
    Current settings: 0x00000200
    Class: 0x000000
    Name: 
    Short name: 

L2CAP LE Server - Nval SCID - setup
Powering on controller
Controller powered on
L2CAP LE Server - Nval SCID - setup complete
L2CAP LE Server - Nval SCID - run
Listening for connections
New client connection with handle 0x002a
Sending L2CAP Request from client
Client received response code 0x15
L2CAP LE Server - Nval SCID - test passed
L2CAP LE Server - Nval SCID - teardown
Index Removed callback

    Index: 0x0000

L2CAP LE Server - Nval SCID - teardown complete
L2CAP LE Server - Nval SCID - done

L2CAP Ext-Flowctl Client - Success - init
Read Index List callback

    Status: 0x00
  New hciemu instance created
  Index Added callback
    Index: 0x0000
  Read Info callback
    Status: 0x00
    Address: 00:AA:01:00:00:00
    Version: 0x09
    Manufacturer: 0x003f
    Supported settings: 0x0001be1b
    Current settings: 0x00000200
    Class: 0x000000
    Name: 
    Short name: 

L2CAP Ext-Flowctl Client - Success - setup
Powering on controller
Controller powered on
Client set connectable status 0x00
L2CAP Ext-Flowctl Client - Success - setup complete L2CAP Ext-Flowctl Client - Success - run
Can't set mode: Protocol not available (92)
L2CAP Ext-Flowctl Client - Success - test not run L2CAP Ext-Flowctl Client - Success - teardown
Index Removed callback

    Index: 0x0000

L2CAP Ext-Flowctl Client - Success - teardown complete L2CAP Ext-Flowctl Client - Success - done

L2CAP Ext-Flowctl Client, Direct Advertising - Success - init
Read Index List callback

    Status: 0x00
  New hciemu instance created
  Index Added callback
    Index: 0x0000
  Read Info callback
    Status: 0x00
    Address: 00:AA:01:00:00:00
    Version: 0x09
    Manufacturer: 0x003f
    Supported settings: 0x0001be1b
    Current settings: 0x00000200
    Class: 0x000000
    Name: 
    Short name: 

L2CAP Ext-Flowctl Client, Direct Advertising - Success - setup
Powering on controller
Controller powered on
Client set connectable status 0x00
L2CAP Ext-Flowctl Client, Direct Advertising - Success - setup complete L2CAP Ext-Flowctl Client, Direct Advertising - Success - run
Can't set mode: Protocol not available (92)
L2CAP Ext-Flowctl Client, Direct Advertising - Success - test not run L2CAP Ext-Flowctl Client, Direct Advertising - Success - teardown
Index Removed callback

    Index: 0x0000

L2CAP Ext-Flowctl Client, Direct Advertising - Success - teardown complete L2CAP Ext-Flowctl Client, Direct Advertising - Success - done

L2CAP Ext-Flowctl Client SMP - Success - init
Read Index List callback

    Status: 0x00
  New hciemu instance created
  Index Added callback
    Index: 0x0000
  Read Info callback
    Status: 0x00
    Address: 00:AA:01:00:00:00
    Version: 0x09
    Manufacturer: 0x003f
    Supported settings: 0x0001be1b
    Current settings: 0x00000200
    Class: 0x000000
    Name: 
    Short name: 

L2CAP Ext-Flowctl Client SMP - Success - setup
Powering on controller
Controller powered on
Client set connectable status 0x00
L2CAP Ext-Flowctl Client SMP - Success - setup complete L2CAP Ext-Flowctl Client SMP - Success - run
Can't set mode: Protocol not available (92)
L2CAP Ext-Flowctl Client SMP - Success - test not run L2CAP Ext-Flowctl Client SMP - Success - teardown
Index Removed callback

    Index: 0x0000

L2CAP Ext-Flowctl Client SMP - Success - teardown complete L2CAP Ext-Flowctl Client SMP - Success - done

L2CAP Ext-Flowctl Client - Command Reject - init
Read Index List callback

    Status: 0x00
  New hciemu instance created
  Index Added callback
    Index: 0x0000
  Read Info callback
    Status: 0x00
    Address: 00:AA:01:00:00:00
    Version: 0x09
    Manufacturer: 0x003f
    Supported settings: 0x0001be1b
    Current settings: 0x00000200
    Class: 0x000000
    Name: 
    Short name: 

L2CAP Ext-Flowctl Client - Command Reject - setup
Powering on controller
Controller powered on
Client set connectable status 0x00
L2CAP Ext-Flowctl Client - Command Reject - setup complete L2CAP Ext-Flowctl Client - Command Reject - run
Can't set mode: Protocol not available (92)
L2CAP Ext-Flowctl Client - Command Reject - test not run L2CAP Ext-Flowctl Client - Command Reject - teardown
Index Removed callback

    Index: 0x0000

L2CAP Ext-Flowctl Client - Command Reject - teardown complete L2CAP Ext-Flowctl Client - Command Reject - done

L2CAP Ext-Flowctl Client - Open two sockets - init
Read Index List callback

    Status: 0x00
  New hciemu instance created
  Index Added callback
    Index: 0x0000
  Read Info callback
    Status: 0x00
    Address: 00:AA:01:00:00:00
    Version: 0x09
    Manufacturer: 0x003f
    Supported settings: 0x0001be1b
    Current settings: 0x00000200
    Class: 0x000000
    Name: 
    Short name: 

L2CAP Ext-Flowctl Client - Open two sockets - setup
Powering on controller
Controller powered on
L2CAP Ext-Flowctl Client - Open two sockets - setup complete L2CAP Ext-Flowctl Client - Open two sockets - run
Can't set mode: Protocol not available (92) Error in create_l2cap_sock
L2CAP Ext-Flowctl Client - Open two sockets - test not run L2CAP Ext-Flowctl Client - Open two sockets - teardown
Index Removed callback

    Index: 0x0000

L2CAP Ext-Flowctl Client - Open two sockets - teardown complete L2CAP Ext-Flowctl Client - Open two sockets - done

L2CAP Ext-Flowctl Client - Open two sockets close one - init
Read Index List callback

    Status: 0x00
  New hciemu instance created
  Index Added callback
    Index: 0x0000
  Read Info callback
    Status: 0x00
    Address: 00:AA:01:00:00:00
    Version: 0x09
    Manufacturer: 0x003f
    Supported settings: 0x0001be1b
    Current settings: 0x00000200
    Class: 0x000000
    Name: 
    Short name: 

L2CAP Ext-Flowctl Client - Open two sockets close one - setup
Powering on controller
Controller powered on
L2CAP Ext-Flowctl Client - Open two sockets close one - setup complete L2CAP Ext-Flowctl Client - Open two sockets close one - run
Can't set mode: Protocol not available (92)
Error in create_l2cap_sock
L2CAP Ext-Flowctl Client - Open two sockets close one - test not run L2CAP Ext-Flowctl Client - Open two sockets close one - teardown
Index Removed callback

    Index: 0x0000

L2CAP Ext-Flowctl Client - Open two sockets close one - teardown complete L2CAP Ext-Flowctl Client - Open two sockets close one - done

L2CAP LE ATT Client - Success - init
Read Index List callback

    Status: 0x00
  New hciemu instance created
  Index Added callback
    Index: 0x0000
  Read Info callback
    Status: 0x00
    Address: 00:AA:01:00:00:00
    Version: 0x09
    Manufacturer: 0x003f
    Supported settings: 0x0001be1b
    Current settings: 0x00000200
    Class: 0x000000
    Name: 
    Short name: 

L2CAP LE ATT Client - Success - setup
Powering on controller
Controller powered on
Client set connectable status 0x00
L2CAP LE ATT Client - Success - setup complete
L2CAP LE ATT Client - Success - run
Connect in progress
Successfully connected
L2CAP LE ATT Client - Success - test passed
L2CAP LE ATT Client - Success - teardown
Index Removed callback

    Index: 0x0000

L2CAP LE ATT Client - Success - teardown complete
L2CAP LE ATT Client - Success - done

L2CAP LE ATT Server - Success - init
Read Index List callback

    Status: 0x00
  New hciemu instance created
  Index Added callback
    Index: 0x0000
  Read Info callback
    Status: 0x00
    Address: 00:AA:01:00:00:00
    Version: 0x09
    Manufacturer: 0x003f
    Supported settings: 0x0001be1b
    Current settings: 0x00000200
    Class: 0x000000
    Name: 
    Short name: 

L2CAP LE ATT Server - Success - setup
Powering on controller
Controller powered on
L2CAP LE ATT Server - Success - setup complete
L2CAP LE ATT Server - Success - run
Listening for connections
New client connection with handle 0x002a
Successfully connected
L2CAP LE ATT Server - Success - test passed
L2CAP LE ATT Server - Success - teardown
Index Removed callback

    Index: 0x0000

L2CAP LE ATT Server - Success - teardown complete
L2CAP LE ATT Server - Success - done

Test Summary
------------

Basic L2CAP Socket - Success                         Passed       0.060 seconds
Non-connected getpeername - Failure                  Passed       0.016 seconds
L2CAP BR/EDR Client - Success                        Passed       0.032 seconds
L2CAP BR/EDR Client SSP - Success 1                  Passed       0.032 seconds
L2CAP BR/EDR Client SSP - Success 2                  Passed       0.024 seconds
L2CAP BR/EDR Client PIN Code - Success               Passed       0.020 seconds
L2CAP BR/EDR Client - Read Success                   Passed       0.020 seconds
L2CAP BR/EDR Client - Write Success                  Passed       0.020 seconds
L2CAP BR/EDR Client - Invalid PSM 1                  Passed       0.020 seconds
L2CAP BR/EDR Client - Invalid PSM 2                  Passed       0.016 seconds
L2CAP BR/EDR Client - Invalid PSM 3                  Passed       0.020 seconds
L2CAP BR/EDR Client - Socket Shut WR Success         Passed       0.020 seconds
L2CAP BR/EDR Server - Success                        Passed       0.024 seconds
L2CAP BR/EDR Server - Read Success                   Passed       0.024 seconds
L2CAP BR/EDR Server - Write Success                  Passed       0.020 seconds
L2CAP BR/EDR Server - Security Block                 Passed       0.020 seconds
L2CAP BR/EDR Server - Invalid PSM                    Passed       0.024 seconds
L2CAP BR/EDR Server - Invalid PDU                    Passed       0.020 seconds
L2CAP BR/EDR Server - Invalid Disconnect CID         Passed       0.016 seconds
L2CAP BR/EDR Server - Invalid Config CID             Passed       0.016 seconds
L2CAP LE Client - Success                            Passed       0.028 seconds
L2CAP LE Client, Direct Advertising - Success        Passed       0.016 seconds
L2CAP LE Client SMP - Success                        Passed       0.036 seconds
L2CAP LE Client - Command Reject                     Passed       0.016 seconds
L2CAP LE Client - Connection Reject                  Passed       0.016 seconds
L2CAP LE Client - Close socket 1                     Passed       0.016 seconds
L2CAP LE Client - Close socket 2                     Passed       0.016 seconds
L2CAP LE Client - Open two sockets                   Passed       0.052 seconds
L2CAP LE Client - Open two sockets close one         Passed       0.024 seconds
L2CAP LE Client - Invalid PSM                        Passed       0.020 seconds
L2CAP LE Server - Success                            Passed       0.020 seconds
L2CAP LE Server - Nval SCID                          Passed       0.016 seconds
L2CAP Ext-Flowctl Client - Success                   Not Run   
L2CAP Ext-Flowctl Client, Direct Advertising - Success Not Run   
L2CAP Ext-Flowctl Client SMP - Success               Not Run   
L2CAP Ext-Flowctl Client - Command Reject            Not Run   
L2CAP Ext-Flowctl Client - Open two sockets          Not Run   
L2CAP Ext-Flowctl Client - Open two sockets close one Not Run   
L2CAP LE ATT Client - Success                        Passed       0.016 seconds
L2CAP LE ATT Server - Success                        Passed       0.012 seconds

Total: 40, Passed: 34 (85.0%), Failed: 0, Not Run: 6 Overall execution time: 0.88 seconds
Process 38 exited with status 0
reboot: Restarting system

c[?7lSeaBIOS (version 1.13.0-1ubuntu1.1) Booting from ROM..c[?7learly console in extract_kernel
input_data: 0x0000000001e732e0
input_len: 0x000000000035333d
output: 0x0000000001000000
output_len: 0x00000000011944cc
kernel_total_size: 0x0000000001030000
needed_size: 0x0000000001200000
trampoline_32bit: 0x000000000009d000
Physical KASLR using RDTSC...
Virtual KASLR using RDTSC...

Decompressing Linux... Parsing ELF... Performing relocations... done.
Booting the kernel.
Linux version 5.11.0-g6c5a4024817a (root@4d611f9ce9ba) (gcc (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0, GNU ld (GNU Binutils for Ubuntu) 2.34) #2 Fri Mar 12 00:16:21 UTC 2021
Command line: console=ttyS0,115200n8 earlyprintk=serial rootfstype=9p rootflags=trans=virtio,version=9p2000.L acpi=off pci=noacpi noapic quiet ro init=/github/workspace/bluez/tools/test-runner TESTHOME=/github/workspace TESTDBUS=0 TESTMONITOR=0 TESTDEVS=0 TESTAUTO=0 TESTARGS='/github/workspace/bluez/tools/bnep-tester' x86/fpu: x87 FPU will use FXSAVE
BIOS-provided physical RAM map:
BIOS-e820: [mem 0x0000000000000000-0x000000000009fbff] usable
BIOS-e820: [mem 0x000000000009fc00-0x000000000009ffff] reserved
BIOS-e820: [mem 0x00000000000f0000-0x00000000000fffff] reserved
BIOS-e820: [mem 0x0000000000100000-0x000000000bffdfff] usable
BIOS-e820: [mem 0x000000000bffe000-0x000000000bffffff] reserved
BIOS-e820: [mem 0x00000000b0000000-0x00000000bfffffff] reserved
BIOS-e820: [mem 0x00000000fed1c000-0x00000000fed1ffff] reserved
BIOS-e820: [mem 0x00000000fffc0000-0x00000000ffffffff] reserved
printk: bootconsole [earlyser0] enabled
Memory KASLR using RDTSC...
Poking KASLR using RDTSC...
Mounting sysfs to /sys
Mounting proc to /proc
Mounting devtmpfs to /dev
Creating /dev/pts
Mounting devpts to /dev/pts
Creating /dev/shm
Mounting tmpfs to /dev/shm
Mounting tmpfs to /run
Mounting tmpfs to /tmp
Mounting debugfs to /sys/kernel/debug
Linking /dev/fd to /proc/self/fd
Linking /dev/stdin to /proc/self/fd/0
Linking /dev/stdout to /proc/self/fd/1
Linking /dev/stderr to /proc/self/fd/2
Creating new session group leader
Setting controlling terminal
Creating /var/lib/bluetooth
Failed to create filesystem: No such file or directory
Creating /etc/bluetooth
Failed to create filesystem: No such file or directory
Creating /etc/dbus-1
Failed to create filesystem: No such file or directory
Creating /usr/share/dbus-1
Running command /github/workspace/bluez/tools/bnep-tester
New process 38 created
Changing into directory /github/workspace

Basic BNEP Socket - Success - init
Read Index List callback

    Status: 0x00
  New hciemu instance created
  Index Added callback
    Index: 0x0000
  Read Info callback
    Status: 0x00
    Address: 00:AA:01:00:00:00
    Version: 0x05
    Manufacturer: 0x003f
    Supported settings: 0x000110ff
    Current settings: 0x00000080
    Class: 0x000000
    Name: 
    Short name: 

Basic BNEP Socket - Success - setup
Powering on controller
Controller powered on
Client set connectable status 0x00
Basic BNEP Socket - Success - setup complete
Basic BNEP Socket - Success - run
Basic BNEP Socket - Success - test passed
Basic BNEP Socket - Success - teardown
Index Removed callback

    Index: 0x0000

Basic BNEP Socket - Success - teardown complete
Basic BNEP Socket - Success - done

Test Summary
------------
Basic BNEP Socket - Success Passed 0.064 seconds
Total: 1, Passed: 1 (100.0%), Failed: 0, Not Run: 0 Overall execution time: 0.072 seconds Process 38 exited with status 0
reboot: Restarting system

c[?7lSeaBIOS (version 1.13.0-1ubuntu1.1) Booting from ROM..c[?7learly console in extract_kernel
input_data: 0x0000000001e732e0
input_len: 0x000000000035333d
output: 0x0000000001000000
output_len: 0x00000000011944cc
kernel_total_size: 0x0000000001030000
needed_size: 0x0000000001200000
trampoline_32bit: 0x000000000009d000
Physical KASLR using RDTSC...
Virtual KASLR using RDTSC...

Decompressing Linux... Parsing ELF... Performing relocations... done.
Booting the kernel.
Linux version 5.11.0-g6c5a4024817a (root@4d611f9ce9ba) (gcc (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0, GNU ld (GNU Binutils for Ubuntu) 2.34) #2 Fri Mar 12 00:16:21 UTC 2021
Command line: console=ttyS0,115200n8 earlyprintk=serial rootfstype=9p rootflags=trans=virtio,version=9p2000.L acpi=off pci=noacpi noapic quiet ro init=/github/workspace/bluez/tools/test-runner TESTHOME=/github/workspace TESTDBUS=0 TESTMONITOR=0 TESTDEVS=0 TESTAUTO=0 TESTARGS='/github/workspace/bluez/tools/mgmt-tester' x86/fpu: x87 FPU will use FXSAVE
BIOS-provided physical RAM map:
BIOS-e820: [mem 0x0000000000000000-0x000000000009fbff] usable
BIOS-e820: [mem 0x000000000009fc00-0x000000000009ffff] reserved
BIOS-e820: [mem 0x00000000000f0000-0x00000000000fffff] reserved
BIOS-e820: [mem 0x0000000000100000-0x000000000bffdfff] usable
BIOS-e820: [mem 0x000000000bffe000-0x000000000bffffff] reserved
BIOS-e820: [mem 0x00000000b0000000-0x00000000bfffffff] reserved
BIOS-e820: [mem 0x00000000fed1c000-0x00000000fed1ffff] reserved
BIOS-e820: [mem 0x00000000fffc0000-0x00000000ffffffff] reserved
printk: bootconsole [earlyser0] enabled
Memory KASLR using RDTSC...
Poking KASLR using RDTSC...
Mounting sysfs to /sys
Mounting proc to /proc
Mounting devtmpfs to /dev
Creating /dev/pts
Mounting devpts to /dev/pts
Creating /dev/shm
Mounting tmpfs to /dev/shm
Mounting tmpfs to /run
Mounting tmpfs to /tmp
Mounting debugfs to /sys/kernel/debug
Linking /dev/fd to /proc/self/fd
Linking /dev/stdin to /proc/self/fd/0
Linking /dev/stdout to /proc/self/fd/1
Linking /dev/stderr to /proc/self/fd/2
Creating new session group leader
Setting controlling terminal
Creating /var/lib/bluetooth
Failed to create filesystem: No such file or directory
Creating /etc/bluetooth
Failed to create filesystem: No such file or directory
Creating /etc/dbus-1
Failed to create filesystem: No such file or directory
Creating /usr/share/dbus-1
Running command /github/workspace/bluez/tools/mgmt-tester
New process 38 created
Changing into directory /github/workspace

Controller setup - init
Read Version callback

    Status: Success (0x00)
    Version 1.19
  Read Commands callback
    Status: Success (0x00)
  Read Index List callback
    Status: Success (0x00)
  Index Added callback
    Index: 0x0000
  Read Info callback
    Status: Success (0x00)
    Address: 00:AA:01:00:00:00
    Version: 0x09
    Manufacturer: 0x003f
    Supported settings: 0x0001beff
    Current settings: 0x00000080
    Class: 0x000000
    Name: 
    Short name: 

Controller setup - setup
Controller setup - setup complete
Controller setup - run
Controller setup - test passed
Controller setup - teardown
Index Removed callback

    Index: 0x0000

Controller setup - teardown complete
Controller setup - done

Controller setup (BR/EDR-only) - init
Read Version callback

    Status: Success (0x00)
    Version 1.19
  Read Commands callback
    Status: Success (0x00)
  Read Index List callback
    Status: Success (0x00)
  Index Added callback
    Index: 0x0000
  Read Info callback
    Status: Success (0x00)
    Address: 00:AA:01:00:00:00
    Version: 0x05
    Manufacturer: 0x003f
    Supported settings: 0x000110ff
    Current settings: 0x00000080
    Class: 0x000000
    Name: 
    Short name: 

Controller setup (BR/EDR-only) - setup
Controller setup (BR/EDR-only) - setup complete
Controller setup (BR/EDR-only) - run
Controller setup (BR/EDR-only) - test passed
Controller setup (BR/EDR-only) - teardown
Index Removed callback

    Index: 0x0000

Controller setup (BR/EDR-only) - teardown complete Controller setup (BR/EDR-only) - done

Controller setup (LE) - init
Read Version callback

    Status: Success (0x00)
    Version 1.19
  Read Commands callback
    Status: Success (0x00)
  Read Index List callback
    Status: Success (0x00)
  Index Added callback
    Index: 0x0000
  Read Info callback
    Status: Success (0x00)
    Address: 00:AA:01:00:00:00
    Version: 0x09
    Manufacturer: 0x003f
    Supported settings: 0x0001be1b
    Current settings: 0x00000200
    Class: 0x000000
    Name: 
    Short name: 

Controller setup (LE) - setup
Controller setup (LE) - setup complete
Controller setup (LE) - run
Controller setup (LE) - test passed
Controller setup (LE) - teardown
Index Removed callback

    Index: 0x0000

Controller setup (LE) - teardown complete
Controller setup (LE) - done

Invalid command - init
Read Version callback

    Status: Success (0x00)
    Version 1.19
  Read Commands callback
    Status: Success (0x00)
  Read Index List callback
    Status: Success (0x00)
  Index Added callback
    Index: 0x0000
  Read Info callback
    Status: Success (0x00)
    Address: 00:AA:01:00:00:00
    Version: 0x09
    Manufacturer: 0x003f
    Supported settings: 0x0001beff
    Current settings: 0x00000080
    Class: 0x000000
    Name: 
    Short name: 

Invalid command - setup
Invalid command - setup complete
Invalid command - run
Sending <unknown opcode> (0xffff)
Test condition added, total 1
<unknown opcode> (0xffff): Unknown Command (0x01) Test condition complete, 0 left
Invalid command - test passed
Invalid command - teardown
Index Removed callback

    Index: 0x0000

Invalid command - teardown complete
Invalid command - done

Read version - Success - init
Read Version callback

    Status: Success (0x00)
    Version 1.19
  Read Commands callback
    Status: Success (0x00)
  Read Index List callback
    Status: Success (0x00)
  Index Added callback
    Index: 0x0000
  Read Info callback
    Status: Success (0x00)
    Address: 00:AA:01:00:00:00
    Version: 0x09
    Manufacturer: 0x003f
    Supported settings: 0x0001beff
    Current settings: 0x00000080
    Class: 0x000000
    Name: 
    Short name: 

Read version - Success - setup
Read version - Success - setup complete
Read version - Success - run
Sending Read Version (0x0001)
Test condition added, total 1
Read Version (0x0001): Success (0x00)
Test condition complete, 0 left
Read version - Success - test passed
Read version - Success - teardown
Index Removed callback

    Index: 0x0000

Read version - Success - teardown complete
Read version - Success - done

Read version - Invalid parameters - init
Read Version callback

    Status: Success (0x00)
    Version 1.19
  Read Commands callback
    Status: Success (0x00)
  Read Index List callback
    Status: Success (0x00)
  Index Added callback
    Index: 0x0000
  Read Info callback
    Status: Success (0x00)
    Address: 00:AA:01:00:00:00
    Version: 0x09
    Manufacturer: 0x003f
    Supported settings: 0x0001beff
    Current settings: 0x00000080
    Class: 0x000000
    Name: 
    Short name: 

Read version - Invalid parameters - setup Read version - Invalid parameters - setup complete Read version - Invalid parameters - run
Sending Read Version (0x0001)
Test condition added, total 1
Read Version (0x0001): Invalid Parameters (0x0d) Test condition complete, 0 left
Read version - Invalid parameters - test passed Read version - Invalid parameters - teardown
Index Removed callback

    Index: 0x0000

Read version - Invalid parameters - teardown complete Read version - Invalid parameters - done

Read version - Invalid index - init
Read Version callback

    Status: Success (0x00)
    Version 1.19
  Read Commands callback
    Status: Success (0x00)
  Read Index List callback
    Status: Success (0x00)
  Index Added callback
    Index: 0x0000
  Read Info callback
    Status: Success (0x00)
    Address: 00:AA:01:00:00:00
    Version: 0x09
    Manufacturer: 0x003f
    Supported settings: 0x0001beff
    Current settings: 0x00000080
    Class: 0x000000
    Name: 
    Short name: 

Read version - Invalid index - setup
Read version - Invalid index - setup complete
Read version - Invalid index - run
Sending Read Version (0x0001)
Test condition added, total 1
Read Version (0x0001): Invalid Index (0x11)
Test condition complete, 0 left
Read version - Invalid index - test passed
Read version - Invalid index - teardown
Index Removed callback

    Index: 0x0000

Read version - Invalid index - teardown complete
Read version - Invalid index - done

Read commands - Invalid parameters - init
Read Version callback

    Status: Success (0x00)
    Version 1.19
  Read Commands callback
    Status: Success (0x00)
  Read Index List callback
    Status: Success (0x00)
  Index Added callback
    Index: 0x0000
  Read Info callback
    Status: Success (0x00)
    Address: 00:AA:01:00:00:00
    Version: 0x09
    Manufacturer: 0x003f
    Supported settings: 0x0001beff
    Current settings: 0x00000080
    Class: 0x000000
    Name: 
    Short name: 

Read commands - Invalid parameters - setup Read commands - Invalid parameters - setup complete Read commands - Invalid parameters - run
Sending Read Commands (0x0002)
Test condition added, total 1
Read Commands (0x0002): Invalid Parameters (0x0d) Test condition complete, 0 left
Read commands - Invalid parameters - test passed Read commands - Invalid parameters - teardown
Index Removed callback

    Index: 0x0000

Read commands - Invalid parameters - teardown complete Read commands - Invalid parameters - done

Read commands - Invalid index - init
Read Version callback

    Status: Success (0x00)
    Version 1.19
  Read Commands callback
    Status: Success (0x00)
  Read Index List callback
    Status: Success (0x00)
  Index Added callback
    Index: 0x0000
  Read Info callback
    Status: Success (0x00)
    Address: 00:AA:01:00:00:00
    Version: 0x09
    Manufacturer: 0x003f
    Supported settings: 0x0001beff
    Current settings: 0x00000080
    Class: 0x000000
    Name: 
    Short name: 

Read commands - Invalid index - setup
Read commands - Invalid index - setup complete
Read commands - Invalid index - run
Sending Read Commands (0x0002)
Test condition added, total 1
Read Commands (0x0002): Invalid Index (0x11)
Test condition complete, 0 left
Read commands - Invalid index - test passed
Read commands - Invalid index - teardown
Index Removed callback

    Index: 0x0000

Read commands - Invalid index - teardown complete
Read commands - Invalid index - done

Read index list - Invalid parameters - init
Read Version callback

    Status: Success (0x00)
    Version 1.19
  Read Commands callback
    Status: Success (0x00)
  Read Index List callback
    Status: Success (0x00)
  Index Added callback
    Index: 0x0000
  Read Info callback
    Status: Success (0x00)
    Address: 00:AA:01:00:00:00
    Version: 0x09
    Manufacturer: 0x003f
    Supported settings: 0x0001beff
    Current settings: 0x00000080
    Class: 0x000000
    Name: 
    Short name: 

Read index list - Invalid parameters - setup Read index list - Invalid parameters - setup complete Read index list - Invalid parameters - run
Sending Read Index List (0x0003)
Test condition added, total 1
Read Index List (0x0003): Invalid Parameters (0x0d) Test condition complete, 0 left
Read index list - Invalid parameters - test passed Read index list - Invalid parameters - teardown
Index Removed callback

    Index: 0x0000

Read index list - Invalid parameters - teardown complete Read index list - Invalid parameters - done

Read index list - Invalid index - init
Read Version callback

    Status: Success (0x00)
    Version 1.19
  Read Commands callback
    Status: Success (0x00)
  Read Index List callback
    Status: Success (0x00)
  Index Added callback
    Index: 0x0000
  Read Info callback
    Status: Success (0x00)
    Address: 00:AA:01:00:00:00
    Version: 0x09
    Manufacturer: 0x003f
    Supported settings: 0x0001beff
    Current settings: 0x00000080
    Class: 0x000000
    Name: 
    Short name: 

Read index list - Invalid index - setup
Read index list - Invalid index - setup complete
Read index list - Invalid index - run
Sending Read Index List (0x0003)
Test condition added, total 1
Read Index List (0x0003): Invalid Index (0x11)
Test condition complete, 0 left
Read index list - Invalid index - test passed
Read index list - Invalid index - teardown
Index Removed callback

    Index: 0x0000

Read index list - Invalid index - teardown complete Read index list - Invalid index - done

Read info - Invalid parameters - init
Read Version callback

    Status: Success (0x00)
    Version 1.19
  Read Commands callback
    Status: Success (0x00)
  Read Index List callback
    Status: Success (0x00)
  Index Added callback
    Index: 0x0000
  Read Info callback
    Status: Success (0x00)
    Address: 00:AA:01:00:00:00
    Version: 0x09
    Manufacturer: 0x003f
    Supported settings: 0x0001beff
    Current settings: 0x00000080
    Class: 0x000000
    Name: 
    Short name: 

Read info - Invalid parameters - setup
Read info - Invalid parameters - setup complete Read info - Invalid parameters - run
Sending Read Controller Info (0x0004)
Test condition added, total 1
Read Controller Info (0x0004): Invalid Parameters (0x0d) Test condition complete, 0 left
Read info - Invalid parameters - test passed
Read info - Invalid parameters - teardown
Index Removed callback

    Index: 0x0000

Read info - Invalid parameters - teardown complete Read info - Invalid parameters - done

Read info - Invalid index - init
Read Version callback

    Status: Success (0x00)
    Version 1.19
  Read Commands callback
    Status: Success (0x00)
  Read Index List callback
    Status: Success (0x00)
  Index Added callback
    Index: 0x0000
  Read Info callback
    Status: Success (0x00)
    Address: 00:AA:01:00:00:00
    Version: 0x09
    Manufacturer: 0x003f
    Supported settings: 0x0001beff
    Current settings: 0x00000080
    Class: 0x000000
    Name: 
    Short name: 

Read info - Invalid index - setup
Read info - Invalid index - setup complete Read info - Invalid index - run
Sending Read Controller Info (0x0004)
Test condition added, total 1
Read Controller Info (0x0004): Invalid Index (0x11) Test condition complete, 0 left
Read info - Invalid index - test passed
Read info - Invalid index - teardown
Index Removed callback

    Index: 0x0000

Read info - Invalid index - teardown complete
Read info - Invalid index - done

Read unconfigured index list - Invalid parameters - init
Read Version callback

    Status: Success (0x00)
    Version 1.19
  Read Commands callback
    Status: Success (0x00)
  Read Index List callback
    Status: Success (0x00)
  Index Added callback
    Index: 0x0000
  Read Info callback
    Status: Success (0x00)
    Address: 00:AA:01:00:00:00
    Version: 0x09
    Manufacturer: 0x003f
    Supported settings: 0x0001beff
    Current settings: 0x00000080
    Class: 0x000000
    Name: 
    Short name: 

Read unconfigured index list - Invalid parameters - setup Read unconfigured index list - Invalid parameters - setup complete Read unconfigured index list - Invalid parameters - run
Sending Read Unconfigured Index List (0x0036)
Test condition added, total 1
Read Unconfigured Index List (0x0036): Invalid Parameters (0x0d) Test condition complete, 0 left
Read unconfigured index list - Invalid parameters - test passed Read unconfigured index list - Invalid parameters - teardown
Index Removed callback

    Index: 0x0000

Read unconfigured index list - Invalid parameters - teardown complete Read unconfigured index list - Invalid parameters - done

Read unconfigured index list - Invalid index - init
Read Version callback

    Status: Success (0x00)
    Version 1.19
  Read Commands callback
    Status: Success (0x00)
  Read Index List callback
    Status: Success (0x00)
  Index Added callback
    Index: 0x0000
  Read Info callback
    Status: Success (0x00)
    Address: 00:AA:01:00:00:00
    Version: 0x09
    Manufacturer: 0x003f
    Supported settings: 0x0001beff
    Current settings: 0x00000080
    Class: 0x000000
    Name: 
    Short name: 

Read unconfigured index list - Invalid index - setup Read unconfigured index list - Invalid index - setup complete Read unconfigured index list - Invalid index - run
Sending Read Unconfigured Index List (0x0036) Test condition added, total 1
Read Unconfigured Index List (0x0036): Invalid Index (0x11) Test condition complete, 0 left
Read unconfigured index list - Invalid index - test passed Read unconfigured index list - Invalid index - teardown
Index Removed callback

    Index: 0x0000

Read unconfigured index list - Invalid index - teardown complete Read unconfigured index list - Invalid index - done

Read configuration info - Invalid parameters - init
Read Version callback

    Status: Success (0x00)
    Version 1.19
  Read Commands callback
    Status: Success (0x00)
  Read Index List callback
    Status: Success (0x00)
  Index Added callback
    Index: 0x0000
  Read Info callback
    Status: Success (0x00)
    Address: 00:AA:01:00:00:00
    Version: 0x09
    Manufacturer: 0x003f
    Supported settings: 0x0001beff
    Current settings: 0x00000080
    Class: 0x000000
    Name: 
    Short name: 

Read configuration info - Invalid parameters - setup
Read configuration info - Invalid parameters - setup complete
Read configuration info - Invalid parameters - run
Sending Read Controller Configuration Information (0x0037)
Test condition added, total 1
Read Controller Configuration Information (0x0037): Invalid Parameters (0x0d) Test condition complete, 0 left
Read configuration info - Invalid parameters - test passed
Read configuration info - Invalid parameters - teardown
Index Removed callback

    Index: 0x0000

Read configuration info - Invalid parameters - teardown complete Read configuration info - Invalid parameters - done

Read configuration info - Invalid index - init
Read Version callback

    Status: Success (0x00)
    Version 1.19
  Read Commands callback
    Status: Success (0x00)
  Read Index List callback
    Status: Success (0x00)
  Index Added callback
    Index: 0x0000
  Read Info callback
    Status: Success (0x00)
    Address: 00:AA:01:00:00:00
    Version: 0x09
    Manufacturer: 0x003f
    Supported settings: 0x0001beff
    Current settings: 0x00000080
    Class: 0x000000
    Name: 
    Short name: 

Read configuration info - Invalid index - setup
Read configuration info - Invalid index - setup complete
Read configuration info - Invalid index - run
Sending Read Controller Configuration Information (0x0037) Test condition added, total 1
Read Controller Configuration Information (0x0037): Invalid Index (0x11) Test condition complete, 0 left
Read configuration info - Invalid index - test passed
Read configuration info - Invalid index - teardown
Index Removed callback

    Index: 0x0000

Read configuration info - Invalid index - teardown complete Read configuration info - Invalid index - done

Read extended index list - Invalid parameters - init
Read Version callback

    Status: Success (0x00)
    Version 1.19
  Read Commands callback
    Status: Success (0x00)
  Read Index List callback
    Status: Success (0x00)
  Index Added callback
    Index: 0x0000
  Read Info callback
    Status: Success (0x00)
    Address: 00:AA:01:00:00:00
    Version: 0x09
    Manufacturer: 0x003f
    Supported settings: 0x0001beff
    Current settings: 0x00000080
    Class: 0x000000
    Name: 
    Short name: 

Read extended index list - Invalid parameters - setup
Read extended index list - Invalid parameters - setup complete Read extended index list - Invalid parameters - run
Sending Read Extended Controller Index List (0x003c)
Test condition added, total 1
Read Extended Controller Index List (0x003c): Invalid Parameters (0x0d) Test condition complete, 0 left
Read extended index list - Invalid parameters - test passed Read extended index list - Invalid parameters - teardown
Index Removed callback

    Index: 0x0000

Read extended index list - Invalid parameters - teardown complete Read extended index list - Invalid parameters - done

Read extended index list - Invalid index - init
Read Version callback

    Status: Success (0x00)
    Version 1.19
  Read Commands callback
    Status: Success (0x00)
  Read Index List callback
    Status: Success (0x00)
  Index Added callback
    Index: 0x0000
  Read Info callback
    Status: Success (0x00)
    Address: 00:AA:01:00:00:00
    Version: 0x09
    Manufacturer: 0x003f
    Supported settings: 0x0001beff
    Current settings: 0x00000080
    Class: 0x000000
    Name: 
    Short name: 

Read extended index list - Invalid index - setup
Read extended index list - Invalid index - setup complete Read extended index list - Invalid index - run
Sending Read Extended Controller Index List (0x003c) Test condition added, total 1
Read Extended Controller Index List (0x003c): Invalid Index (0x11) Test condition complete, 0 left
Read extended index list - Invalid index - test passed Read extended index list - Invalid index - teardown
Index Removed callback

    Index: 0x0000

Read extended index list - Invalid index - teardown complete Read extended index list - Invalid index - done

Set powered on - Success - init
Read Version callback

    Status: Success (0x00)
    Version 1.19
  Read Commands callback
    Status: Success (0x00)
  Read Index List callback
    Status: Success (0x00)
  Index Added callback
    Index: 0x0000
  Read Info callback
    Status: Success (0x00)
    Address: 00:AA:01:00:00:00
    Version: 0x09
    Manufacturer: 0x003f
    Supported settings: 0x0001beff
    Current settings: 0x00000080
    Class: 0x000000
    Name: 
    Short name: 

Set powered on - Success - setup
Set powered on - Success - setup complete
Set powered on - Success - run
Registering new settings notification
Test condition added, total 1
Sending Set Powered (0x0005)
Test condition added, total 2
Set Powered (0x0005): Success (0x00)
Test condition complete, 1 left
New settings 0x00000081 received
Unregistering new settings notification
Test condition complete, 0 left
Set powered on - Success - test passed
Set powered on - Success - teardown
New settings event received
Index Removed callback

    Index: 0x0000

Set powered on - Success - teardown complete
Set powered on - Success - done

Set powered on - Invalid parameters 1 - init
Read Version callback

    Status: Success (0x00)
    Version 1.19
  Read Commands callback
    Status: Success (0x00)
  Read Index List callback
    Status: Success (0x00)
  Index Added callback
    Index: 0x0000
  Read Info callback
    Status: Success (0x00)
    Address: 00:AA:01:00:00:00
    Version: 0x09
    Manufacturer: 0x003f
    Supported settings: 0x0001beff
    Current settings: 0x00000080
    Class: 0x000000
    Name: 
    Short name: 

Set powered on - Invalid parameters 1 - setup Set powered on - Invalid parameters 1 - setup complete Set powered on - Invalid parameters 1 - run
Sending Set Powered (0x0005)
Test condition added, total 1
Set Powered (0x0005): Invalid Parameters (0x0d) Test condition complete, 0 left
Set powered on - Invalid parameters 1 - test passed Set powered on - Invalid parameters 1 - teardown
Index Removed callback

    Index: 0x0000

Set powered on - Invalid parameters 1 - teardown complete Set powered on - Invalid parameters 1 - done

Set powered on - Invalid parameters 2 - init
Read Version callback

    Status: Success (0x00)
    Version 1.19
  Read Commands callback
    Status: Success (0x00)
  Read Index List callback
    Status: Success (0x00)
  Index Added callback
    Index: 0x0000
  Read Info callback
    Status: Success (0x00)
    Address: 00:AA:01:00:00:00
    Version: 0x09
    Manufacturer: 0x003f
    Supported settings: 0x0001beff
    Current settings: 0x00000080
    Class: 0x000000
    Name: 
    Short name: 

Set powered on - Invalid parameters 2 - setup Set powered on - Invalid parameters 2 - setup complete Set powered on - Invalid parameters 2 - run
Sending Set Powered (0x0005)
Test condition added, total 1
Set Powered (0x0005): Invalid Parameters (0x0d) Test condition complete, 0 left
Set powered on - Invalid parameters 2 - test passed Set powered on - Invalid parameters 2 - teardown
Index Removed callback

    Index: 0x0000

Set powered on - Invalid parameters 2 - teardown complete Set powered on - Invalid parameters 2 - done

Set powered on - Invalid parameters 3 - init
Read Version callback

    Status: Success (0x00)
    Version 1.19
  Read Commands callback
    Status: Success (0x00)
  Read Index List callback
    Status: Success (0x00)
  Index Added callback
    Index: 0x0000
  Read Info callback
    Status: Success (0x00)
    Address: 00:AA:01:00:00:00
    Version: 0x09
    Manufacturer: 0x003f
    Supported settings: 0x0001beff
    Current settings: 0x00000080
    Class: 0x000000
    Name: 
    Short name: 

Set powered on - Invalid parameters 3 - setup Set powered on - Invalid parameters 3 - setup complete Set powered on - Invalid parameters 3 - run
Sending Set Powered (0x0005)
Test condition added, total 1
Set Powered (0x0005): Invalid Parameters (0x0d) Test condition complete, 0 left
Set powered on - Invalid parameters 3 - test passed Set powered on - Invalid parameters 3 - teardown
Index Removed callback

    Index: 0x0000

Set powered on - Invalid parameters 3 - teardown complete Set powered on - Invalid parameters 3 - done

Set powered on - Invalid index - init
Read Version callback

    Status: Success (0x00)
    Version 1.19
  Read Commands callback
    Status: Success (0x00)
  Read Index List callback
    Status: Success (0x00)
  Index Added callback
    Index: 0x0000
  Read Info callback
    Status: Success (0x00)
    Address: 00:AA:01:00:00:00
    Version: 0x09
    Manufacturer: 0x003f
    Supported settings: 0x0001beff
    Current settings: 0x00000080
    Class: 0x000000
    Name: 
    Short name: 

Set powered on - Invalid index - setup
Set powered on - Invalid index - setup complete
Set powered on - Invalid index - run
Sending Set Powered (0x0005)
Test condition added, total 1
Set Powered (0x0005): Invalid Index (0x11)
Test condition complete, 0 left
Set powered on - Invalid index - test passed
Set powered on - Invalid index - teardown
Index Removed callback

    Index: 0x0000

Set powered on - Invalid index - teardown complete Set powered on - Invalid index - done

Set powered on - Privacy and Advertising - init
Read Version callback

    Status: Success (0x00)
    Version 1.19
  Read Commands callback
    Status: Success (0x00)
  Read Index List callback
    Status: Success (0x00)
  Index Added callback
    Index: 0x0000
  Read Info callback
    Status: Success (0x00)
    Address: 00:AA:01:00:00:00
    Version: 0x09
    Manufacturer: 0x003f
    Supported settings: 0x0001be1b
    Current settings: 0x00000200
    Class: 0x000000
    Name: 
    Short name: 

Set powered on - Privacy and Advertising - setup
Initial settings completed
Client set connectable: Success (0x00)
Set powered on - Privacy and Advertising - setup complete Set powered on - Privacy and Advertising - run
Sending Set Advertising (0x0029)
Test condition added, total 1
Set Advertising (0x0029): Success (0x00)
Test condition complete, 0 left
Set powered on - Privacy and Advertising - test passed Set powered on - Privacy and Advertising - teardown
Index Removed callback

    Index: 0x0000

Set powered on - Privacy and Advertising - teardown complete Set powered on - Privacy and Advertising - done

Set powered off - Success - init
Read Version callback

    Status: Success (0x00)
    Version 1.19
  Read Commands callback
    Status: Success (0x00)
  Read Index List callback
    Status: Success (0x00)
  Index Added callback
    Index: 0x0000
  Read Info callback
    Status: Success (0x00)
    Address: 00:AA:01:00:00:00
    Version: 0x09
    Manufacturer: 0x003f
    Supported settings: 0x0001beff
    Current settings: 0x00000080
    Class: 0x000000
    Name: 
    Short name: 

Set powered off - Success - setup
Initial settings completed
Client set connectable: Success (0x00)
Set powered off - Success - setup complete
Set powered off - Success - run
Registering new settings notification
Test condition added, total 1
Sending Set Powered (0x0005)
Test condition added, total 2
Set Powered (0x0005): Success (0x00)
Test condition complete, 1 left
New settings 0x00000080 received
Unregistering new settings notification
Test condition complete, 0 left
Set powered off - Success - test passed
Set powered off - Success - teardown
Index Removed callback

    Index: 0x0000

Set powered off - Success - teardown complete
Set powered off - Success - done

Set powered off - Class of Device - init
Read Version callback

    Status: Success (0x00)
    Version 1.19
  Read Commands callback
    Status: Success (0x00)
  Read Index List callback
    Status: Success (0x00)
  Index Added callback
    Index: 0x0000
  Read Info callback
    Status: Success (0x00)
    Address: 00:AA:01:00:00:00
    Version: 0x09
    Manufacturer: 0x003f
    Supported settings: 0x0001beff
    Current settings: 0x00000080
    Class: 0x000000
    Name: 
    Short name: 

Set powered off - Class of Device - setup
Setting device class and powering on Controller powered on
Client set connectable: Success (0x00)
Set powered off - Class of Device - setup complete Set powered off - Class of Device - run
Registering new settings notification Test condition added, total 1 Registering Class of Device Changed notification Test condition added, total 2
Sending Set Powered (0x0005)
Test condition added, total 3
Set Powered (0x0005): Success (0x00) Test condition complete, 2 left
New Class of Device Changed event received Test condition complete, 1 left
New settings 0x00000080 received Unregistering new settings notification Test condition complete, 0 left
Set powered off - Class of Device - test passed Set powered off - Class of Device - teardown
Index Removed callback

    Index: 0x0000

Set powered off - Class of Device - teardown complete Set powered off - Class of Device - done

Set powered off - Invalid parameters 1 - init
Read Version callback

    Status: Success (0x00)
    Version 1.19
  Read Commands callback
    Status: Success (0x00)
  Read Index List callback
    Status: Success (0x00)
  Index Added callback
    Index: 0x0000
  Read Info callback
    Status: Success (0x00)
    Address: 00:AA:01:00:00:00
    Version: 0x09
    Manufacturer: 0x003f
    Supported settings: 0x0001beff
    Current settings: 0x00000080
    Class: 0x000000
    Name: 
    Short name: 

Set powered off - Invalid parameters 1 - setup
Initial settings completed
Client set connectable: Success (0x00)
Set powered off - Invalid parameters 1 - setup complete Set powered off - Invalid parameters 1 - run
Sending Set Powered (0x0005)
Test condition added, total 1
Set Powered (0x0005): Invalid Parameters (0x0d) Test condition complete, 0 left
Set powered off - Invalid parameters 1 - test passed Set powered off - Invalid parameters 1 - teardown
Index Removed callback

    Index: 0x0000

Set powered off - Invalid parameters 1 - teardown complete Set powered off - Invalid parameters 1 - done

Set powered off - Invalid parameters 2 - init
Read Version callback

    Status: Success (0x00)
    Version 1.19
  Read Commands callback
    Status: Success (0x00)
  Read Index List callback
    Status: Success (0x00)
  Index Added callback
    Index: 0x0000
  Read Info callback
    Status: Success (0x00)
    Address: 00:AA:01:00:00:00
    Version: 0x09
    Manufacturer: 0x003f
    Supported settings: 0x0001beff
    Current settings: 0x00000080
    Class: 0x000000
    Name: 
    Short name: 

Set powered off - Invalid parameters 2 - setup
Initial settings completed
Client set connectable: Success (0x00)
Set powered off - Invalid parameters 2 - setup complete Set powered off - Invalid parameters 2 - run
Sending Set Powered (0x0005)
Test condition added, total 1
Set Powered (0x0005): Invalid Parameters (0x0d) Test condition complete, 0 left
Set powered off - Invalid parameters 2 - test passed Set powered off - Invalid parameters 2 - teardown
Index Removed callback

    Index: 0x0000

Set powered off - Invalid parameters 2 - teardown complete Set powered off - Invalid parameters 2 - done

Set powered off - Invalid parameters 3 - init
Read Version callback

    Status: Success (0x00)
    Version 1.19
  Read Commands callback
    Status: Success (0x00)
  Read Index List callback
    Status: Success (0x00)
  Index Added callback
    Index: 0x0000
  Read Info callback
    Status: Success (0x00)
    Address: 00:AA:01:00:00:00
    Version: 0x09
    Manufacturer: 0x003f
    Supported settings: 0x0001beff
    Current settings: 0x00000080
    Class: 0x000000
    Name: 
    Short name: 

Set powered off - Invalid parameters 3 - setup
Initial settings completed
Client set connectable: Success (0x00)
Set powered off - Invalid parameters 3 - setup complete Set powered off - Invalid parameters 3 - run
Sending Set Powered (0x0005)
Test condition added, total 1
Set Powered (0x0005): Invalid Parameters (0x0d) Test condition complete, 0 left
Set powered off - Invalid parameters 3 - test passed Set powered off - Invalid parameters 3 - teardown
Index Removed callback

    Index: 0x0000

Set powered off - Invalid parameters 3 - teardown complete Set powered off - Invalid parameters 3 - done

Set connectable on - Success 1 - init
Read Version callback

    Status: Success (0x00)
    Version 1.19
  Read Commands callback
    Status: Success (0x00)
  Read Index List callback
    Status: Success (0x00)
  Index Added callback
    Index: 0x0000
  Read Info callback
    Status: Success (0x00)
    Address: 00:AA:01:00:00:00
    Version: 0x09
    Manufacturer: 0x003f
    Supported settings: 0x0001beff
    Current settings: 0x00000080
    Class: 0x000000
    Name: 
    Short name: 

Set connectable on - Success 1 - setup
Set connectable on - Success 1 - setup complete
Set connectable on - Success 1 - run
Registering new settings notification
Test condition added, total 1
Sending Set Connectable (0x0007)
Test condition added, total 2
Set Connectable (0x0007): Success (0x00)
Test condition complete, 1 left
New settings 0x00000082 received
Unregistering new settings notification
Test condition complete, 0 left
Set connectable on - Success 1 - test passed
Set connectable on - Success 1 - teardown
Index Removed callback

    Index: 0x0000

Set connectable on - Success 1 - teardown complete Set connectable on - Success 1 - done

Set connectable on - Success 2 - init
Read Version callback

    Status: Success (0x00)
    Version 1.19
  Read Commands callback
    Status: Success (0x00)
  Read Index List callback
    Status: Success (0x00)
  Index Added callback
    Index: 0x0000
  Read Info callback
    Status: Success (0x00)
    Address: 00:AA:01:00:00:00
    Version: 0x09
    Manufacturer: 0x003f
    Supported settings: 0x0001beff
    Current settings: 0x00000080
    Class: 0x000000
    Name: 
    Short name: 

Set connectable on - Success 2 - setup
Initial settings completed
Client set connectable: Success (0x00)
Set connectable on - Success 2 - setup complete
Set connectable on - Success 2 - run
Registering new settings notification
Test condition added, total 1
Registering HCI command callback
Test condition added, total 2
Sending Set Connectable (0x0007)
Test condition added, total 3
HCI Command 0x0c1a length 1
Test condition complete, 2 left
Set Connectable (0x0007): Success (0x00)
Test condition complete, 1 left
New settings 0x00000083 received
Unregistering new settings notification
Test condition complete, 0 left
Set connectable on - Success 2 - test passed
Set connectable on - Success 2 - teardown
New settings event received
Index Removed callback

    Index: 0x0000

Set connectable on - Success 2 - teardown complete Set connectable on - Success 2 - done

Set connectable on - Invalid parameters 1 - init
Read Version callback

    Status: Success (0x00)
    Version 1.19
  Read Commands callback
    Status: Success (0x00)
  Read Index List callback
    Status: Success (0x00)
  Index Added callback
    Index: 0x0000
  Read Info callback
    Status: Success (0x00)
    Address: 00:AA:01:00:00:00
    Version: 0x09
    Manufacturer: 0x003f
    Supported settings: 0x0001beff
    Current settings: 0x00000080
    Class: 0x000000
    Name: 
    Short name: 

Set connectable on - Invalid parameters 1 - setup Set connectable on - Invalid parameters 1 - setup complete Set connectable on - Invalid parameters 1 - run
Sending Set Connectable (0x0007)
Test condition added, total 1
Set Connectable (0x0007): Invalid Parameters (0x0d) Test condition complete, 0 left
Set connectable on - Invalid parameters 1 - test passed Set connectable on - Invalid parameters 1 - teardown
Index Removed callback

    Index: 0x0000

Set connectable on - Invalid parameters 1 - teardown complete Set connectable on - Invalid parameters 1 - done

Set connectable on - Invalid parameters 2 - init
Read Version callback

    Status: Success (0x00)
    Version 1.19
  Read Commands callback
    Status: Success (0x00)
  Read Index List callback
    Status: Success (0x00)
  Index Added callback
    Index: 0x0000
  Read Info callback
    Status: Success (0x00)
    Address: 00:AA:01:00:00:00
    Version: 0x09
    Manufacturer: 0x003f
    Supported settings: 0x0001beff
    Current settings: 0x00000080
    Class: 0x000000
    Name: 
    Short name: 

Set connectable on - Invalid parameters 2 - setup Set connectable on - Invalid parameters 2 - setup complete Set connectable on - Invalid parameters 2 - run
Sending Set Connectable (0x0007)
Test condition added, total 1
Set Connectable (0x0007): Invalid Parameters (0x0d) Test condition complete, 0 left
Set connectable on - Invalid parameters 2 - test passed Set connectable on - Invalid parameters 2 - teardown
Index Removed callback

    Index: 0x0000

Set connectable on - Invalid parameters 2 - teardown complete Set connectable on - Invalid parameters 2 - done

Set connectable on - Invalid parameters 3 - init
Read Version callback

    Status: Success (0x00)
    Version 1.19
  Read Commands callback
    Status: Success (0x00)
  Read Index List callback
    Status: Success (0x00)
  Index Added callback
    Index: 0x0000
  Read Info callback
    Status: Success (0x00)
    Address: 00:AA:01:00:00:00
    Version: 0x09
    Manufacturer: 0x003f
    Supported settings: 0x0001beff
    Current settings: 0x00000080
    Class: 0x000000
    Name: 
    Short name: 

Set connectable on - Invalid parameters 3 - setup Set connectable on - Invalid parameters 3 - setup complete Set connectable on - Invalid parameters 3 - run
Sending Set Connectable (0x0007)
Test condition added, total 1
Set Connectable (0x0007): Invalid Parameters (0x0d) Test condition complete, 0 left
Set connectable on - Invalid parameters 3 - test passed Set connectable on - Invalid parameters 3 - teardown
Index Removed callback

    Index: 0x0000

Set connectable on - Invalid parameters 3 - teardown complete Set connectable on - Invalid parameters 3 - done

Set connectable on - Invalid index - init
Read Version callback

    Status: Success (0x00)
    Version 1.19
  Read Commands callback
    Status: Success (0x00)
  Read Index List callback
    Status: Success (0x00)
  Index Added callback
    Index: 0x0000
  Read Info callback
    Status: Success (0x00)
    Address: 00:AA:01:00:00:00
    Version: 0x09
    Manufacturer: 0x003f
    Supported settings: 0x0001beff
    Current settings: 0x00000080
    Class: 0x000000
    Name: 
    Short name: 

Set connectable on - Invalid index - setup Set connectable on - Invalid index - setup complete Set connectable on - Invalid index - run
Sending Set Connectable (0x0007)
Test condition added, total 1
Set Connectable (0x0007): Invalid Index (0x11) Test condition complete, 0 left
Set connectable on - Invalid index - test passed Set connectable on - Invalid index - teardown
Index Removed callback

    Index: 0x0000

Set connectable on - Invalid index - teardown complete Set connectable on - Invalid index - done

Set connectable on (LE) - Success 1 - init
Read Version callback

    Status: Success (0x00)
    Version 1.19
  Read Commands callback
    Status: Success (0x00)
  Read Index List callback
    Status: Success (0x00)
  Index Added callback
    Index: 0x0000
  Read Info callback
    Status: Success (0x00)
    Address: 00:AA:01:00:00:00
    Version: 0x09
    Manufacturer: 0x003f
    Supported settings: 0x0001be1b
    Current settings: 0x00000200
    Class: 0x000000
    Name: 
    Short name: 

Set connectable on (LE) - Success 1 - setup Set connectable on (LE) - Success 1 - setup complete Set connectable on (LE) - Success 1 - run
Registering new settings notification
Test condition added, total 1
Sending Set Connectable (0x0007)
Test condition added, total 2
Set Connectable (0x0007): Success (0x00) Test condition complete, 1 left
New settings 0x00000202 received Unregistering new settings notification Test condition complete, 0 left
Set connectable on (LE) - Success 1 - test passed Set connectable on (LE) - Success 1 - teardown
Index Removed callback

    Index: 0x0000

Set connectable on (LE) - Success 1 - teardown complete Set connectable on (LE) - Success 1 - done

Set connectable on (LE) - Success 2 - init
Read Version callback

    Status: Success (0x00)
    Version 1.19
  Read Commands callback
    Status: Success (0x00)
  Read Index List callback
    Status: Success (0x00)
  Index Added callback
    Index: 0x0000
  Read Info callback
    Status: Success (0x00)
    Address: 00:AA:01:00:00:00
    Version: 0x09
    Manufacturer: 0x003f
    Supported settings: 0x0001be1b
    Current settings: 0x00000200
    Class: 0x000000
    Name: 
    Short name: 

Set connectable on (LE) - Success 2 - setup
Initial settings completed
Client set connectable: Success (0x00)
Set connectable on (LE) - Success 2 - setup complete Set connectable on (LE) - Success 2 - run
Registering new settings notification
Test condition added, total 1
Sending Set Connectable (0x0007)
Test condition added, total 2
Set Connectable (0x0007): Success (0x00) Test condition complete, 1 left
New settings 0x00000203 received Unregistering new settings notification Test condition complete, 0 left
Set connectable on (LE) - Success 2 - test passed Set connectable on (LE) - Success 2 - teardown
New settings event received
Index Removed callback

    Index: 0x0000

Set connectable on (LE) - Success 2 - teardown complete Set connectable on (LE) - Success 2 - done

Set connectable on (LE) - Success 3 - init
Read Version callback

    Status: Success (0x00)
    Version 1.19
  Read Commands callback
    Status: Success (0x00)
  Read Index List callback
    Status: Success (0x00)
  Index Added callback
    Index: 0x0000
  Read Info callback
    Status: Success (0x00)
    Address: 00:AA:01:00:00:00
    Version: 0x09
    Manufacturer: 0x003f
    Supported settings: 0x0001be1b
    Current settings: 0x00000200
    Class: 0x000000
    Name: 
    Short name: 

Set connectable on (LE) - Success 3 - setup
Initial settings completed
Client set connectable: Success (0x00)
Set connectable on (LE) - Success 3 - setup complete Set connectable on (LE) - Success 3 - run
Registering new settings notification
Test condition added, total 1
Registering HCI command callback
Test condition added, total 2
Sending Set Connectable (0x0007)
Test condition added, total 3
HCI Command 0x200a length 1
HCI Command 0x2006 length 15
Test condition complete, 2 left
HCI Command 0x200a length 1
Set Connectable (0x0007): Success (0x00) Test condition complete, 1 left
New settings 0x00000603 received Unregistering new settings notification Test condition complete, 0 left
Set connectable on (LE) - Success 3 - test passed Set connectable on (LE) - Success 3 - teardown
New settings event received
Index Removed callback

    Index: 0x0000

Set connectable on (LE) - Success 3 - teardown complete Set connectable on (LE) - Success 3 - done

Set connectable off - Success 1 - init
Read Version callback

    Status: Success (0x00)
    Version 1.19
  Read Commands callback
    Status: Success (0x00)
  Read Index List callback
    Status: Success (0x00)
  Index Added callback
    Index: 0x0000
  Read Info callback
    Status: Success (0x00)
    Address: 00:AA:01:00:00:00
    Version: 0x09
    Manufacturer: 0x003f
    Supported settings: 0x0001beff
    Current settings: 0x00000080
    Class: 0x000000
    Name: 
    Short name: 

Set connectable off - Success 1 - setup
Initial settings completed
Client set connectable: Success (0x00)
Set connectable off - Success 1 - setup complete
Set connectable off - Success 1 - run
Registering new settings notification
Test condition added, total 1
Sending Set Connectable (0x0007)
Test condition added, total 2
Set Connectable (0x0007): Success (0x00)
Test condition complete, 1 left
New settings 0x00000080 received
Unregistering new settings notification
Test condition complete, 0 left
Set connectable off - Success 1 - test passed
Set connectable off - Success 1 - teardown
Index Removed callback

    Index: 0x0000

Set connectable off - Success 1 - teardown complete Set connectable off - Success 1 - done

Set connectable off - Success 2 - init
Read Version callback

    Status: Success (0x00)
    Version 1.19
  Read Commands callback
    Status: Success (0x00)
  Read Index List callback
    Status: Success (0x00)
  Index Added callback
    Index: 0x0000
  Read Info callback
    Status: Success (0x00)
    Address: 00:AA:01:00:00:00
    Version: 0x09
    Manufacturer: 0x003f
    Supported settings: 0x0001beff
    Current settings: 0x00000080
    Class: 0x000000
    Name: 
    Short name: 

Set connectable off - Success 2 - setup
Initial settings completed
Client set connectable: Success (0x00)
Set connectable off - Success 2 - setup complete
Set connectable off - Success 2 - run
Registering new settings notification
Test condition added, total 1
Registering HCI command callback
Test condition added, total 2
Sending Set Connectable (0x0007)
Test condition added, total 3
HCI Command 0x0c1a length 1
Test condition complete, 2 left
Set Connectable (0x0007): Success (0x00)
Test condition complete, 1 left
New settings 0x00000081 received
Unregistering new settings notification
Test condition complete, 0 left
Set connectable off - Success 2 - test passed
Set connectable off - Success 2 - teardown
New settings event received
Index Removed callback

    Index: 0x0000

Set connectable off - Success 2 - teardown complete Set connectable off - Success 2 - done

Set connectable off - Success 3 - init
Read Version callback

    Status: Success (0x00)
    Version 1.19
  Read Commands callback
    Status: Success (0x00)
  Read Index List callback
    Status: Success (0x00)
  Index Added callback
    Index: 0x0000
  Read Info callback
    Status: Success (0x00)
    Address: 00:AA:01:00:00:00
    Version: 0x09
    Manufacturer: 0x003f
    Supported settings: 0x0001beff
    Current settings: 0x00000080
    Class: 0x000000
    Name: 
    Short name: 

Set connectable off - Success 3 - setup
Initial settings completed
Client set connectable: Success (0x00)
Set connectable off - Success 3 - setup complete
Set connectable off - Success 3 - run
Registering new settings notification
Test condition added, total 1
Registering HCI command callback
Test condition added, total 2
Sending Set Connectable (0x0007)
Test condition added, total 3
HCI Command 0x0c1a length 1
Test condition complete, 2 left
Set Connectable (0x0007): Success (0x00)
Test condition complete, 1 left
New settings 0x00000081 received
Unregistering new settings notification
Test condition complete, 0 left
Set connectable off - Success 3 - test passed
Set connectable off - Success 3 - teardown
New settings event received
Index Removed callback

    Index: 0x0000

Set connectable off - Success 3 - teardown complete Set connectable off - Success 3 - done

Set connectable off - Success 4 - init
Read Version callback

    Status: Success (0x00)
    Version 1.19
  Read Commands callback
    Status: Success (0x00)
  Read Index List callback
    Status: Success (0x00)
  Index Added callback
    Index: 0x0000
  Read Info callback
    Status: Success (0x00)
    Address: 00:AA:01:00:00:00
    Version: 0x09
    Manufacturer: 0x003f
    Supported settings: 0x0001beff
    Current settings: 0x00000080
    Class: 0x000000
    Name: 
    Short name: 

Set connectable off - Success 4 - setup
Initial settings completed
Powering on controller (with added device)
Controller powered on
Client set connectable: Success (0x00)
Set connectable off - Success 4 - setup complete
Set connectable off - Success 4 - run
Registering new settings notification
Test condition added, total 1
Registering HCI command callback
Test condition added, total 2
Sending Set Connectable (0x0007)
Test condition added, total 3
HCI Command 0x0c1a length 1
Test condition complete, 2 left
Set Connectable (0x0007): Success (0x00)
Test condition complete, 1 left
New settings 0x00000081 received
Unregistering new settings notification
Test condition complete, 0 left
Set connectable off - Success 4 - test passed
Set connectable off - Success 4 - teardown
New settings event received
Index Removed callback

    Index: 0x0000

Set connectable off - Success 4 - teardown complete Set connectable off - Success 4 - done

Set connectable off (LE) - Success 1 - init
Read Version callback

    Status: Success (0x00)
    Version 1.19
  Read Commands callback
    Status: Success (0x00)
  Read Index List callback
    Status: Success (0x00)
  Index Added callback
    Index: 0x0000
  Read Info callback
    Status: Success (0x00)
    Address: 00:AA:01:00:00:00
    Version: 0x09
    Manufacturer: 0x003f
    Supported settings: 0x0001be1b
    Current settings: 0x00000200
    Class: 0x000000
    Name: 
    Short name: 

Set connectable off (LE) - Success 1 - setup
Initial settings completed
Client set connectable: Success (0x00)
Set connectable off (LE) - Success 1 - setup complete Set connectable off (LE) - Success 1 - run
Registering new settings notification
Test condition added, total 1
Sending Set Connectable (0x0007)
Test condition added, total 2
Set Connectable (0x0007): Success (0x00) Test condition complete, 1 left
New settings 0x00000200 received Unregistering new settings notification Test condition complete, 0 left
Set connectable off (LE) - Success 1 - test passed Set connectable off (LE) - Success 1 - teardown
Index Removed callback

    Index: 0x0000

Set connectable off (LE) - Success 1 - teardown complete Set connectable off (LE) - Success 1 - done

Set connectable off (LE) - Success 2 - init
Read Version callback

    Status: Success (0x00)
    Version 1.19
  Read Commands callback
    Status: Success (0x00)
  Read Index List callback
    Status: Success (0x00)
  Index Added callback
    Index: 0x0000
  Read Info callback
    Status: Success (0x00)
    Address: 00:AA:01:00:00:00
    Version: 0x09
    Manufacturer: 0x003f
    Supported settings: 0x0001be1b
    Current settings: 0x00000200
    Class: 0x000000
    Name: 
    Short name: 

Set connectable off (LE) - Success 2 - setup
Initial settings completed
Client set connectable: Success (0x00)
Set connectable off (LE) - Success 2 - setup complete Set connectable off (LE) - Success 2 - run
Registering new settings notification
Test condition added, total 1
Registering HCI command callback
Test condition added, total 2
Sending Set Connectable (0x0007)
Test condition added, total 3
HCI Command 0x200a length 1
HCI Command 0x2005 length 6
HCI Command 0x2006 length 15
Test condition complete, 2 left
HCI Command 0x200a length 1
Set Connectable (0x0007): Success (0x00) Test condition complete, 1 left
New settings 0x00000601 received Unregistering new settings notification Test condition complete, 0 left
Set connectable off (LE) - Success 2 - test passed Set connectable off (LE) - Success 2 - teardown
New settings event received
Index Removed callback

    Index: 0x0000

Set connectable off (LE) - Success 2 - teardown complete Set connectable off (LE) - Success 2 - done

Set connectable off (LE) - Success 3 - init
Read Version callback

    Status: Success (0x00)
    Version 1.19
  Read Commands callback
    Status: Success (0x00)
  Read Index List callback
    Status: Success (0x00)
  Index Added callback
    Index: 0x0000
  Read Info callback
    Status: Success (0x00)
    Address: 00:AA:01:00:00:00
    Version: 0x09
    Manufacturer: 0x003f
    Supported settings: 0x0001be1b
    Current settings: 0x00000200
    Class: 0x000000
    Name: 
    Short name: 

Set connectable off (LE) - Success 3 - setup
Initial settings completed
Client set connectable: Success (0x00)
Set connectable off (LE) - Success 3 - setup complete Set connectable off (LE) - Success 3 - run
Registering new settings notification
Test condition added, total 1
Registering HCI command callback
Test condition added, total 2
Sending Set Connectable (0x0007)
Test condition added, total 3
HCI Command 0x2008 length 32
HCI Command 0x200a length 1
HCI Command 0x2005 length 6
HCI Command 0x2006 length 15
Test condition complete, 2 left
HCI Command 0x200a length 1
Set Connectable (0x0007): Success (0x00) Test condition complete, 1 left
New settings 0x00000601 received Unregistering new settings notification Test condition complete, 0 left
Set connectable off (LE) - Success 3 - test passed Set connectable off (LE) - Success 3 - teardown
New settings event received
Index Removed callback

    Index: 0x0000

Set connectable off (LE) - Success 3 - teardown complete Set connectable off (LE) - Success 3 - done

Set connectable off (LE) - Success 4 - init
Read Version callback

    Status: Success (0x00)
    Version 1.19
  Read Commands callback
    Status: Success (0x00)
  Read Index List callback
    Status: Success (0x00)
  Index Added callback
    Index: 0x0000
  Read Info callback
    Status: Success (0x00)
    Address: 00:AA:01:00:00:00
    Version: 0x09
    Manufacturer: 0x003f
    Supported settings: 0x0001be1b
    Current settings: 0x00000200
    Class: 0x000000
    Name: 
    Short name: 

Set connectable off (LE) - Success 4 - setup
Initial settings completed
Client set connectable: Success (0x00)
Set connectable off (LE) - Success 4 - setup complete Set connectable off (LE) - Success 4 - run
Registering new settings notification
Test condition added, total 1
Registering HCI command callback
Test condition added, total 2
Sending Set Connectable (0x0007)
Test condition added, total 3
HCI Command 0x2008 length 32
HCI Command 0x200a length 1
HCI Command 0x2005 length 6
HCI Command 0x2006 length 15
Test condition complete, 2 left
HCI Command 0x200a length 1
Set Connectable (0x0007): Success (0x00) Test condition complete, 1 left
New settings 0x00000601 received Unregistering new settings notification Test condition complete, 0 left
Set connectable off (LE) - Success 4 - test passed Set connectable off (LE) - Success 4 - teardown
New settings event received
Index Removed callback

    Index: 0x0000

Set connectable off (LE) - Success 4 - teardown complete Set connectable off (LE) - Success 4 - done

Set fast connectable on - Success 1 - init
Read Version callback

    Status: Success (0x00)
    Version 1.19
  Read Commands callback
    Status: Success (0x00)
  Read Index List callback
    Status: Success (0x00)
  Index Added callback
    Index: 0x0000
  Read Info callback
    Status: Success (0x00)
    Address: 00:AA:01:00:00:00
    Version: 0x09
    Manufacturer: 0x003f
    Supported settings: 0x0001beff
    Current settings: 0x00000080
    Class: 0x000000
    Name: 
    Short name: 

Set fast connectable on - Success 1 - setup
Initial settings completed
Client set connectable: Success (0x00)
Set fast connectable on - Success 1 - setup complete Set fast connectable on - Success 1 - run
Registering new settings notification
Test condition added, total 1
Sending Set Fast Connectable (0x0008)
Test condition added, total 2
Set Fast Connectable (0x0008): Success (0x00) Test condition complete, 1 left
New settings 0x00000087 received Unregistering new settings notification Test condition complete, 0 left
Set fast connectable on - Success 1 - test passed Set fast connectable on - Success 1 - teardown
New settings event received
Index Removed callback

    Index: 0x0000

Set fast connectable on - Success 1 - teardown complete Set fast connectable on - Success 1 - done

Set fast connectable on - Success 2 - init
Read Version callback

    Status: Success (0x00)
    Version 1.19
  Read Commands callback
    Status: Success (0x00)
  Read Index List callback
    Status: Success (0x00)
  Index Added callback
    Index: 0x0000
  Read Info callback
    Status: Success (0x00)
    Address: 00:AA:01:00:00:00
    Version: 0x09
    Manufacturer: 0x003f
    Supported settings: 0x0001beff
    Current settings: 0x00000080
    Class: 0x000000
    Name: 
    Short name: 

Set fast connectable on - Success 2 - setup
Initial settings completed
Client set connectable: Success (0x00)
Set fast connectable on - Success 2 - setup complete Set fast connectable on - Success 2 - run
Registering new settings notification
Test condition added, total 1
Sending Set Fast Connectable (0x0008)
Test condition added, total 2
Set Fast Connectable (0x0008): Success (0x00) Test condition complete, 1 left
New settings 0x00000085 received Unregistering new settings notification Test condition complete, 0 left
Set fast connectable on - Success 2 - test passed Set fast connectable on - Success 2 - teardown
New settings event received
Index Removed callback

    Index: 0x0000

Set fast connectable on - Success 2 - teardown complete Set fast connectable on - Success 2 - done

Set fast connectable on - Success 3 - init
Read Version callback

    Status: Success (0x00)
    Version 1.19
  Read Commands callback
    Status: Success (0x00)
  Read Index List callback
    Status: Success (0x00)
  Index Added callback
    Index: 0x0000
  Read Info callback
    Status: Success (0x00)
    Address: 00:AA:01:00:00:00
    Version: 0x09
    Manufacturer: 0x003f
    Supported settings: 0x0001beff
    Current settings: 0x00000080
    Class: 0x000000
    Name: 
    Short name: 

Set fast connectable on - Success 3 - setup Set fast connectable on - Success 3 - setup complete Set fast connectable on - Success 3 - run
Registering new settings notification
Test condition added, total 1
Sending Set Fast Connectable (0x0008)
Test condition added, total 2
Set Fast Connectable (0x0008): Success (0x00) Test condition complete, 1 left
New settings 0x00000084 received Unregistering new settings notification Test condition complete, 0 left
Set fast connectable on - Success 3 - test passed Set fast connectable on - Success 3 - teardown
Index Removed callback

    Index: 0x0000

Set fast connectable on - Success 3 - teardown complete Set fast connectable on - Success 3 - done

Set fast connectable on - Invalid Params 1 - init
Read Version callback

    Status: Success (0x00)
    Version 1.19
  Read Commands callback
    Status: Success (0x00)
  Read Index List callback
    Status: Success (0x00)
  Index Added callback
    Index: 0x0000
  Read Info callback
    Status: Success (0x00)
    Address: 00:AA:01:00:00:00
    Version: 0x09
    Manufacturer: 0x003f
    Supported settings: 0x0001beff
    Current settings: 0x00000080
    Class: 0x000000
    Name: 
    Short name: 

Set fast connectable on - Invalid Params 1 - setup Set fast connectable on - Invalid Params 1 - setup complete Set fast connectable on - Invalid Params 1 - run
Sending Set Fast Connectable (0x0008)
Test condition added, total 1
Set Fast Connectable (0x0008): Invalid Parameters (0x0d) Test condition complete, 0 left
Set fast connectable on - Invalid Params 1 - test passed Set fast connectable on - Invalid Params 1 - teardown
Index Removed callback

    Index: 0x0000

Set fast connectable on - Invalid Params 1 - teardown complete Set fast connectable on - Invalid Params 1 - done

Set fast connectable on - Not Supported 1 - init
Read Version callback

    Status: Success (0x00)
    Version 1.19
  Read Commands callback
    Status: Success (0x00)
  Read Index List callback
    Status: Success (0x00)
  Index Added callback
    Index: 0x0000
  Read Info callback
    Status: Success (0x00)
    Address: 00:AA:01:00:00:00
    Version: 0x09
    Manufacturer: 0x003f
    Supported settings: 0x0001be1b
    Current settings: 0x00000200
    Class: 0x000000
    Name: 
    Short name: 

Set fast connectable on - Not Supported 1 - setup
Initial settings completed
Client set connectable: Success (0x00)
Set fast connectable on - Not Supported 1 - setup complete Set fast connectable on - Not Supported 1 - run
Sending Set Fast Connectable (0x0008)
Test condition added, total 1
Set Fast Connectable (0x0008): Not Supported (0x0c) Test condition complete, 0 left
Set fast connectable on - Not Supported 1 - test passed Set fast connectable on - Not Supported 1 - teardown
Index Removed callback

    Index: 0x0000

Set fast connectable on - Not Supported 1 - teardown complete Set fast connectable on - Not Supported 1 - done

Set bondable on - Success - init
Read Version callback

    Status: Success (0x00)
    Version 1.19
  Read Commands callback
    Status: Success (0x00)
  Read Index List callback
    Status: Success (0x00)
  Index Added callback
    Index: 0x0000
  Read Info callback
    Status: Success (0x00)
    Address: 00:AA:01:00:00:00
    Version: 0x09
    Manufacturer: 0x003f
    Supported settings: 0x0001beff
    Current settings: 0x00000080
    Class: 0x000000
    Name: 
    Short name: 

Set bondable on - Success - setup
Set bondable on - Success - setup complete
Set bondable on - Success - run
Registering new settings notification
Test condition added, total 1
Sending Set Bondable (0x0009)
Test condition added, total 2
Set Bondable (0x0009): Success (0x00)
Test condition complete, 1 left
New settings 0x00000090 received
Unregistering new settings notification
Test condition complete, 0 left
Set bondable on - Success - test passed
Set bondable on - Success - teardown
Index Removed callback

    Index: 0x0000

Set bondable on - Success - teardown complete
Set bondable on - Success - done

Set bondable on - Invalid parameters 1 - init
Read Version callback

    Status: Success (0x00)
    Version 1.19
  Read Commands callback
    Status: Success (0x00)
  Read Index List callback
    Status: Success (0x00)
  Index Added callback
    Index: 0x0000
  Read Info callback
    Status: Success (0x00)
    Address: 00:AA:01:00:00:00
    Version: 0x09
    Manufacturer: 0x003f
    Supported settings: 0x0001beff
    Current settings: 0x00000080
    Class: 0x000000
    Name: 
    Short name: 

Set bondable on - Invalid parameters 1 - setup Set bondable on - Invalid parameters 1 - setup complete Set bondable on - Invalid parameters 1 - run
Sending Set Bondable (0x0009)
Test condition added, total 1
Set Bondable (0x0009): Invalid Parameters (0x0d) Test condition complete, 0 left
Set bondable on - Invalid parameters 1 - test passed Set bondable on - Invalid parameters 1 - teardown
Index Removed callback

    Index: 0x0000

Set bondable on - Invalid parameters 1 - teardown complete Set bondable on - Invalid parameters 1 - done

Set bondable on - Invalid parameters 2 - init
Read Version callback

    Status: Success (0x00)
    Version 1.19
  Read Commands callback
    Status: Success (0x00)
  Read Index List callback
    Status: Success (0x00)
  Index Added callback
    Index: 0x0000
  Read Info callback
    Status: Success (0x00)
    Address: 00:AA:01:00:00:00
    Version: 0x09
    Manufacturer: 0x003f
    Supported settings: 0x0001beff
    Current settings: 0x00000080
    Class: 0x000000
    Name: 
    Short name: 

Set bondable on - Invalid parameters 2 - setup Set bondable on - Invalid parameters 2 - setup complete Set bondable on - Invalid parameters 2 - run
Sending Set Bondable (0x0009)
Test condition added, total 1
Set Bondable (0x0009): Invalid Parameters (0x0d) Test condition complete, 0 left
Set bondable on - Invalid parameters 2 - test passed Set bondable on - Invalid parameters 2 - teardown
Index Removed callback

    Index: 0x0000

Set bondable on - Invalid parameters 2 - teardown complete Set bondable on - Invalid parameters 2 - done

Set bondable on - Invalid parameters 3 - init
Read Version callback

    Status: Success (0x00)
    Version 1.19
  Read Commands callback
    Status: Success (0x00)
  Read Index List callback
    Status: Success (0x00)
  Index Added callback
    Index: 0x0000
  Read Info callback
    Status: Success (0x00)
    Address: 00:AA:01:00:00:00
    Version: 0x09
    Manufacturer: 0x003f
    Supported settings: 0x0001beff
    Current settings: 0x00000080
    Class: 0x000000
    Name: 
    Short name: 

Set bondable on - Invalid parameters 3 - setup Set bondable on - Invalid parameters 3 - setup complete Set bondable on - Invalid parameters 3 - run
Sending Set Bondable (0x0009)
Test condition added, total 1
Set Bondable (0x0009): Invalid Parameters (0x0d) Test condition complete, 0 left
Set bondable on - Invalid parameters 3 - test passed Set bondable on - Invalid parameters 3 - teardown
Index Removed callback

    Index: 0x0000

Set bondable on - Invalid parameters 3 - teardown complete Set bondable on - Invalid parameters 3 - done

Set bondable on - Invalid index - init
Read Version callback

    Status: Success (0x00)
    Version 1.19
  Read Commands callback
    Status: Success (0x00)
  Read Index List callback
    Status: Success (0x00)
  Index Added callback
    Index: 0x0000
  Read Info callback
    Status: Success (0x00)
    Address: 00:AA:01:00:00:00
    Version: 0x09
    Manufacturer: 0x003f
    Supported settings: 0x0001beff
    Current settings: 0x00000080
    Class: 0x000000
    Name: 
    Short name: 

Set bondable on - Invalid index - setup
Set bondable on - Invalid index - setup complete
Set bondable on - Invalid index - run
Sending Set Bondable (0x0009)
Test condition added, total 1
Set Bondable (0x0009): Invalid Index (0x11)
Test condition complete, 0 left
Set bondable on - Invalid index - test passed
Set bondable on - Invalid index - teardown
Index Removed callback

    Index: 0x0000

Set bondable on - Invalid index - teardown complete Set bondable on - Invalid index - done

Set discoverable on - Invalid parameters 1 - init
Read Version callback

    Status: Success (0x00)
    Version 1.19
  Read Commands callback
    Status: Success (0x00)
  Read Index List callback
    Status: Success (0x00)
  Index Added callback
    Index: 0x0000
  Read Info callback
    Status: Success (0x00)
    Address: 00:AA:01:00:00:00
    Version: 0x09
    Manufacturer: 0x003f
    Supported settings: 0x0001beff
    Current settings: 0x00000080
    Class: 0x000000
    Name: 
    Short name: 

Set discoverable on - Invalid parameters 1 - setup Set discoverable on - Invalid parameters 1 - setup complete Set discoverable on - Invalid parameters 1 - run
Sending Set Discoverable (0x0006)
Test condition added, total 1
Set Discoverable (0x0006): Invalid Parameters (0x0d) Test condition complete, 0 left
Set discoverable on - Invalid parameters 1 - test passed Set discoverable on - Invalid parameters 1 - teardown
Index Removed callback

    Index: 0x0000

Set discoverable on - Invalid parameters 1 - teardown complete Set discoverable on - Invalid parameters 1 - done

Set discoverable on - Invalid parameters 2 - init
Read Version callback

    Status: Success (0x00)
    Version 1.19
  Read Commands callback
    Status: Success (0x00)
  Read Index List callback
    Status: Success (0x00)
  Index Added callback
    Index: 0x0000
  Read Info callback
    Status: Success (0x00)
    Address: 00:AA:01:00:00:00
    Version: 0x09
    Manufacturer: 0x003f
    Supported settings: 0x0001beff
    Current settings: 0x00000080
    Class: 0x000000
    Name: 
    Short name: 

Set discoverable on - Invalid parameters 2 - setup Set discoverable on - Invalid parameters 2 - setup complete Set discoverable on - Invalid parameters 2 - run
Sending Set Discoverable (0x0006)
Test condition added, total 1
Set Discoverable (0x0006): Invalid Parameters (0x0d) Test condition complete, 0 left
Set discoverable on - Invalid parameters 2 - test passed Set discoverable on - Invalid parameters 2 - teardown
Index Removed callback

    Index: 0x0000

Set discoverable on - Invalid parameters 2 - teardown complete Set discoverable on - Invalid parameters 2 - done

Set discoverable on - Invalid parameters 3 - init
Read Version callback

    Status: Success (0x00)
    Version 1.19
  Read Commands callback
    Status: Success (0x00)
  Read Index List callback
    Status: Success (0x00)
  Index Added callback
    Index: 0x0000
  Read Info callback
    Status: Success (0x00)
    Address: 00:AA:01:00:00:00
    Version: 0x09
    Manufacturer: 0x003f
    Supported settings: 0x0001beff
    Current settings: 0x00000080
    Class: 0x000000
    Name: 
    Short name: 

Set discoverable on - Invalid parameters 3 - setup Set discoverable on - Invalid parameters 3 - setup complete Set discoverable on - Invalid parameters 3 - run
Sending Set Discoverable (0x0006)
Test condition added, total 1
Set Discoverable (0x0006): Invalid Parameters (0x0d) Test condition complete, 0 left
Set discoverable on - Invalid parameters 3 - test passed Set discoverable on - Invalid parameters 3 - teardown
Index Removed callback

    Index: 0x0000

Set discoverable on - Invalid parameters 3 - teardown complete Set discoverable on - Invalid parameters 3 - done

Set discoverable on - Invalid parameters 4 - init
Read Version callback

    Status: Success (0x00)
    Version 1.19
  Read Commands callback
    Status: Success (0x00)
  Read Index List callback
    Status: Success (0x00)
  Index Added callback
    Index: 0x0000
  Read Info callback
    Status: Success (0x00)
    Address: 00:AA:01:00:00:00
    Version: 0x09
    Manufacturer: 0x003f
    Supported settings: 0x0001beff
    Current settings: 0x00000080
    Class: 0x000000
    Name: 
    Short name: 

Set discoverable on - Invalid parameters 4 - setup Set discoverable on - Invalid parameters 4 - setup complete Set discoverable on - Invalid parameters 4 - run
Sending Set Discoverable (0x0006)
Test condition added, total 1
Set Discoverable (0x0006): Invalid Parameters (0x0d) Test condition complete, 0 left
Set discoverable on - Invalid parameters 4 - test passed Set discoverable on - Invalid parameters 4 - teardown
Index Removed callback

    Index: 0x0000

Set discoverable on - Invalid parameters 4 - teardown complete Set discoverable on - Invalid parameters 4 - done

Set discoverable on - Not powered 1 - init
Read Version callback

    Status: Success (0x00)
    Version 1.19
  Read Commands callback
    Status: Success (0x00)
  Read Index List callback
    Status: Success (0x00)
  Index Added callback
    Index: 0x0000
  Read Info callback
    Status: Success (0x00)
    Address: 00:AA:01:00:00:00
    Version: 0x09
    Manufacturer: 0x003f
    Supported settings: 0x0001beff
    Current settings: 0x00000080
    Class: 0x000000
    Name: 
    Short name: 

Set discoverable on - Not powered 1 - setup Set discoverable on - Not powered 1 - setup complete Set discoverable on - Not powered 1 - run
Sending Set Discoverable (0x0006)
Test condition added, total 1
Set Discoverable (0x0006): Not Powered (0x0f) Test condition complete, 0 left
Set discoverable on - Not powered 1 - test passed Set discoverable on - Not powered 1 - teardown
Index Removed callback

    Index: 0x0000

Set discoverable on - Not powered 1 - teardown complete Set discoverable on - Not powered 1 - done

Set discoverable on - Not powered 2 - init
Read Version callback

    Status: Success (0x00)
    Version 1.19
  Read Commands callback
    Status: Success (0x00)
  Read Index List callback
    Status: Success (0x00)
  Index Added callback
    Index: 0x0000
  Read Info callback
    Status: Success (0x00)
    Address: 00:AA:01:00:00:00
    Version: 0x09
    Manufacturer: 0x003f
    Supported settings: 0x0001beff
    Current settings: 0x00000080
    Class: 0x000000
    Name: 
    Short name: 

Set discoverable on - Not powered 2 - setup
Initial settings completed
Client set connectable: Success (0x00)
Set discoverable on - Not powered 2 - setup complete Set discoverable on - Not powered 2 - run
Sending Set Discoverable (0x0006)
Test condition added, total 1
Set Discoverable (0x0006): Not Powered (0x0f) Test condition complete, 0 left
Set discoverable on - Not powered 2 - test passed Set discoverable on - Not powered 2 - teardown
Index Removed callback

    Index: 0x0000

Set discoverable on - Not powered 2 - teardown complete Set discoverable on - Not powered 2 - done

Set discoverable on - Rejected 1 - init
Read Version callback

    Status: Success (0x00)
    Version 1.19
  Read Commands callback
    Status: Success (0x00)
  Read Index List callback
    Status: Success (0x00)
  Index Added callback
    Index: 0x0000
  Read Info callback
    Status: Success (0x00)
    Address: 00:AA:01:00:00:00
    Version: 0x09
    Manufacturer: 0x003f
    Supported settings: 0x0001beff
    Current settings: 0x00000080
    Class: 0x000000
    Name: 
    Short name: 

Set discoverable on - Rejected 1 - setup
Initial settings completed
Client set connectable: Success (0x00)
Set discoverable on - Rejected 1 - setup complete
Set discoverable on - Rejected 1 - run
Sending Set Discoverable (0x0006)
Test condition added, total 1
Set Discoverable (0x0006): Rejected (0x0b)
Test condition complete, 0 left
Set discoverable on - Rejected 1 - test passed
Set discoverable on - Rejected 1 - teardown
Index Removed callback

    Index: 0x0000

Set discoverable on - Rejected 1 - teardown complete Set discoverable on - Rejected 1 - done

Set discoverable on - Rejected 2 - init
Read Version callback

    Status: Success (0x00)
    Version 1.19
  Read Commands callback
    Status: Success (0x00)
  Read Index List callback
    Status: Success (0x00)
  Index Added callback
    Index: 0x0000
  Read Info callback
    Status: Success (0x00)
    Address: 00:AA:01:00:00:00
    Version: 0x09
    Manufacturer: 0x003f
    Supported settings: 0x0001beff
    Current settings: 0x00000080
    Class: 0x000000
    Name: 
    Short name: 

Set discoverable on - Rejected 2 - setup
Initial settings completed
Client set connectable: Success (0x00)
Set discoverable on - Rejected 2 - setup complete
Set discoverable on - Rejected 2 - run
Sending Set Discoverable (0x0006)
Test condition added, total 1
Set Discoverable (0x0006): Rejected (0x0b)
Test condition complete, 0 left
Set discoverable on - Rejected 2 - test passed
Set discoverable on - Rejected 2 - teardown
Index Removed callback

    Index: 0x0000

Set discoverable on - Rejected 2 - teardown complete Set discoverable on - Rejected 2 - done

Set discoverable on - Rejected 3 - init
Read Version callback

    Status: Success (0x00)
    Version 1.19
  Read Commands callback
    Status: Success (0x00)
  Read Index List callback
    Status: Success (0x00)
  Index Added callback
    Index: 0x0000
  Read Info callback
    Status: Success (0x00)
    Address: 00:AA:01:00:00:00
    Version: 0x09
    Manufacturer: 0x003f
    Supported settings: 0x0001beff
    Current settings: 0x00000080
    Class: 0x000000
    Name: 
    Short name: 

Set discoverable on - Rejected 3 - setup
Initial settings completed
Client set connectable: Success (0x00)
Set discoverable on - Rejected 3 - setup complete
Set discoverable on - Rejected 3 - run
Sending Set Discoverable (0x0006)
Test condition added, total 1
Set Discoverable (0x0006): Rejected (0x0b)
Test condition complete, 0 left
Set discoverable on - Rejected 3 - test passed
Set discoverable on - Rejected 3 - teardown
Index Removed callback

    Index: 0x0000

Set discoverable on - Rejected 3 - teardown complete Set discoverable on - Rejected 3 - done

Set discoverable on - Success 1 - init
Read Version callback

    Status: Success (0x00)
    Version 1.19
  Read Commands callback
    Status: Success (0x00)
  Read Index List callback
    Status: Success (0x00)
  Index Added callback
    Index: 0x0000
  Read Info callback
    Status: Success (0x00)
    Address: 00:AA:01:00:00:00
    Version: 0x09
    Manufacturer: 0x003f
    Supported settings: 0x0001beff
    Current settings: 0x00000080
    Class: 0x000000
    Name: 
    Short name: 

Set discoverable on - Success 1 - setup
Initial settings completed
Client set connectable: Success (0x00)
Set discoverable on - Success 1 - setup complete
Set discoverable on - Success 1 - run
Registering new settings notification
Test condition added, total 1
Sending Set Discoverable (0x0006)
Test condition added, total 2
Set Discoverable (0x0006): Success (0x00)
Test condition complete, 1 left
New settings 0x0000008a received
Unregistering new settings notification
Test condition complete, 0 left
Set discoverable on - Success 1 - test passed
Set discoverable on - Success 1 - teardown
Index Removed callback

    Index: 0x0000

Set discoverable on - Success 1 - teardown complete Set discoverable on - Success 1 - done

Set discoverable on - Success 2 - init
Read Version callback

    Status: Success (0x00)
    Version 1.19
  Read Commands callback
    Status: Success (0x00)
  Read Index List callback
    Status: Success (0x00)
  Index Added callback
    Index: 0x0000
  Read Info callback
    Status: Success (0x00)
    Address: 00:AA:01:00:00:00
    Version: 0x09
    Manufacturer: 0x003f
    Supported settings: 0x0001beff
    Current settings: 0x00000080
    Class: 0x000000
    Name: 
    Short name: 

Set discoverable on - Success 2 - setup
Initial settings completed
Client set connectable: Success (0x00)
Set discoverable on - Success 2 - setup complete
Set discoverable on - Success 2 - run
Registering new settings notification
Test condition added, total 1
Registering HCI command callback
Test condition added, total 2
Sending Set Discoverable (0x0006)
Test condition added, total 3
HCI Command 0x0c3a length 4
HCI Command 0x0c1a length 1
Test condition complete, 2 left
Set Discoverable (0x0006): Success (0x00)
Test condition complete, 1 left
New settings 0x0000008b received
Unregistering new settings notification
Test condition complete, 0 left
Set discoverable on - Success 2 - test passed
Set discoverable on - Success 2 - teardown
New settings event received
Index Removed callback

    Index: 0x0000

Set discoverable on - Success 2 - teardown complete Set discoverable on - Success 2 - done

Set discoverable on (LE) - Success 1 - init
Read Version callback

    Status: Success (0x00)
    Version 1.19
  Read Commands callback
    Status: Success (0x00)
  Read Index List callback
    Status: Success (0x00)
  Index Added callback
    Index: 0x0000
  Read Info callback
    Status: Success (0x00)
    Address: 00:AA:01:00:00:00
    Version: 0x09
    Manufacturer: 0x003f
    Supported settings: 0x0001be1b
    Current settings: 0x00000200
    Class: 0x000000
    Name: 
    Short name: 

Set discoverable on (LE) - Success 1 - setup
Initial settings completed
Client set connectable: Success (0x00)
Set discoverable on (LE) - Success 1 - setup complete Set discoverable on (LE) - Success 1 - run
Registering HCI command callback
Test condition added, total 1
Sending Set Discoverable (0x0006)
Test condition added, total 2
HCI Command 0x2008 length 32
Test condition complete, 1 left
Set Discoverable (0x0006): Success (0x00) Test condition complete, 0 left
Set discoverable on (LE) - Success 1 - test passed Set discoverable on (LE) - Success 1 - teardown
Index Removed callback

    Index: 0x0000

Set discoverable on (LE) - Success 1 - teardown complete Set discoverable on (LE) - Success 1 - done

Set discoverable off - Success 1 - init
Read Version callback

    Status: Success (0x00)
    Version 1.19
  Read Commands callback
    Status: Success (0x00)
  Read Index List callback
    Status: Success (0x00)
  Index Added callback
    Index: 0x0000
  Read Info callback
    Status: Success (0x00)
    Address: 00:AA:01:00:00:00
    Version: 0x09
    Manufacturer: 0x003f
    Supported settings: 0x0001beff
    Current settings: 0x00000080
    Class: 0x000000
    Name: 
    Short name: 

Set discoverable off - Success 1 - setup
Initial settings completed
Client set connectable: Success (0x00)
Set discoverable off - Success 1 - setup complete
Set discoverable off - Success 1 - run
Sending Set Discoverable (0x0006)
Test condition added, total 1
Set Discoverable (0x0006): Success (0x00)
Test condition complete, 0 left
Set discoverable off - Success 1 - test passed
Set discoverable off - Success 1 - teardown
Index Removed callback

    Index: 0x0000

Set discoverable off - Success 1 - teardown complete Set discoverable off - Success 1 - done

Set discoverable off - Success 2 - init
Read Version callback

    Status: Success (0x00)
    Version 1.19
  Read Commands callback
    Status: Success (0x00)
  Read Index List callback
    Status: Success (0x00)
  Index Added callback
    Index: 0x0000
  Read Info callback
    Status: Success (0x00)
    Address: 00:AA:01:00:00:00
    Version: 0x09
    Manufacturer: 0x003f
    Supported settings: 0x0001beff
    Current settings: 0x00000080
    Class: 0x000000
    Name: 
    Short name: 

Set discoverable off - Success 2 - setup
Initial settings completed
Client set connectable: Success (0x00)
Set discoverable off - Success 2 - setup complete
Set discoverable off - Success 2 - run
Registering HCI command callback
Test condition added, total 1
Sending Set Discoverable (0x0006)
Test condition added, total 2
HCI Command 0x0c1a length 1
Test condition complete, 1 left
Set Discoverable (0x0006): Success (0x00)
Test condition complete, 0 left
Set discoverable off - Success 2 - test passed
Set discoverable off - Success 2 - teardown
Index Removed callback

    Index: 0x0000

Set discoverable off - Success 2 - teardown complete Set discoverable off - Success 2 - done

Set limited discoverable on - Success 1 - init
Read Version callback

    Status: Success (0x00)
    Version 1.19
  Read Commands callback
    Status: Success (0x00)
  Read Index List callback
    Status: Success (0x00)
  Index Added callback
    Index: 0x0000
  Read Info callback
    Status: Success (0x00)
    Address: 00:AA:01:00:00:00
    Version: 0x09
    Manufacturer: 0x003f
    Supported settings: 0x0001beff
    Current settings: 0x00000080
    Class: 0x000000
    Name: 
    Short name: 

Set limited discoverable on - Success 1 - setup
Initial settings completed
Client set connectable: Success (0x00)
Set limited discoverable on - Success 1 - setup complete Set limited discoverable on - Success 1 - run
Registering HCI command callback
Test condition added, total 1
Sending Set Discoverable (0x0006)
Test condition added, total 2
HCI Command 0x0c3a length 4
HCI Command 0x0c1a length 1
Test condition complete, 1 left
HCI Command 0x0c24 length 3
Set Discoverable (0x0006): Success (0x00) Test condition complete, 0 left
Set limited discoverable on - Success 1 - test passed Set limited discoverable on - Success 1 - teardown
Index Removed callback

    Index: 0x0000

Set limited discoverable on - Success 1 - teardown complete Set limited discoverable on - Success 1 - done

Set limited discoverable on - Success 2 - init
Read Version callback

    Status: Success (0x00)
    Version 1.19
  Read Commands callback
    Status: Success (0x00)
  Read Index List callback
    Status: Success (0x00)
  Index Added callback
    Index: 0x0000
  Read Info callback
    Status: Success (0x00)
    Address: 00:AA:01:00:00:00
    Version: 0x09
    Manufacturer: 0x003f
    Supported settings: 0x0001beff
    Current settings: 0x00000080
    Class: 0x000000
    Name: 
    Short name: 

Set limited discoverable on - Success 2 - setup
Initial settings completed
Client set connectable: Success (0x00)
Set limited discoverable on - Success 2 - setup complete Set limited discoverable on - Success 2 - run
Registering HCI command callback
Test condition added, total 1
Sending Set Discoverable (0x0006)
Test condition added, total 2
HCI Command 0x0c3a length 4
Test condition complete, 1 left
HCI Command 0x0c1a length 1
HCI Command 0x0c24 length 3
Set Discoverable (0x0006): Success (0x00) Test condition complete, 0 left
Set limited discoverable on - Success 2 - test passed Set limited discoverable on - Success 2 - teardown
Index Removed callback

    Index: 0x0000

Set limited discoverable on - Success 2 - teardown complete Set limited discoverable on - Success 2 - done

Set limited discoverable on - Success 3 - init
Read Version callback

    Status: Success (0x00)
    Version 1.19
  Read Commands callback
    Status: Success (0x00)
  Read Index List callback
    Status: Success (0x00)
  Index Added callback
    Index: 0x0000
  Read Info callback
    Status: Success (0x00)
    Address: 00:AA:01:00:00:00
    Version: 0x09
    Manufacturer: 0x003f
    Supported settings: 0x0001beff
    Current settings: 0x00000080
    Class: 0x000000
    Name: 
    Short name: 

Set limited discoverable on - Success 3 - setup
Initial settings completed
Client set connectable: Success (0x00)
Set limited discoverable on - Success 3 - setup complete Set limited discoverable on - Success 3 - run
Registering HCI command callback
Test condition added, total 1
Sending Set Discoverable (0x0006)
Test condition added, total 2
HCI Command 0x0c3a length 4
HCI Command 0x0c1a length 1
HCI Command 0x0c24 length 3
Test condition complete, 1 left
Set Discoverable (0x0006): Success (0x00) Test condition complete, 0 left
Set limited discoverable on - Success 3 - test passed Set limited discoverable on - Success 3 - teardown
Index Removed callback

    Index: 0x0000

Set limited discoverable on - Success 3 - teardown complete Set limited discoverable on - Success 3 - done

Set limited discoverable on (LE) - Success 1 - init
Read Version callback

    Status: Success (0x00)
    Version 1.19
  Read Commands callback
    Status: Success (0x00)
  Read Index List callback
    Status: Success (0x00)
  Index Added callback
    Index: 0x0000
  Read Info callback
    Status: Success (0x00)
    Address: 00:AA:01:00:00:00
    Version: 0x09
    Manufacturer: 0x003f
    Supported settings: 0x0001be1b
    Current settings: 0x00000200
    Class: 0x000000
    Name: 
    Short name: 

Set limited discoverable on (LE) - Success 1 - setup
Initial settings completed
Client set connectable: Success (0x00)
Set limited discoverable on (LE) - Success 1 - setup complete Set limited discoverable on (LE) - Success 1 - run
Registering HCI command callback
Test condition added, total 1
Sending Set Discoverable (0x0006)
Test condition added, total 2
HCI Command 0x2008 length 32
Test condition complete, 1 left
Set Discoverable (0x0006): Success (0x00)
Test condition complete, 0 left
Set limited discoverable on (LE) - Success 1 - test passed Set limited discoverable on (LE) - Success 1 - teardown
Index Removed callback

    Index: 0x0000

Set limited discoverable on (LE) - Success 1 - teardown complete Set limited discoverable on (LE) - Success 1 - done

Set link security on - Success 1 - init
Read Version callback

    Status: Success (0x00)
    Version 1.19
  Read Commands callback
    Status: Success (0x00)
  Read Index List callback
    Status: Success (0x00)
  Index Added callback
    Index: 0x0000
  Read Info callback
    Status: Success (0x00)
    Address: 00:AA:01:00:00:00
    Version: 0x09
    Manufacturer: 0x003f
    Supported settings: 0x0001beff
    Current settings: 0x00000080
    Class: 0x000000
    Name: 
    Short name: 

Set link security on - Success 1 - setup
Set link security on - Success 1 - setup complete
Set link security on - Success 1 - run
Registering new settings notification
Test condition added, total 1
Sending Set Link Security (0x000a)
Test condition added, total 2
Set Link Security (0x000a): Success (0x00)
Test condition complete, 1 left
New settings 0x000000a0 received
Unregistering new settings notification
Test condition complete, 0 left
Set link security on - Success 1 - test passed
Set link security on - Success 1 - teardown
Index Removed callback

    Index: 0x0000

Set link security on - Success 1 - teardown complete Set link security on - Success 1 - done

Set link security on - Success 2 - init
Read Version callback

    Status: Success (0x00)
    Version 1.19
  Read Commands callback
    Status: Success (0x00)
  Read Index List callback
    Status: Success (0x00)
  Index Added callback
    Index: 0x0000
  Read Info callback
    Status: Success (0x00)
    Address: 00:AA:01:00:00:00
    Version: 0x09
    Manufacturer: 0x003f
    Supported settings: 0x0001beff
    Current settings: 0x00000080
    Class: 0x000000
    Name: 
    Short name: 

Set link security on - Success 2 - setup
Initial settings completed
Client set connectable: Success (0x00)
Set link security on - Success 2 - setup complete
Set link security on - Success 2 - run
Registering new settings notification
Test condition added, total 1
Registering HCI command callback
Test condition added, total 2
Sending Set Link Security (0x000a)
Test condition added, total 3
HCI Command 0x0c20 length 1
Test condition complete, 2 left
Set Link Security (0x000a): Success (0x00)
Test condition complete, 1 left
New settings 0x000000a1 received
Unregistering new settings notification
Test condition complete, 0 left
Set link security on - Success 2 - test passed
Set link security on - Success 2 - teardown
New settings event received
Index Removed callback

    Index: 0x0000

Set link security on - Success 2 - teardown complete Set link security on - Success 2 - done

Set link security on - Success 3 - init
Read Version callback

    Status: Success (0x00)
    Version 1.19
  Read Commands callback
    Status: Success (0x00)
  Read Index List callback
    Status: Success (0x00)
  Index Added callback
    Index: 0x0000
  Read Info callback
    Status: Success (0x00)
    Address: 00:AA:01:00:00:00
    Version: 0x09
    Manufacturer: 0x003f
    Supported settings: 0x0001beff
    Current settings: 0x00000080
    Class: 0x000000
    Name: 
    Short name: 

Set link security on - Success 3 - setup
Initial settings completed
Client set connectable: Success (0x00)
Set link security on - Success 3 - setup complete
Set link security on - Success 3 - run
Registering new settings notification
Test condition added, total 1
Registering HCI command callback
Test condition added, total 2
Sending Set Powered (0x0005)
Test condition added, total 3
HCI Command 0x0c20 length 1
Test condition complete, 2 left
HCI Command 0x0c13 length 248
Set Powered (0x0005): Success (0x00)
Test condition complete, 1 left
New settings 0x000000a1 received
Unregistering new settings notification
Test condition complete, 0 left
Set link security on - Success 3 - test passed
Set link security on - Success 3 - teardown
New settings event received
Index Removed callback

    Index: 0x0000

Set link security on - Success 3 - teardown complete Set link security on - Success 3 - done

Set link security on - Invalid parameters 1 - init
Read Version callback

    Status: Success (0x00)
    Version 1.19
  Read Commands callback
    Status: Success (0x00)
  Read Index List callback
    Status: Success (0x00)
  Index Added callback
    Index: 0x0000
  Read Info callback
    Status: Success (0x00)
    Address: 00:AA:01:00:00:00
    Version: 0x09
    Manufacturer: 0x003f
    Supported settings: 0x0001beff
    Current settings: 0x00000080
    Class: 0x000000
    Name: 
    Short name: 

Set link security on - Invalid parameters 1 - setup Set link security on - Invalid parameters 1 - setup complete Set link security on - Invalid parameters 1 - run
Sending Set Link Security (0x000a)
Test condition added, total 1
Set Link Security (0x000a): Invalid Parameters (0x0d) Test condition complete, 0 left
Set link security on - Invalid parameters 1 - test passed Set link security on - Invalid parameters 1 - teardown
Index Removed callback

    Index: 0x0000

Set link security on - Invalid parameters 1 - teardown complete Set link security on - Invalid parameters 1 - done

Set link security on - Invalid parameters 2 - init
Read Version callback

    Status: Success (0x00)
    Version 1.19
  Read Commands callback
    Status: Success (0x00)
  Read Index List callback
    Status: Success (0x00)
  Index Added callback
    Index: 0x0000
  Read Info callback
    Status: Success (0x00)
    Address: 00:AA:01:00:00:00
    Version: 0x09
    Manufacturer: 0x003f
    Supported settings: 0x0001beff
    Current settings: 0x00000080
    Class: 0x000000
    Name: 
    Short name: 

Set link security on - Invalid parameters 2 - setup Set link security on - Invalid parameters 2 - setup complete Set link security on - Invalid parameters 2 - run
Sending Set Link Security (0x000a)
Test condition added, total 1
Set Link Security (0x000a): Invalid Parameters (0x0d) Test condition complete, 0 left
Set link security on - Invalid parameters 2 - test passed Set link security on - Invalid parameters 2 - teardown
Index Removed callback

    Index: 0x0000

Set link security on - Invalid parameters 2 - teardown complete Set link security on - Invalid parameters 2 - done

Set link security on - Invalid parameters 3 - init
Read Version callback

    Status: Success (0x00)
    Version 1.19
  Read Commands callback
    Status: Success (0x00)
  Read Index List callback
    Status: Success (0x00)
  Index Added callback
    Index: 0x0000
  Read Info callback
    Status: Success (0x00)
    Address: 00:AA:01:00:00:00
    Version: 0x09
    Manufacturer: 0x003f
    Supported settings: 0x0001beff
    Current settings: 0x00000080
    Class: 0x000000
    Name: 
    Short name: 

Set link security on - Invalid parameters 3 - setup Set link security on - Invalid parameters 3 - setup complete Set link security on - Invalid parameters 3 - run
Sending Set Link Security (0x000a)
Test condition added, total 1
Set Link Security (0x000a): Invalid Parameters (0x0d) Test condition complete, 0 left
Set link security on - Invalid parameters 3 - test passed Set link security on - Invalid parameters 3 - teardown
Index Removed callback

    Index: 0x0000

Set link security on - Invalid parameters 3 - teardown complete Set link security on - Invalid parameters 3 - done

Set link security on - Invalid index - init
Read Version callback

    Status: Success (0x00)
    Version 1.19
  Read Commands callback
    Status: Success (0x00)
  Read Index List callback
    Status: Success (0x00)
  Index Added callback
    Index: 0x0000
  Read Info callback
    Status: Success (0x00)
    Address: 00:AA:01:00:00:00
    Version: 0x09
    Manufacturer: 0x003f
    Supported settings: 0x0001beff
    Current settings: 0x00000080
    Class: 0x000000
    Name: 
    Short name: 

Set link security on - Invalid index - setup Set link security on - Invalid index - setup complete Set link security on - Invalid index - run
Sending Set Link Security (0x000a)
Test condition added, total 1
Set Link Security (0x000a): Invalid Index (0x11) Test condition complete, 0 left
Set link security on - Invalid index - test passed Set link security on - Invalid index - teardown
Index Removed callback

    Index: 0x0000

Set link security on - Invalid index - teardown complete Set link security on - Invalid index - done

Set link security off - Success 1 - init
Read Version callback

    Status: Success (0x00)
    Version 1.19
  Read Commands callback
    Status: Success (0x00)
  Read Index List callback
    Status: Success (0x00)
  Index Added callback
    Index: 0x0000
  Read Info callback
    Status: Success (0x00)
    Address: 00:AA:01:00:00:00
    Version: 0x09
    Manufacturer: 0x003f
    Supported settings: 0x0001beff
    Current settings: 0x00000080
    Class: 0x000000
    Name: 
    Short name: 

Set link security off - Success 1 - setup
Initial settings completed
Client set connectable: Success (0x00)
Set link security off - Success 1 - setup complete Set link security off - Success 1 - run
Registering new settings notification Test condition added, total 1
Sending Set Link Security (0x000a)
Test condition added, total 2
Set Link Security (0x000a): Success (0x00) Test condition complete, 1 left
New settings 0x00000080 received Unregistering new settings notification Test condition complete, 0 left
Set link security off - Success 1 - test passed Set link security off - Success 1 - teardown
Index Removed callback

    Index: 0x0000

Set link security off - Success 1 - teardown complete Set link security off - Success 1 - done

Set link security off - Success 2 - init
Read Version callback

    Status: Success (0x00)
    Version 1.19
  Read Commands callback
    Status: Success (0x00)
  Read Index List callback
    Status: Success (0x00)
  Index Added callback
    Index: 0x0000
  Read Info callback
    Status: Success (0x00)
    Address: 00:AA:01:00:00:00
    Version: 0x09
    Manufacturer: 0x003f
    Supported settings: 0x0001beff
    Current settings: 0x00000080
    Class: 0x000000
    Name: 
    Short name: 

Set link security off - Success 2 - setup
Initial settings completed
Client set connectable: Success (0x00)
Set link security off - Success 2 - setup complete Set link security off - Success 2 - run
Registering new settings notification Test condition added, total 1 Registering HCI command callback
Test condition added, total 2
Sending Set Link Security (0x000a)
Test condition added, total 3
HCI Command 0x0c20 length 1
Test condition complete, 2 left
Set Link Security (0x000a): Success (0x00) Test condition complete, 1 left
New settings 0x00000081 received Unregistering new settings notification Test condition complete, 0 left
Set link security off - Success 2 - test passed Set link security off - Success 2 - teardown
New settings event received
Index Removed callback

    Index: 0x0000

Set link security off - Success 2 - teardown complete Set link security off - Success 2 - done

Set SSP on - Success 1 - init
Read Version callback

    Status: Success (0x00)
    Version 1.19
  Read Commands callback
    Status: Success (0x00)
  Read Index List callback
    Status: Success (0x00)
  Index Added callback
    Index: 0x0000
  Read Info callback
    Status: Success (0x00)
    Address: 00:AA:01:00:00:00
    Version: 0x09
    Manufacturer: 0x003f
    Supported settings: 0x0001beff
    Current settings: 0x00000080
    Class: 0x000000
    Name: 
    Short name: 

Set SSP on - Success 1 - setup
Set SSP on - Success 1 - setup complete
Set SSP on - Success 1 - run
Registering new settings notification
Test condition added, total 1
Sending Set Secure Simple Pairing (0x000b) Test condition added, total 2
Set Secure Simple Pairing (0x000b): Success (0x00) Test condition complete, 1 left
New settings 0x000000c0 received Unregistering new settings notification Test condition complete, 0 left
Set SSP on - Success 1 - test passed
Set SSP on - Success 1 - teardown
Index Removed callback

    Index: 0x0000

Set SSP on - Success 1 - teardown complete
Set SSP on - Success 1 - done

Set SSP on - Success 2 - init
Read Version callback

    Status: Success (0x00)
    Version 1.19
  Read Commands callback
    Status: Success (0x00)
  Read Index List callback
    Status: Success (0x00)
  Index Added callback
    Index: 0x0000
  Read Info callback
    Status: Success (0x00)
    Address: 00:AA:01:00:00:00
    Version: 0x09
    Manufacturer: 0x003f
    Supported settings: 0x0001beff
    Current settings: 0x00000080
    Class: 0x000000
    Name: 
    Short name: 

Set SSP on - Success 2 - setup
Initial settings completed
Client set connectable: Success (0x00)
Set SSP on - Success 2 - setup complete
Set SSP on - Success 2 - run
Registering new settings notification
Test condition added, total 1
Registering HCI command callback
Test condition added, total 2
Sending Set Secure Simple Pairing (0x000b) Test condition added, total 3
HCI Command 0x0c56 length 1
Test condition complete, 2 left
Set Secure Simple Pairing (0x000b): Success (0x00) Test condition complete, 1 left
New settings 0x000000c1 received Unregistering new settings notification Test condition complete, 0 left
Set SSP on - Success 2 - test passed
HCI Command 0x0c52 length 241
Set SSP on - Success 2 - teardown
New settings event received
Index Removed callback

    Index: 0x0000

Set SSP on - Success 2 - teardown complete
Set SSP on - Success 2 - done

Set SSP on - Success 3 - init
Read Version callback

    Status: Success (0x00)
    Version 1.19
  Read Commands callback
    Status: Success (0x00)
  Read Index List callback
    Status: Success (0x00)
  Index Added callback
    Index: 0x0000
  Read Info callback
    Status: Success (0x00)
    Address: 00:AA:01:00:00:00
    Version: 0x09
    Manufacturer: 0x003f
    Supported settings: 0x0001beff
    Current settings: 0x00000080
    Class: 0x000000
    Name: 
    Short name: 

Set SSP on - Success 3 - setup
Initial settings completed
Client set connectable: Success (0x00)
Set SSP on - Success 3 - setup complete
Set SSP on - Success 3 - run
Registering new settings notification
Test condition added, total 1
Registering HCI command callback
Test condition added, total 2
Sending Set Powered (0x0005)
Test condition added, total 3
HCI Command 0x0c56 length 1
Test condition complete, 2 left
HCI Command 0x0c13 length 248
HCI Command 0x0c52 length 241
Set Powered (0x0005): Success (0x00)
Test condition complete, 1 left
New settings 0x000000c1 received
Unregistering new settings notification
Test condition complete, 0 left
Set SSP on - Success 3 - test passed
Set SSP on - Success 3 - teardown
New settings event received
Index Removed callback

    Index: 0x0000

Set SSP on - Success 3 - teardown complete
Set SSP on - Success 3 - done

Set SSP on - Invalid parameters 1 - init
Read Version callback

    Status: Success (0x00)
    Version 1.19
  Read Commands callback
    Status: Success (0x00)
  Read Index List callback
    Status: Success (0x00)
  Index Added callback
    Index: 0x0000
  Read Info callback
    Status: Success (0x00)
    Address: 00:AA:01:00:00:00
    Version: 0x09
    Manufacturer: 0x003f
    Supported settings: 0x0001beff
    Current settings: 0x00000080
    Class: 0x000000
    Name: 
    Short name: 

Set SSP on - Invalid parameters 1 - setup
Set SSP on - Invalid parameters 1 - setup complete Set SSP on - Invalid parameters 1 - run
Sending Set Secure Simple Pairing (0x000b)
Test condition added, total 1
Set Secure Simple Pairing (0x000b): Invalid Parameters (0x0d) Test condition complete, 0 left
Set SSP on - Invalid parameters 1 - test passed
Set SSP on - Invalid parameters 1 - teardown
Index Removed callback

    Index: 0x0000

Set SSP on - Invalid parameters 1 - teardown complete Set SSP on - Invalid parameters 1 - done

Set SSP on - Invalid parameters 2 - init
Read Version callback

    Status: Success (0x00)
    Version 1.19
  Read Commands callback
    Status: Success (0x00)
  Read Index List callback
    Status: Success (0x00)
  Index Added callback
    Index: 0x0000
  Read Info callback
    Status: Success (0x00)
    Address: 00:AA:01:00:00:00
    Version: 0x09
    Manufacturer: 0x003f
    Supported settings: 0x0001beff
    Current settings: 0x00000080
    Class: 0x000000
    Name: 
    Short name: 

Set SSP on - Invalid parameters 2 - setup
Set SSP on - Invalid parameters 2 - setup complete Set SSP on - Invalid parameters 2 - run
Sending Set Secure Simple Pairing (0x000b)
Test condition added, total 1
Set Secure Simple Pairing (0x000b): Invalid Parameters (0x0d) Test condition complete, 0 left
Set SSP on - Invalid parameters 2 - test passed
Set SSP on - Invalid parameters 2 - teardown
Index Removed callback

    Index: 0x0000

Set SSP on - Invalid parameters 2 - teardown complete Set SSP on - Invalid parameters 2 - done

Set SSP on - Invalid parameters 3 - init
Read Version callback

    Status: Success (0x00)
    Version 1.19
  Read Commands callback
    Status: Success (0x00)
  Read Index List callback
    Status: Success (0x00)
  Index Added callback
    Index: 0x0000
  Read Info callback
    Status: Success (0x00)
    Address: 00:AA:01:00:00:00
    Version: 0x09
    Manufacturer: 0x003f
    Supported settings: 0x0001beff
    Current settings: 0x00000080
    Class: 0x000000
    Name: 
    Short name: 

Set SSP on - Invalid parameters 3 - setup
Set SSP on - Invalid parameters 3 - setup complete Set SSP on - Invalid parameters 3 - run
Sending Set Secure Simple Pairing (0x000b)
Test condition added, total 1
Set Secure Simple Pairing (0x000b): Invalid Parameters (0x0d) Test condition complete, 0 left
Set SSP on - Invalid parameters 3 - test passed
Set SSP on - Invalid parameters 3 - teardown
Index Removed callback

    Index: 0x0000

Set SSP on - Invalid parameters 3 - teardown complete Set SSP on - Invalid parameters 3 - done

Set SSP on - Invalid index - init
Read Version callback

    Status: Success (0x00)
    Version 1.19
  Read Commands callback
    Status: Success (0x00)
  Read Index List callback
    Status: Success (0x00)
  Index Added callback
    Index: 0x0000
  Read Info callback
    Status: Success (0x00)
    Address: 00:AA:01:00:00:00
    Version: 0x09
    Manufacturer: 0x003f
    Supported settings: 0x0001beff
    Current settings: 0x00000080
    Class: 0x000000
    Name: 
    Short name: 

Set SSP on - Invalid index - setup
Set SSP on - Invalid index - setup complete
Set SSP on - Invalid index - run
Sending Set Secure Simple Pairing (0x000b)
Test condition added, total 1
Set Secure Simple Pairing (0x000b): Invalid Index (0x11) Test condition complete, 0 left
Set SSP on - Invalid index - test passed
Set SSP on - Invalid index - teardown
Index Removed callback

    Index: 0x0000

Set SSP on - Invalid index - teardown complete
Set SSP on - Invalid index - done

Set Secure Connections on - Success 1 - init
Read Version callback

    Status: Success (0x00)
    Version 1.19
  Read Commands callback
    Status: Success (0x00)
  Read Index List callback
    Status: Success (0x00)
  Index Added callback
    Index: 0x0000
  Read Info callback
    Status: Success (0x00)
    Address: 00:AA:01:00:00:00
    Version: 0x09
    Manufacturer: 0x003f
    Supported settings: 0x0001beff
    Current settings: 0x00000080
    Class: 0x000000
    Name: 
    Short name: 

Set Secure Connections on - Success 1 - setup
Initial settings completed
Client set connectable: Success (0x00)
Set Secure Connections on - Success 1 - setup complete Set Secure Connections on - Success 1 - run
Registering new settings notification
Test condition added, total 1
Sending Set Secure Connections (0x002d) Test condition added, total 2
Set Secure Connections (0x002d): Success (0x00) Test condition complete, 1 left
New settings 0x000008c0 received Unregistering new settings notification Test condition complete, 0 left
Set Secure Connections on - Success 1 - test passed Set Secure Connections on - Success 1 - teardown
Index Removed callback

    Index: 0x0000

Set Secure Connections on - Success 1 - teardown complete Set Secure Connections on - Success 1 - done

Set Secure Connections on - Success 2 - init
Read Version callback

    Status: Success (0x00)
    Version 1.19
  Read Commands callback
    Status: Success (0x00)
  Read Index List callback
    Status: Success (0x00)
  Index Added callback
    Index: 0x0000
  Read Info callback
    Status: Success (0x00)
    Address: 00:AA:01:00:00:00
    Version: 0x09
    Manufacturer: 0x003f
    Supported settings: 0x0001beff
    Current settings: 0x00000080
    Class: 0x000000
    Name: 
    Short name: 

Set Secure Connections on - Success 2 - setup
Initial settings completed
Client set connectable: Success (0x00)
Set Secure Connections on - Success 2 - setup complete Set Secure Connections on - Success 2 - run
Registering new settings notification
Test condition added, total 1
Registering HCI command callback
Test condition added, total 2
Sending Set Secure Connections (0x002d) Test condition added, total 3
HCI Command 0x0c7a length 1
Test condition complete, 2 left
Set Secure Connections (0x002d): Success (0x00) Test condition complete, 1 left
New settings 0x000008c1 received Unregistering new settings notification Test condition complete, 0 left
Set Secure Connections on - Success 2 - test passed Set Secure Connections on - Success 2 - teardown
New settings event received
Index Removed callback

    Index: 0x0000

Set Secure Connections on - Success 2 - teardown complete Set Secure Connections on - Success 2 - done

Set Secure Connections on - Invalid params 1 - init
Read Version callback

    Status: Success (0x00)
    Version 1.19
  Read Commands callback
    Status: Success (0x00)
  Read Index List callback
    Status: Success (0x00)
  Index Added callback
    Index: 0x0000
  Read Info callback
    Status: Success (0x00)
    Address: 00:AA:01:00:00:00
    Version: 0x09
    Manufacturer: 0x003f
    Supported settings: 0x0001beff
    Current settings: 0x00000080
    Class: 0x000000
    Name: 
    Short name: 

Set Secure Connections on - Invalid params 1 - setup
Initial settings completed
Client set connectable: Success (0x00)
Set Secure Connections on - Invalid params 1 - setup complete Set Secure Connections on - Invalid params 1 - run
Sending Set Secure Connections (0x002d)
Test condition added, total 1
Set Secure Connections (0x002d): Invalid Parameters (0x0d) Test condition complete, 0 left
Set Secure Connections on - Invalid params 1 - test passed Set Secure Connections on - Invalid params 1 - teardown
Index Removed callback

    Index: 0x0000

Set Secure Connections on - Invalid params 1 - teardown complete Set Secure Connections on - Invalid params 1 - done

Set Secure Connections on - Invalid params 2 - init
Read Version callback

    Status: Success (0x00)
    Version 1.19
  Read Commands callback
    Status: Success (0x00)
  Read Index List callback
    Status: Success (0x00)
  Index Added callback
    Index: 0x0000
  Read Info callback
    Status: Success (0x00)
    Address: 00:AA:01:00:00:00
    Version: 0x09
    Manufacturer: 0x003f
    Supported settings: 0x0001beff
    Current settings: 0x00000080
    Class: 0x000000
    Name: 
    Short name: 

Set Secure Connections on - Invalid params 2 - setup
Initial settings completed
Client set connectable: Success (0x00)
Set Secure Connections on - Invalid params 2 - setup complete Set Secure Connections on - Invalid params 2 - run
Sending Set Secure Connections (0x002d)
Test condition added, total 1
Set Secure Connections (0x002d): Invalid Parameters (0x0d) Test condition complete, 0 left
Set Secure Connections on - Invalid params 2 - test passed Set Secure Connections on - Invalid params 2 - teardown
Index Removed callback

    Index: 0x0000

Set Secure Connections on - Invalid params 2 - teardown complete Set Secure Connections on - Invalid params 2 - done

Set Secure Connections on - Invalid params 3 - init
Read Version callback

    Status: Success (0x00)
    Version 1.19
  Read Commands callback
    Status: Success (0x00)
  Read Index List callback
    Status: Success (0x00)
  Index Added callback
    Index: 0x0000
  Read Info callback
    Status: Success (0x00)
    Address: 00:AA:01:00:00:00
    Version: 0x09
    Manufacturer: 0x003f
    Supported settings: 0x0001beff
    Current settings: 0x00000080
    Class: 0x000000
    Name: 
    Short name: 

Set Secure Connections on - Invalid params 3 - setup
Initial settings completed
Client set connectable: Success (0x00)
Set Secure Connections on - Invalid params 3 - setup complete Set Secure Connections on - Invalid params 3 - run
Sending Set Secure Connections (0x002d)
Test condition added, total 1
Set Secure Connections (0x002d): Invalid Parameters (0x0d) Test condition complete, 0 left
Set Secure Connections on - Invalid params 3 - test passed Set Secure Connections on - Invalid params 3 - teardown
Index Removed callback

    Index: 0x0000

Set Secure Connections on - Invalid params 3 - teardown complete Set Secure Connections on - Invalid params 3 - done

Set Secure Connections on - Invalid index - init
Read Version callback

    Status: Success (0x00)
    Version 1.19
  Read Commands callback
    Status: Success (0x00)
  Read Index List callback
    Status: Success (0x00)
  Index Added callback
    Index: 0x0000
  Read Info callback
    Status: Success (0x00)
    Address: 00:AA:01:00:00:00
    Version: 0x09
    Manufacturer: 0x003f
    Supported settings: 0x0001beff
    Current settings: 0x00000080
    Class: 0x000000
    Name: 
    Short name: 

Set Secure Connections on - Invalid index - setup
Initial settings completed
Client set connectable: Success (0x00)
Set Secure Connections on - Invalid index - setup complete Set Secure Connections on - Invalid index - run
Sending Set Secure Connections (0x002d)
Test condition added, total 1
Set Secure Connections (0x002d): Invalid Index (0x11) Test condition complete, 0 left
Set Secure Connections on - Invalid index - test passed Set Secure Connections on - Invalid index - teardown
Index Removed callback

    Index: 0x0000

Set Secure Connections on - Invalid index - teardown complete Set Secure Connections on - Invalid index - done

Set Secure Connections on - Not supported 1 - init
Read Version callback

    Status: Success (0x00)
    Version 1.19
  Read Commands callback
    Status: Success (0x00)
  Read Index List callback
    Status: Success (0x00)
  Index Added callback
    Index: 0x0000
  Read Info callback
    Status: Success (0x00)
    Address: 00:AA:01:00:00:00
    Version: 0x05
    Manufacturer: 0x003f
    Supported settings: 0x000110ff
    Current settings: 0x00000080
    Class: 0x000000
    Name: 
    Short name: 

Set Secure Connections on - Not supported 1 - setup
Initial settings completed
Client set connectable: Success (0x00)
Set Secure Connections on - Not supported 1 - setup complete Set Secure Connections on - Not supported 1 - run
Sending Set Secure Connections (0x002d)
Test condition added, total 1
Set Secure Connections (0x002d): Not Supported (0x0c) Test condition complete, 0 left
Set Secure Connections on - Not supported 1 - test passed Set Secure Connections on - Not supported 1 - teardown
Index Removed callback

    Index: 0x0000

Set Secure Connections on - Not supported 1 - teardown complete Set Secure Connections on - Not supported 1 - done

Set Secure Connections on - Not supported 2 - init
Read Version callback

    Status: Success (0x00)
    Version 1.19
  Read Commands callback
    Status: Success (0x00)
  Read Index List callback
    Status: Success (0x00)
  Index Added callback
    Index: 0x0000
  Read Info callback
    Status: Success (0x00)
    Address: 00:AA:01:00:00:00
    Version: 0x05
    Manufacturer: 0x003f
    Supported settings: 0x000110ff
    Current settings: 0x00000080
    Class: 0x000000
    Name: 
    Short name: 

Set Secure Connections on - Not supported 2 - setup
Initial settings completed
Client set connectable: Success (0x00)
Set Secure Connections on - Not supported 2 - setup complete Set Secure Connections on - Not supported 2 - run
Sending Set Secure Connections (0x002d)
Test condition added, total 1
Set Secure Connections (0x002d): Not Supported (0x0c) Test condition complete, 0 left
Set Secure Connections on - Not supported 2 - test passed Set Secure Connections on - Not supported 2 - teardown
Index Removed callback

    Index: 0x0000

Set Secure Connections on - Not supported 2 - teardown complete Set Secure Connections on - Not supported 2 - done

Set Secure Connections Only on - Success 1 - init
Read Version callback

    Status: Success (0x00)
    Version 1.19
  Read Commands callback
    Status: Success (0x00)
  Read Index List callback
    Status: Success (0x00)
  Index Added callback
    Index: 0x0000
  Read Info callback
    Status: Success (0x00)
    Address: 00:AA:01:00:00:00
    Version: 0x09
    Manufacturer: 0x003f
    Supported settings: 0x0001beff
    Current settings: 0x00000080
    Class: 0x000000
    Name: 
    Short name: 

Set Secure Connections Only on - Success 1 - setup
Initial settings completed
Client set connectable: Success (0x00)
Set Secure Connections Only on - Success 1 - setup complete Set Secure Connections Only on - Success 1 - run
Registering new settings notification
Test condition added, total 1
Sending Set Secure Connections (0x002d)
Test condition added, total 2
Set Secure Connections (0x002d): Success (0x00) Test condition complete, 1 left
New settings 0x000008c0 received
Unregistering new settings notification
Test condition complete, 0 left
Set Secure Connections Only on - Success 1 - test passed Set Secure Connections Only on - Success 1 - teardown
Index Removed callback

    Index: 0x0000

Set Secure Connections Only on - Success 1 - teardown complete Set Secure Connections Only on - Success 1 - done

Set Secure Connections Only on - Success 2 - init
Read Version callback

    Status: Success (0x00)
    Version 1.19
  Read Commands callback
    Status: Success (0x00)
  Read Index List callback
    Status: Success (0x00)
  Index Added callback
    Index: 0x0000
  Read Info callback
    Status: Success (0x00)
    Address: 00:AA:01:00:00:00
    Version: 0x09
    Manufacturer: 0x003f
    Supported settings: 0x0001beff
    Current settings: 0x00000080
    Class: 0x000000
    Name: 
    Short name: 

Set Secure Connections Only on - Success 2 - setup
Initial settings completed
Client set connectable: Success (0x00)
Set Secure Connections Only on - Success 2 - setup complete Set Secure Connections Only on - Success 2 - run
Registering new settings notification
Test condition added, total 1
Registering HCI command callback
Test condition added, total 2
Sending Set Secure Connections (0x002d)
Test condition added, total 3
HCI Command 0x0c7a length 1
Test condition complete, 2 left
Set Secure Connections (0x002d): Success (0x00) Test condition complete, 1 left
New settings 0x000008c1 received
Unregistering new settings notification
Test condition complete, 0 left
Set Secure Connections Only on - Success 2 - test passed Set Secure Connections Only on - Success 2 - teardown
New settings event received
Index Removed callback

    Index: 0x0000

Set Secure Connections Only on - Success 2 - teardown complete Set Secure Connections Only on - Success 2 - done

Set High Speed on - Success - init
Read Version callback

    Status: Success (0x00)
    Version 1.19
  Read Commands callback
    Status: Success (0x00)
  Read Index List callback
    Status: Success (0x00)
  Index Added callback
    Index: 0x0000
  Read Info callback
    Status: Success (0x00)
    Address: 00:AA:01:00:00:00
    Version: 0x09
    Manufacturer: 0x003f
    Supported settings: 0x0001beff
    Current settings: 0x00000080
    Class: 0x000000
    Name: 
    Short name: 

Expected bit 8 not supported
Expected supported settings: 0x0001beff != 0x0001bfff
Set High Speed on - Success - pre setup failed
Index Removed callback

    Index: 0x0000

Set High Speed on - Success - done

Set High Speed on - Invalid parameters 1 - init
Read Version callback

    Status: Success (0x00)
    Version 1.19
  Read Commands callback
    Status: Success (0x00)
  Read Index List callback
    Status: Success (0x00)
  Index Added callback
    Index: 0x0000
  Read Info callback
    Status: Success (0x00)
    Address: 00:AA:01:00:00:00
    Version: 0x09
    Manufacturer: 0x003f
    Supported settings: 0x0001beff
    Current settings: 0x00000080
    Class: 0x000000
    Name: 
    Short name: 

Expected bit 8 not supported
Expected supported settings: 0x0001beff != 0x0001bfff
Set High Speed on - Invalid parameters 1 - pre setup failed
Index Removed callback

    Index: 0x0000

Set High Speed on - Invalid parameters 1 - done

Set High Speed on - Invalid parameters 2 - init
Read Version callback

    Status: Success (0x00)
    Version 1.19
  Read Commands callback
    Status: Success (0x00)
  Read Index List callback
    Status: Success (0x00)
  Index Added callback
    Index: 0x0000
  Read Info callback
    Status: Success (0x00)
    Address: 00:AA:01:00:00:00
    Version: 0x09
    Manufacturer: 0x003f
    Supported settings: 0x0001beff
    Current settings: 0x00000080
    Class: 0x000000
    Name: 
    Short name: 

Expected bit 8 not supported
Expected supported settings: 0x0001beff != 0x0001bfff
Set High Speed on - Invalid parameters 2 - pre setup failed
Index Removed callback

    Index: 0x0000

Set High Speed on - Invalid parameters 2 - done

Set High Speed on - Invalid parameters 3 - init
Read Version callback

    Status: Success (0x00)
    Version 1.19
  Read Commands callback
    Status: Success (0x00)
  Read Index List callback
    Status: Success (0x00)
  Index Added callback
    Index: 0x0000
  Read Info callback
    Status: Success (0x00)
    Address: 00:AA:01:00:00:00
    Version: 0x09
    Manufacturer: 0x003f
    Supported settings: 0x0001beff
    Current settings: 0x00000080
    Class: 0x000000
    Name: 
    Short name: 

Expected bit 8 not supported
Expected supported settings: 0x0001beff != 0x0001bfff
Set High Speed on - Invalid parameters 3 - pre setup failed
Index Removed callback

    Index: 0x0000

Set High Speed on - Invalid parameters 3 - done

Set High Speed on - Invalid index - init
Read Version callback

    Status: Success (0x00)
    Version 1.19
  Read Commands callback
    Status: Success (0x00)
  Read Index List callback
    Status: Success (0x00)
  Index Added callback
    Index: 0x0000
  Read Info callback
    Status: Success (0x00)
    Address: 00:AA:01:00:00:00
    Version: 0x09
    Manufacturer: 0x003f
    Supported settings: 0x0001beff
    Current settings: 0x00000080
    Class: 0x000000
    Name: 
    Short name: 

Expected bit 8 not supported
Expected supported settings: 0x0001beff != 0x0001bfff
Set High Speed on - Invalid index - pre setup failed
Index Removed callback

    Index: 0x0000

Set High Speed on - Invalid index - done

Set Low Energy on - Success 1 - init
Read Version callback

    Status: Success (0x00)
    Version 1.19
  Read Commands callback
    Status: Success (0x00)
  Read Index List callback
    Status: Success (0x00)
  Index Added callback
    Index: 0x0000
  Read Info callback
    Status: Success (0x00)
    Address: 00:AA:01:00:00:00
    Version: 0x09
    Manufacturer: 0x003f
    Supported settings: 0x0001beff
    Current settings: 0x00000080
    Class: 0x000000
    Name: 
    Short name: 

Set Low Energy on - Success 1 - setup
Set Low Energy on - Success 1 - setup complete
Set Low Energy on - Success 1 - run
Registering new settings notification
Test condition added, total 1
Sending Set Low Energy (0x000d)
Test condition added, total 2
Set Low Energy (0x000d): Success (0x00)
Test condition complete, 1 left
New settings 0x00000280 received
Unregistering new settings notification
Test condition complete, 0 left
Set Low Energy on - Success 1 - test passed
Set Low Energy on - Success 1 - teardown
Index Removed callback

    Index: 0x0000

Set Low Energy on - Success 1 - teardown complete
Set Low Energy on - Success 1 - done

Set Low Energy on - Success 2 - init
Read Version callback

    Status: Success (0x00)
    Version 1.19
  Read Commands callback
    Status: Success (0x00)
  Read Index List callback
    Status: Success (0x00)
  Index Added callback
    Index: 0x0000
  Read Info callback
    Status: Success (0x00)
    Address: 00:AA:01:00:00:00
    Version: 0x09
    Manufacturer: 0x003f
    Supported settings: 0x0001beff
    Current settings: 0x00000080
    Class: 0x000000
    Name: 
    Short name: 

Set Low Energy on - Success 2 - setup
Initial settings completed
Client set connectable: Success (0x00)
Set Low Energy on - Success 2 - setup complete
Set Low Energy on - Success 2 - run
Registering new settings notification
Test condition added, total 1
Registering HCI command callback
Test condition added, total 2
Sending Set Low Energy (0x000d)
Test condition added, total 3
HCI Command 0x0c6d length 2
Test condition complete, 2 left
Set Low Energy (0x000d): Success (0x00)
Test condition complete, 1 left
New settings 0x00000281 received
Unregistering new settings notification
Test condition complete, 0 left
Set Low Energy on - Success 2 - test passed
HCI Command 0x2008 length 32
Set Low Energy on - Success 2 - teardown
New settings event received
Index Removed callback

    Index: 0x0000

Set Low Energy on - Success 2 - teardown complete
Set Low Energy on - Success 2 - done

Set Low Energy on - Success 3 - init
Read Version callback

    Status: Success (0x00)
    Version 1.19
  Read Commands callback
    Status: Success (0x00)
  Read Index List callback
    Status: Success (0x00)
  Index Added callback
    Index: 0x0000
  Read Info callback
    Status: Success (0x00)
    Address: 00:AA:01:00:00:00
    Version: 0x09
    Manufacturer: 0x003f
    Supported settings: 0x0001beff
    Current settings: 0x00000080
    Class: 0x000000
    Name: 
    Short name: 

Set Low Energy on - Success 3 - setup
Initial settings completed
Client set connectable: Success (0x00)
Set Low Energy on - Success 3 - setup complete
Set Low Energy on - Success 3 - run
Registering new settings notification
Test condition added, total 1
Registering HCI command callback
Test condition added, total 2
Sending Set Powered (0x0005)
Test condition added, total 3
HCI Command 0x0c6d length 2
Test condition complete, 2 left
HCI Command 0x2008 length 32
HCI Command 0x0c13 length 248
Set Powered (0x0005): Success (0x00)
Test condition complete, 1 left
New settings 0x00000281 received
Unregistering new settings notification
Test condition complete, 0 left
Set Low Energy on - Success 3 - test passed
Set Low Energy on - Success 3 - teardown
New settings event received
Index Removed callback

    Index: 0x0000

Set Low Energy on - Success 3 - teardown complete
Set Low Energy on - Success 3 - done

Set Low Energy on - Invalid parameters 1 - init
Read Version callback

    Status: Success (0x00)
    Version 1.19
  Read Commands callback
    Status: Success (0x00)
  Read Index List callback
    Status: Success (0x00)
  Index Added callback
    Index: 0x0000
  Read Info callback
    Status: Success (0x00)
    Address: 00:AA:01:00:00:00
    Version: 0x09
    Manufacturer: 0x003f
    Supported settings: 0x0001beff
    Current settings: 0x00000080
    Class: 0x000000
    Name: 
    Short name: 

Set Low Energy on - Invalid parameters 1 - setup Set Low Energy on - Invalid parameters 1 - setup complete Set Low Energy on - Invalid parameters 1 - run
Sending Set Low Energy (0x000d)
Test condition added, total 1
Set Low Energy (0x000d): Invalid Parameters (0x0d) Test condition complete, 0 left
Set Low Energy on - Invalid parameters 1 - test passed Set Low Energy on - Invalid parameters 1 - teardown
Index Removed callback

    Index: 0x0000

Set Low Energy on - Invalid parameters 1 - teardown complete Set Low Energy on - Invalid parameters 1 - done

Set Low Energy on - Invalid parameters 2 - init
Read Version callback

    Status: Success (0x00)
    Version 1.19
  Read Commands callback
    Status: Success (0x00)
  Read Index List callback
    Status: Success (0x00)
  Index Added callback
    Index: 0x0000
  Read Info callback
    Status: Success (0x00)
    Address: 00:AA:01:00:00:00
    Version: 0x09
    Manufacturer: 0x003f
    Supported settings: 0x0001beff
    Current settings: 0x00000080
    Class: 0x000000
    Name: 
    Short name: 

Set Low Energy on - Invalid parameters 2 - setup Set Low Energy on - Invalid parameters 2 - setup complete Set Low Energy on - Invalid parameters 2 - run
Sending Set Low Energy (0x000d)
Test condition added, total 1
Set Low Energy (0x000d): Invalid Parameters (0x0d) Test condition complete, 0 left
Set Low Energy on - Invalid parameters 2 - test passed Set Low Energy on - Invalid parameters 2 - teardown
Index Removed callback

    Index: 0x0000

Set Low Energy on - Invalid parameters 2 - teardown complete Set Low Energy on - Invalid parameters 2 - done

Set Low Energy on - Invalid parameters 3 - init
Read Version callback

    Status: Success (0x00)
    Version 1.19
  Read Commands callback
    Status: Success (0x00)
  Read Index List callback
    Status: Success (0x00)
  Index Added callback
    Index: 0x0000
  Read Info callback
    Status: Success (0x00)
    Address: 00:AA:01:00:00:00
    Version: 0x09
    Manufacturer: 0x003f
    Supported settings: 0x0001beff
    Current settings: 0x00000080
    Class: 0x000000
    Name: 
    Short name: 

Set Low Energy on - Invalid parameters 3 - setup Set Low Energy on - Invalid parameters 3 - setup complete Set Low Energy on - Invalid parameters 3 - run
Sending Set Low Energy (0x000d)
Test condition added, total 1
Set Low Energy (0x000d): Invalid Parameters (0x0d) Test condition complete, 0 left
Set Low Energy on - Invalid parameters 3 - test passed Set Low Energy on - Invalid parameters 3 - teardown
Index Removed callback

    Index: 0x0000

Set Low Energy on - Invalid parameters 3 - teardown complete Set Low Energy on - Invalid parameters 3 - done

Set Low Energy on - Invalid index - init
Read Version callback

    Status: Success (0x00)
    Version 1.19
  Read Commands callback
    Status: Success (0x00)
  Read Index List callback
    Status: Success (0x00)
  Index Added callback
    Index: 0x0000
  Read Info callback
    Status: Success (0x00)
    Address: 00:AA:01:00:00:00
    Version: 0x09
    Manufacturer: 0x003f
    Supported settings: 0x0001beff
    Current settings: 0x00000080
    Class: 0x000000
    Name: 
    Short name: 

Set Low Energy on - Invalid index - setup Set Low Energy on - Invalid index - setup complete Set Low Energy on - Invalid index - run
Sending Set Low Energy (0x000d)
Test condition added, total 1
Set Low Energy (0x000d): Invalid Index (0x11) Test condition complete, 0 left
Set Low Energy on - Invalid index - test passed Set Low Energy on - Invalid index - teardown
Index Removed callback

    Index: 0x0000

Set Low Energy on - Invalid index - teardown complete Set Low Energy on - Invalid index - done

Set Advertising on - Success 1 - init
Read Version callback

    Status: Success (0x00)
    Version 1.19
  Read Commands callback
    Status: Success (0x00)
  Read Index List callback
    Status: Success (0x00)
  Index Added callback
    Index: 0x0000
  Read Info callback
    Status: Success (0x00)
    Address: 00:AA:01:00:00:00
    Version: 0x09
    Manufacturer: 0x003f
    Supported settings: 0x0001beff
    Current settings: 0x00000080
    Class: 0x000000
    Name: 
    Short name: 

Set Advertising on - Success 1 - setup
Initial settings completed
Client set connectable: Success (0x00)
Set Advertising on - Success 1 - setup complete
Set Advertising on - Success 1 - run
Registering new settings notification
Test condition added, total 1
Sending Set Advertising (0x0029)
Test condition added, total 2
Set Advertising (0x0029): Success (0x00)
Test condition complete, 1 left
New settings 0x00000680 received
Unregistering new settings notification
Test condition complete, 0 left
Set Advertising on - Success 1 - test passed
Set Advertising on - Success 1 - teardown
Index Removed callback

    Index: 0x0000

Set Advertising on - Success 1 - teardown complete Set Advertising on - Success 1 - done

Set Advertising on - Success 2 - init
Read Version callback

    Status: Success (0x00)
    Version 1.19
  Read Commands callback
    Status: Success (0x00)
  Read Index List callback
    Status: Success (0x00)
  Index Added callback
    Index: 0x0000
  Read Info callback
    Status: Success (0x00)
    Address: 00:AA:01:00:00:00
    Version: 0x09
    Manufacturer: 0x003f
    Supported settings: 0x0001beff
    Current settings: 0x00000080
    Class: 0x000000
    Name: 
    Short name: 

Set Advertising on - Success 2 - setup
Initial settings completed
Client set connectable: Success (0x00)
Set Advertising on - Success 2 - setup complete
Set Advertising on - Success 2 - run
Registering new settings notification
Test condition added, total 1
Registering HCI command callback
Test condition added, total 2
Sending Set Advertising (0x0029)
Test condition added, total 3
HCI Command 0x2005 length 6
HCI Command 0x2006 length 15
HCI Command 0x200a length 1
Test condition complete, 2 left
Set Advertising (0x0029): Success (0x00)
Test condition complete, 1 left
New settings 0x00000681 received
Unregistering new settings notification
Test condition complete, 0 left
Set Advertising on - Success 2 - test passed
Set Advertising on - Success 2 - teardown
New settings event received
Index Removed callback

    Index: 0x0000

Set Advertising on - Success 2 - teardown complete Set Advertising on - Success 2 - done

Set Advertising on - Rejected 1 - init
Read Version callback

    Status: Success (0x00)
    Version 1.19
  Read Commands callback
    Status: Success (0x00)
  Read Index List callback
    Status: Success (0x00)
  Index Added callback
    Index: 0x0000
  Read Info callback
    Status: Success (0x00)
    Address: 00:AA:01:00:00:00
    Version: 0x09
    Manufacturer: 0x003f
    Supported settings: 0x0001beff
    Current settings: 0x00000080
    Class: 0x000000
    Name: 
    Short name: 

Set Advertising on - Rejected 1 - setup
Initial settings completed
Client set connectable: Success (0x00)
Set Advertising on - Rejected 1 - setup complete
Set Advertising on - Rejected 1 - run
Sending Set Advertising (0x0029)
Test condition added, total 1
Set Advertising (0x0029): Rejected (0x0b)
Test condition complete, 0 left
Set Advertising on - Rejected 1 - test passed
Set Advertising on - Rejected 1 - teardown
Index Removed callback

    Index: 0x0000

Set Advertising on - Rejected 1 - teardown complete Set Advertising on - Rejected 1 - done

Set Advertising on - Appearance 1 - init
Read Version callback

    Status: Success (0x00)
    Version 1.19
  Read Commands callback
    Status: Success (0x00)
  Read Index List callback
    Status: Success (0x00)
  Index Added callback
    Index: 0x0000
  Read Info callback
    Status: Success (0x00)
    Address: 00:AA:01:00:00:00
    Version: 0x09
    Manufacturer: 0x003f
    Supported settings: 0x0001beff
    Current settings: 0x00000080
    Class: 0x000000
    Name: 
    Short name: 

Set Advertising on - Appearance 1 - setup
Initial settings completed
Setup sending Set Appearance (0x0043) Test setup condition added, total 1
Test setup condition complete, 0 left
Set Advertising on - Appearance 1 - setup complete Set Advertising on - Appearance 1 - run
Registering HCI command callback
Test condition added, total 1
Sending Set Advertising (0x0029)
Test condition added, total 2
HCI Command 0x2009 length 32
Test condition complete, 1 left
HCI Command 0x2005 length 6
HCI Command 0x2006 length 15
HCI Command 0x200a length 1
Set Advertising (0x0029): Success (0x00) Test condition complete, 0 left
Set Advertising on - Appearance 1 - test passed Set Advertising on - Appearance 1 - teardown
Index Removed callback

    Index: 0x0000

Set Advertising on - Appearance 1 - teardown complete Set Advertising on - Appearance 1 - done

Set Advertising on - Local name 1 - init
Read Version callback

    Status: Success (0x00)
    Version 1.19
  Read Commands callback
    Status: Success (0x00)
  Read Index List callback
    Status: Success (0x00)
  Index Added callback
    Index: 0x0000
  Read Info callback
    Status: Success (0x00)
    Address: 00:AA:01:00:00:00
    Version: 0x09
    Manufacturer: 0x003f
    Supported settings: 0x0001beff
    Current settings: 0x00000080
    Class: 0x000000
    Name: 
    Short name: 

Set Advertising on - Local name 1 - setup
Initial settings completed
Setup sending Set Local Name (0x000f) Test setup condition added, total 1
Test setup condition complete, 0 left
Set Advertising on - Local name 1 - setup complete Set Advertising on - Local name 1 - run
Registering HCI command callback
Test condition added, total 1
Sending Set Advertising (0x0029)
Test condition added, total 2
HCI Command 0x2009 length 32
Test condition complete, 1 left
HCI Command 0x2005 length 6
HCI Command 0x2006 length 15
HCI Command 0x200a length 1
Set Advertising (0x0029): Success (0x00) Test condition complete, 0 left
Set Advertising on - Local name 1 - test passed Set Advertising on - Local name 1 - teardown
Index Removed callback

    Index: 0x0000

Set Advertising on - Local name 1 - teardown complete Set Advertising on - Local name 1 - done

Set Advertising on - Name + Appear 1 - init
Read Version callback

    Status: Success (0x00)
    Version 1.19
  Read Commands callback
    Status: Success (0x00)
  Read Index List callback
    Status: Success (0x00)
  Index Added callback
    Index: 0x0000
  Read Info callback
    Status: Success (0x00)
    Address: 00:AA:01:00:00:00
    Version: 0x09
    Manufacturer: 0x003f
    Supported settings: 0x0001beff
    Current settings: 0x00000080
    Class: 0x000000
    Name: 
    Short name: 

Set Advertising on - Name + Appear 1 - setup
Initial settings completed
Sending setup opcode array
Setup sending Set Appearance (0x0043)
Test setup condition added, total 1
Setup sending Set Local Name (0x000f)
Test setup condition added, total 2
Test setup condition complete, 1 left
Test setup condition complete, 0 left
Set Advertising on - Name + Appear 1 - setup complete Set Advertising on - Name + Appear 1 - run
Registering HCI command callback
Test condition added, total 1
Sending Set Advertising (0x0029)
Test condition added, total 2
HCI Command 0x2009 length 32
Test condition complete, 1 left
HCI Command 0x2005 length 6
HCI Command 0x2006 length 15
HCI Command 0x200a length 1
Set Advertising (0x0029): Success (0x00) Test condition complete, 0 left
Set Advertising on - Name + Appear 1 - test passed Set Advertising on - Name + Appear 1 - teardown
Index Removed callback

    Index: 0x0000

Set Advertising on - Name + Appear 1 - teardown complete Set Advertising on - Name + Appear 1 - done

Set BR/EDR off - Success 1 - init
Read Version callback

    Status: Success (0x00)
    Version 1.19
  Read Commands callback
    Status: Success (0x00)
  Read Index List callback
    Status: Success (0x00)
  Index Added callback
    Index: 0x0000
  Read Info callback
    Status: Success (0x00)
    Address: 00:AA:01:00:00:00
    Version: 0x09
    Manufacturer: 0x003f
    Supported settings: 0x0001beff
    Current settings: 0x00000080
    Class: 0x000000
    Name: 
    Short name: 

Set BR/EDR off - Success 1 - setup
Initial settings completed
Client set connectable: Success (0x00)
Set BR/EDR off - Success 1 - setup complete
Set BR/EDR off - Success 1 - run
Registering new settings notification
Test condition added, total 1
Sending Set BR/EDR (0x002a)
Test condition added, total 2
Set BR/EDR (0x002a): Success (0x00)
Test condition complete, 1 left
New settings 0x00000200 received
Unregistering new settings notification
Test condition complete, 0 left
Set BR/EDR off - Success 1 - test passed
Set BR/EDR off - Success 1 - teardown
Index Removed callback

    Index: 0x0000

Set BR/EDR off - Success 1 - teardown complete
Set BR/EDR off - Success 1 - done

Set BR/EDR on - Success 1 - init
Read Version callback

    Status: Success (0x00)
    Version 1.19
  Read Commands callback
    Status: Success (0x00)
  Read Index List callback
    Status: Success (0x00)
  Index Added callback
    Index: 0x0000
  Read Info callback
    Status: Success (0x00)
    Address: 00:AA:01:00:00:00
    Version: 0x09
    Manufacturer: 0x003f
    Supported settings: 0x0001beff
    Current settings: 0x00000080
    Class: 0x000000
    Name: 
    Short name: 

Set BR/EDR on - Success 1 - setup
Initial settings completed
Client set connectable: Success (0x00)
Set BR/EDR on - Success 1 - setup complete
Set BR/EDR on - Success 1 - run
Registering new settings notification
Test condition added, total 1
Sending Set BR/EDR (0x002a)
Test condition added, total 2
Set BR/EDR (0x002a): Success (0x00)
Test condition complete, 1 left
New settings 0x00000280 received
Unregistering new settings notification
Test condition complete, 0 left
Set BR/EDR on - Success 1 - test passed
Set BR/EDR on - Success 1 - teardown
Index Removed callback

    Index: 0x0000

Set BR/EDR on - Success 1 - teardown complete
Set BR/EDR on - Success 1 - done

Set BR/EDR on - Success 2 - init
Read Version callback

    Status: Success (0x00)
    Version 1.19
  Read Commands callback
    Status: Success (0x00)
  Read Index List callback
    Status: Success (0x00)
  Index Added callback
    Index: 0x0000
  Read Info callback
    Status: Success (0x00)
    Address: 00:AA:01:00:00:00
    Version: 0x09
    Manufacturer: 0x003f
    Supported settings: 0x0001beff
    Current settings: 0x00000080
    Class: 0x000000
    Name: 
    Short name: 

13,132 lines not shown · raw message

Part of this message is not shown here. View the raw message.

maintainer
#2 lore raw
In reply to Luiz Augusto von Dentz

Hi Luiz,

Quoted 427 lines

This converts instances of BT_ERR and BT_DBG to bt_dev_err and bt_dev_dbg which can be enabled at runtime when BT_FEATURE_DEBUG is enabled.

Note: Not all instances could be converted as some are exercised by selftest.

---
v2: Fix issues found by CI

net/bluetooth/smp.c | 98 ++++++++++++++++++++++++---------------------

1 file changed, 52 insertions(+), 46 deletions(-)
net/bluetooth/smp.c +51 -45
index e03cc284161c..3cc1ad042edf 100644
@@ -595,7 +595,7 @@ static void smp_send_cmd(struct l2cap_conn *conn, u8 code, u16 len, void *data)
 	if (!chan)
 		return;
 
-	BT_DBG("code 0x%2.2x", code);
+	bt_dev_dbg(conn->hcon->hdev, "code 0x%2.2x", code);
 
 	iv[0].iov_base = &code;
 	iv[0].iov_len = 1;
@@ -859,7 +859,8 @@ static int tk_request(struct l2cap_conn *conn, u8 remote_oob, u8 auth,
 	memset(smp->tk, 0, sizeof(smp->tk));
 	clear_bit(SMP_FLAG_TK_VALID, &smp->flags);
 
-	BT_DBG("tk_request: auth:%d lcl:%d rem:%d", auth, local_io, remote_io);
+	bt_dev_dbg(hcon->hdev, "auth:%d lcl:%d rem:%d", auth, local_io,
+		   remote_io);
 
 	/* If neither side wants MITM, either "just" confirm an incoming
 	 * request or use just-works for outgoing ones. The JUST_CFM
@@ -924,7 +925,7 @@ static int tk_request(struct l2cap_conn *conn, u8 remote_oob, u8 auth,
 		get_random_bytes(&passkey, sizeof(passkey));
 		passkey %= 1000000;
 		put_unaligned_le32(passkey, smp->tk);
-		BT_DBG("PassKey: %d", passkey);
+		bt_dev_dbg(hcon->hdev, "PassKey: %d", passkey);
 		set_bit(SMP_FLAG_TK_VALID, &smp->flags);
 	}
 
@@ -949,7 +950,7 @@ static u8 smp_confirm(struct smp_chan *smp)
 	struct smp_cmd_pairing_confirm cp;
 	int ret;
 
-	BT_DBG("conn %p", conn);
+	bt_dev_dbg(conn->hcon->hdev, "conn %p", conn);
 
 	ret = smp_c1(smp->tk, smp->prnd, smp->preq, smp->prsp,
 		     conn->hcon->init_addr_type, &conn->hcon->init_addr,
@@ -977,7 +978,8 @@ static u8 smp_random(struct smp_chan *smp)
 	u8 confirm[16];
 	int ret;
 
-	BT_DBG("conn %p %s", conn, conn->hcon->out ? "master" : "slave");
+	bt_dev_dbg(conn->hcon->hdev, "conn %p %s", conn,
+		   conn->hcon->out ? "master" : "slave");
 
 	ret = smp_c1(smp->tk, smp->rrnd, smp->preq, smp->prsp,
 		     hcon->init_addr_type, &hcon->init_addr,
@@ -1236,7 +1238,7 @@ static void smp_distribute_keys(struct smp_chan *smp)
 	struct hci_dev *hdev = hcon->hdev;
 	__u8 *keydist;
 
-	BT_DBG("conn %p", conn);
+	bt_dev_dbg(hdev, "conn %p", conn);
 
 	rsp = (void *) &smp->prsp[1];
 
@@ -1266,7 +1268,7 @@ static void smp_distribute_keys(struct smp_chan *smp)
 		*keydist &= ~SMP_SC_NO_DIST;
 	}
 
-	BT_DBG("keydist 0x%x", *keydist);
+	bt_dev_dbg(hdev, "keydist 0x%x", *keydist);
 
 	if (*keydist & SMP_DIST_ENC_KEY) {
 		struct smp_cmd_encrypt_info enc;
@@ -1366,13 +1368,14 @@ static void smp_timeout(struct work_struct *work)
 					    security_timer.work);
 	struct l2cap_conn *conn = smp->conn;
 
-	BT_DBG("conn %p", conn);
+	bt_dev_dbg(conn->hcon->hdev, "conn %p", conn);
 
 	hci_disconnect(conn->hcon, HCI_ERROR_REMOTE_USER_TERM);
 }
 
 static struct smp_chan *smp_chan_create(struct l2cap_conn *conn)
 {
+	struct hci_conn *hcon = conn->hcon;
 	struct l2cap_chan *chan = conn->smp;
 	struct smp_chan *smp;
 
@@ -1382,13 +1385,13 @@ static struct smp_chan *smp_chan_create(struct l2cap_conn *conn)
 
 	smp->tfm_cmac = crypto_alloc_shash("cmac(aes)", 0, 0);
 	if (IS_ERR(smp->tfm_cmac)) {
-		BT_ERR("Unable to create CMAC crypto context");
+		bt_dev_err(hcon->hdev, "Unable to create CMAC crypto context");
 		goto zfree_smp;
 	}
 
 	smp->tfm_ecdh = crypto_alloc_kpp("ecdh", 0, 0);
 	if (IS_ERR(smp->tfm_ecdh)) {
-		BT_ERR("Unable to create ECDH crypto context");
+		bt_dev_err(hcon->hdev, "Unable to create ECDH crypto context");
 		goto free_shash;
 	}
 
@@ -1399,7 +1402,7 @@ static struct smp_chan *smp_chan_create(struct l2cap_conn *conn)
 
 	INIT_DELAYED_WORK(&smp->security_timer, smp_timeout);
 
-	hci_conn_hold(conn->hcon);
+	hci_conn_hold(hcon);
 
 	return smp;
 
@@ -1564,8 +1567,8 @@ static u8 sc_passkey_round(struct smp_chan *smp, u8 smp_op)
 		if (!hcon->out)
 			return 0;
 
-		BT_DBG("%s Starting passkey round %u", hdev->name,
-		       smp->passkey_round + 1);
+		bt_dev_dbg(hdev, "%s Starting passkey round %u", hdev->name,
+			   smp->passkey_round + 1);
 
 		SMP_ALLOW_CMD(smp, SMP_CMD_PAIRING_CONFIRM);
 
@@ -1625,7 +1628,7 @@ int smp_user_confirm_reply(struct hci_conn *hcon, u16 mgmt_op, __le32 passkey)
 	u32 value;
 	int err;
 
-	BT_DBG("");
+	bt_dev_dbg(conn->hcon->hdev, "");
 
 	if (!conn)
 		return -ENOTCONN;
@@ -1651,7 +1654,7 @@ int smp_user_confirm_reply(struct hci_conn *hcon, u16 mgmt_op, __le32 passkey)
 	case MGMT_OP_USER_PASSKEY_REPLY:
 		value = le32_to_cpu(passkey);
 		memset(smp->tk, 0, sizeof(smp->tk));
-		BT_DBG("PassKey: %d", value);
+		bt_dev_dbg(conn->hcon->hdev, "PassKey: %d", value);
 		put_unaligned_le32(value, smp->tk);
 		fallthrough;
 	case MGMT_OP_USER_CONFIRM_REPLY:
@@ -1733,7 +1736,7 @@ static u8 smp_cmd_pairing_req(struct l2cap_conn *conn, struct sk_buff *skb)
 	u8 key_size, auth, sec_level;
 	int ret;
 
-	BT_DBG("conn %p", conn);
+	bt_dev_dbg(hdev, "conn %p", conn);
 
 	if (skb->len < sizeof(*req))
 		return SMP_INVALID_PARAMS;
@@ -1887,7 +1890,7 @@ static u8 sc_send_public_key(struct smp_chan *smp)
 	}
 
 	if (hci_dev_test_flag(hdev, HCI_USE_DEBUG_KEYS)) {
-		BT_DBG("Using debug keys");
+		bt_dev_dbg(hdev, "Using debug keys");
 		if (set_ecdh_privkey(smp->tfm_ecdh, debug_sk))
 			return SMP_UNSPECIFIED;
 		memcpy(smp->local_pk, debug_pk, 64);
@@ -1924,7 +1927,7 @@ static u8 smp_cmd_pairing_rsp(struct l2cap_conn *conn, struct sk_buff *skb)
 	u8 key_size, auth;
 	int ret;
 
-	BT_DBG("conn %p", conn);
+	bt_dev_dbg(hdev, "conn %p", conn);
 
 	if (skb->len < sizeof(*rsp))
 		return SMP_INVALID_PARAMS;
@@ -2019,7 +2022,7 @@ static u8 sc_check_confirm(struct smp_chan *smp)
 {
 	struct l2cap_conn *conn = smp->conn;
 
-	BT_DBG("");
+	bt_dev_dbg(conn->hcon->hdev, "");
 
 	if (smp->method == REQ_PASSKEY || smp->method == DSP_PASSKEY)
 		return sc_passkey_round(smp, SMP_CMD_PAIRING_CONFIRM);
@@ -2078,8 +2081,10 @@ static u8 smp_cmd_pairing_confirm(struct l2cap_conn *conn, struct sk_buff *skb)
 {
 	struct l2cap_chan *chan = conn->smp;
 	struct smp_chan *smp = chan->data;
+	struct hci_conn *hcon = conn->hcon;
+	struct hci_dev *hdev = hcon->hdev;
 
-	BT_DBG("conn %p %s", conn, conn->hcon->out ? "master" : "slave");
+	bt_dev_dbg(hdev, "conn %p %s", conn, hcon->out ? "master" : "slave");
 
 	if (skb->len < sizeof(smp->pcnf))
 		return SMP_INVALID_PARAMS;
@@ -2094,7 +2099,7 @@ static u8 smp_cmd_pairing_confirm(struct l2cap_conn *conn, struct sk_buff *skb)
 		if (test_bit(SMP_FLAG_REMOTE_PK, &smp->flags))
 			return sc_check_confirm(smp);
 
-		BT_ERR("Unexpected SMP Pairing Confirm");
+		bt_dev_err(hdev, "Unexpected SMP Pairing Confirm");
 
 		ret = fixup_sc_false_positive(smp);
 		if (ret)
@@ -2125,7 +2130,7 @@ static u8 smp_cmd_pairing_random(struct l2cap_conn *conn, struct sk_buff *skb)
 	u32 passkey;
 	int err;
 
-	BT_DBG("conn %p", conn);
+	bt_dev_dbg(hcon->hdev, "conn %p", conn);
 
 	if (skb->len < sizeof(smp->rrnd))
 		return SMP_INVALID_PARAMS;
@@ -2284,7 +2289,7 @@ static u8 smp_cmd_security_req(struct l2cap_conn *conn, struct sk_buff *skb)
 	struct smp_chan *smp;
 	u8 sec_level, auth;
 
-	BT_DBG("conn %p", conn);
+	bt_dev_dbg(hdev, "conn %p", conn);
 
 	if (skb->len < sizeof(*rp))
 		return SMP_INVALID_PARAMS;
@@ -2347,7 +2352,8 @@ int smp_conn_security(struct hci_conn *hcon, __u8 sec_level)
 	__u8 authreq;
 	int ret;
 
-	BT_DBG("conn %p hcon %p level 0x%2.2x", conn, hcon, sec_level);
+	bt_dev_dbg(hcon->hdev, "conn %p hcon %p level 0x%2.2x", conn, hcon,
+		   sec_level);
 
 	/* This may be NULL if there's an unexpected disconnection */
 	if (!conn)
@@ -2483,7 +2489,7 @@ static int smp_cmd_encrypt_info(struct l2cap_conn *conn, struct sk_buff *skb)
 	struct l2cap_chan *chan = conn->smp;
 	struct smp_chan *smp = chan->data;
 
-	BT_DBG("conn %p", conn);
+	bt_dev_dbg(conn->hcon->hdev, "conn %p", conn);
 
 	if (skb->len < sizeof(*rp))
 		return SMP_INVALID_PARAMS;
@@ -2516,7 +2522,7 @@ static int smp_cmd_master_ident(struct l2cap_conn *conn, struct sk_buff *skb)
 	struct smp_ltk *ltk;
 	u8 authenticated;
 
-	BT_DBG("conn %p", conn);
+	bt_dev_dbg(hdev, "conn %p", conn);
 
 	if (skb->len < sizeof(*rp))
 		return SMP_INVALID_PARAMS;
@@ -2548,7 +2554,7 @@ static int smp_cmd_ident_info(struct l2cap_conn *conn, struct sk_buff *skb)
 	struct l2cap_chan *chan = conn->smp;
 	struct smp_chan *smp = chan->data;
 
-	BT_DBG("");
+	bt_dev_dbg(conn->hcon->hdev, "");
 
 	if (skb->len < sizeof(*info))
 		return SMP_INVALID_PARAMS;
@@ -2580,7 +2586,7 @@ static int smp_cmd_ident_addr_info(struct l2cap_conn *conn,
 	struct hci_conn *hcon = conn->hcon;
 	bdaddr_t rpa;
 
-	BT_DBG("");
+	bt_dev_dbg(hcon->hdev, "");
 
 	if (skb->len < sizeof(*info))
 		return SMP_INVALID_PARAMS;
@@ -2647,7 +2653,7 @@ static int smp_cmd_sign_info(struct l2cap_conn *conn, struct sk_buff *skb)
 	struct smp_chan *smp = chan->data;
 	struct smp_csrk *csrk;
 
-	BT_DBG("conn %p", conn);
+	bt_dev_dbg(conn->hcon->hdev, "conn %p", conn);
 
 	if (skb->len < sizeof(*rp))
 		return SMP_INVALID_PARAMS;
@@ -2727,7 +2733,7 @@ static int smp_cmd_public_key(struct l2cap_conn *conn, struct sk_buff *skb)
 	struct smp_cmd_pairing_confirm cfm;
 	int err;
 
-	BT_DBG("conn %p", conn);
+	bt_dev_dbg(hdev, "conn %p", conn);
 
 	if (skb->len < sizeof(*key))
 		return SMP_INVALID_PARAMS;
@@ -2791,7 +2797,7 @@ static int smp_cmd_public_key(struct l2cap_conn *conn, struct sk_buff *skb)
 
 	smp->method = sc_select_method(smp);
 
-	BT_DBG("%s selected method 0x%02x", hdev->name, smp->method);
+	bt_dev_dbg(hdev, "%s selected method 0x%02x", hdev->name, smp->method);
 
 	/* JUST_WORKS and JUST_CFM result in an unauthenticated key */
 	if (smp->method == JUST_WORKS || smp->method == JUST_CFM)
@@ -2866,7 +2872,7 @@ static int smp_cmd_dhkey_check(struct l2cap_conn *conn, struct sk_buff *skb)
 	u8 io_cap[3], r[16], e[16];
 	int err;
 
-	BT_DBG("conn %p", conn);
+	bt_dev_dbg(hcon->hdev, "conn %p", conn);
 
 	if (skb->len < sizeof(*check))
 		return SMP_INVALID_PARAMS;
@@ -2926,7 +2932,7 @@ static int smp_cmd_keypress_notify(struct l2cap_conn *conn,
 {
 	struct smp_cmd_keypress_notify *kp = (void *) skb->data;
 
-	BT_DBG("value 0x%02x", kp->value);
+	bt_dev_dbg(conn->hcon->hdev, "value 0x%02x", kp->value);
 
 	return 0;
 }
@@ -3023,7 +3029,7 @@ static int smp_sig_channel(struct l2cap_chan *chan, struct sk_buff *skb)
 		break;
 
 	default:
-		BT_DBG("Unknown command code 0x%2.2x", code);
+		bt_dev_dbg(hcon->hdev, "Unknown command code 0x%2.2x", code);
 		reason = SMP_CMD_NOTSUPP;
 		goto done;
 	}
@@ -3048,7 +3054,7 @@ static void smp_teardown_cb(struct l2cap_chan *chan, int err)
 {
 	struct l2cap_conn *conn = chan->conn;
 
-	BT_DBG("chan %p", chan);
+	bt_dev_dbg(conn->hcon->hdev, "chan %p", chan);
 
 	if (chan->data)
 		smp_chan_destroy(conn);
@@ -3065,7 +3071,7 @@ static void bredr_pairing(struct l2cap_chan *chan)
 	struct smp_cmd_pairing req;
 	struct smp_chan *smp;
 
-	BT_DBG("chan %p", chan);
+	bt_dev_dbg(hdev, "chan %p", chan);
 
 	/* Only new pairings are interesting */
 	if (!test_bit(HCI_CONN_NEW_LINK_KEY, &hcon->flags))
@@ -3112,7 +3118,7 @@ static void bredr_pairing(struct l2cap_chan *chan)
 
 	set_bit(SMP_FLAG_SC, &smp->flags);
 
-	BT_DBG("%s starting SMP over BR/EDR", hdev->name);
+	bt_dev_dbg(hdev, "%s starting SMP over BR/EDR", hdev->name);
 
 	/* Prepare and send the BR/EDR SMP Pairing Request */
 	build_bredr_pairing_cmd(smp, &req, NULL);
@@ -3130,7 +3136,7 @@ static void smp_resume_cb(struct l2cap_chan *chan)
 	struct l2cap_conn *conn = chan->conn;
 	struct hci_conn *hcon = conn->hcon;
 
-	BT_DBG("chan %p", chan);
+	bt_dev_dbg(hcon->hdev, "chan %p", chan);
 
 	if (hcon->type == ACL_LINK) {
 		bredr_pairing(chan);
@@ -3153,7 +3159,7 @@ static void smp_ready_cb(struct l2cap_chan *chan)
 	struct l2cap_conn *conn = chan->conn;
 	struct hci_conn *hcon = conn->hcon;
 
-	BT_DBG("chan %p", chan);
+	bt_dev_dbg(hcon->hdev, "chan %p", chan);
 
 	/* No need to call l2cap_chan_hold() here since we already own
 	 * the reference taken in smp_new_conn_cb(). This is just the
@@ -3171,7 +3177,7 @@ static int smp_recv_cb(struct l2cap_chan *chan, struct sk_buff *skb)
 {
 	int err;
 
-	BT_DBG("chan %p", chan);
+	bt_dev_dbg(chan->conn->hcon->hdev, "chan %p", chan);
 
 	err = smp_sig_channel(chan, skb);
 	if (err) {
@@ -3223,7 +3229,7 @@ static inline struct l2cap_chan *smp_new_conn_cb(struct l2cap_chan *pchan)
 {
 	struct l2cap_chan *chan;
 
-	BT_DBG("pchan %p", pchan);
+	bt_dev_dbg(pchan->conn->hcon->hdev, "pchan %p", pchan);
 
 	chan = l2cap_chan_create();
 	if (!chan)
@@ -3244,7 +3250,7 @@ static inline struct l2cap_chan *smp_new_conn_cb(struct l2cap_chan *pchan)
 	 */
 	atomic_set(&chan->nesting, L2CAP_NESTING_SMP);
 
-	BT_DBG("created chan %p", chan);
+	bt_dev_dbg(pchan->conn->hcon->hdev, "created chan %p", chan);
 
 	return chan;
 }
@@ -3285,14 +3291,14 @@ static struct l2cap_chan *smp_add_cid(struct hci_dev *hdev, u16 cid)
 
 	tfm_cmac = crypto_alloc_shash("cmac(aes)", 0, 0);
 	if (IS_ERR(tfm_cmac)) {
-		BT_ERR("Unable to create CMAC crypto context");
+		bt_dev_err(hdev, "Unable to create CMAC crypto context");
 		kfree_sensitive(smp);
 		return ERR_CAST(tfm_cmac);
 	}
 
 	tfm_ecdh = crypto_alloc_kpp("ecdh", 0, 0);
 	if (IS_ERR(tfm_ecdh)) {
-		BT_ERR("Unable to create ECDH crypto context");
+		bt_dev_err(hdev, "Unable to create ECDH crypto context");
 		crypto_free_shash(tfm_cmac);
 		kfree_sensitive(smp);
 		return ERR_CAST(tfm_ecdh);
@@ -3348,7 +3354,7 @@ static void smp_del_chan(struct l2cap_chan *chan)
 {
 	struct smp_dev *smp;
 
-	BT_DBG("chan %p", chan);
+	bt_dev_dbg(chan->conn->hcon->hdev, "chan %p", chan);
 
 	smp = chan->data;
 	if (smp) {

net/bluetooth/smp.c int smp_register(struct hci_dev *hdev) · line 3400

Quoted 5 lines
net/bluetooth/smp.c +1 -1
@@ -3391,7 +3397,7 @@ int smp_register(struct hci_dev *hdev)
 {
 	struct l2cap_chan *chan;
 
-	BT_DBG("%s", hdev->name);
+	bt_dev_dbg(hdev, "%s", hdev->name);

this is rather pointless since it just ends up printing hciX twice.

Regards

Marcel

author maintainer
#3 lore raw

Hi Marcel,

Quoted 433 lines · Marcel Holtmann

Hi Luiz,

Quoted 430 lines

This converts instances of BT_ERR and BT_DBG to bt_dev_err and bt_dev_dbg which can be enabled at runtime when BT_FEATURE_DEBUG is enabled.

Note: Not all instances could be converted as some are exercised by selftest.

---
v2: Fix issues found by CI

net/bluetooth/smp.c | 98 ++++++++++++++++++++++++---------------------

1 file changed, 52 insertions(+), 46 deletions(-)
net/bluetooth/smp.c +51 -45
index e03cc284161c..3cc1ad042edf 100644
@@ -595,7 +595,7 @@ static void smp_send_cmd(struct l2cap_conn *conn, u8 code, u16 len, void *data)
      if (!chan)
              return;
 
-     BT_DBG("code 0x%2.2x", code);
+     bt_dev_dbg(conn->hcon->hdev, "code 0x%2.2x", code);
 
      iv[0].iov_base = &code;
      iv[0].iov_len = 1;
@@ -859,7 +859,8 @@ static int tk_request(struct l2cap_conn *conn, u8 remote_oob, u8 auth,
      memset(smp->tk, 0, sizeof(smp->tk));
      clear_bit(SMP_FLAG_TK_VALID, &smp->flags);
 
-     BT_DBG("tk_request: auth:%d lcl:%d rem:%d", auth, local_io, remote_io);
+     bt_dev_dbg(hcon->hdev, "auth:%d lcl:%d rem:%d", auth, local_io,
+                remote_io);
 
      /* If neither side wants MITM, either "just" confirm an incoming
       * request or use just-works for outgoing ones. The JUST_CFM
@@ -924,7 +925,7 @@ static int tk_request(struct l2cap_conn *conn, u8 remote_oob, u8 auth,
              get_random_bytes(&passkey, sizeof(passkey));
              passkey %= 1000000;
              put_unaligned_le32(passkey, smp->tk);
-             BT_DBG("PassKey: %d", passkey);
+             bt_dev_dbg(hcon->hdev, "PassKey: %d", passkey);
              set_bit(SMP_FLAG_TK_VALID, &smp->flags);
      }
 
@@ -949,7 +950,7 @@ static u8 smp_confirm(struct smp_chan *smp)
      struct smp_cmd_pairing_confirm cp;
      int ret;
 
-     BT_DBG("conn %p", conn);
+     bt_dev_dbg(conn->hcon->hdev, "conn %p", conn);
 
      ret = smp_c1(smp->tk, smp->prnd, smp->preq, smp->prsp,
                   conn->hcon->init_addr_type, &conn->hcon->init_addr,
@@ -977,7 +978,8 @@ static u8 smp_random(struct smp_chan *smp)
      u8 confirm[16];
      int ret;
 
-     BT_DBG("conn %p %s", conn, conn->hcon->out ? "master" : "slave");
+     bt_dev_dbg(conn->hcon->hdev, "conn %p %s", conn,
+                conn->hcon->out ? "master" : "slave");
 
      ret = smp_c1(smp->tk, smp->rrnd, smp->preq, smp->prsp,
                   hcon->init_addr_type, &hcon->init_addr,
@@ -1236,7 +1238,7 @@ static void smp_distribute_keys(struct smp_chan *smp)
      struct hci_dev *hdev = hcon->hdev;
      __u8 *keydist;
 
-     BT_DBG("conn %p", conn);
+     bt_dev_dbg(hdev, "conn %p", conn);
 
      rsp = (void *) &smp->prsp[1];
 
@@ -1266,7 +1268,7 @@ static void smp_distribute_keys(struct smp_chan *smp)
              *keydist &= ~SMP_SC_NO_DIST;
      }
 
-     BT_DBG("keydist 0x%x", *keydist);
+     bt_dev_dbg(hdev, "keydist 0x%x", *keydist);
 
      if (*keydist & SMP_DIST_ENC_KEY) {
              struct smp_cmd_encrypt_info enc;
@@ -1366,13 +1368,14 @@ static void smp_timeout(struct work_struct *work)
                                          security_timer.work);
      struct l2cap_conn *conn = smp->conn;
 
-     BT_DBG("conn %p", conn);
+     bt_dev_dbg(conn->hcon->hdev, "conn %p", conn);
 
      hci_disconnect(conn->hcon, HCI_ERROR_REMOTE_USER_TERM);
 }
 
 static struct smp_chan *smp_chan_create(struct l2cap_conn *conn)
 {
+     struct hci_conn *hcon = conn->hcon;
      struct l2cap_chan *chan = conn->smp;
      struct smp_chan *smp;
 
@@ -1382,13 +1385,13 @@ static struct smp_chan *smp_chan_create(struct l2cap_conn *conn)
 
      smp->tfm_cmac = crypto_alloc_shash("cmac(aes)", 0, 0);
      if (IS_ERR(smp->tfm_cmac)) {
-             BT_ERR("Unable to create CMAC crypto context");
+             bt_dev_err(hcon->hdev, "Unable to create CMAC crypto context");
              goto zfree_smp;
      }
 
      smp->tfm_ecdh = crypto_alloc_kpp("ecdh", 0, 0);
      if (IS_ERR(smp->tfm_ecdh)) {
-             BT_ERR("Unable to create ECDH crypto context");
+             bt_dev_err(hcon->hdev, "Unable to create ECDH crypto context");
              goto free_shash;
      }
 
@@ -1399,7 +1402,7 @@ static struct smp_chan *smp_chan_create(struct l2cap_conn *conn)
 
      INIT_DELAYED_WORK(&smp->security_timer, smp_timeout);
 
-     hci_conn_hold(conn->hcon);
+     hci_conn_hold(hcon);
 
      return smp;
 
@@ -1564,8 +1567,8 @@ static u8 sc_passkey_round(struct smp_chan *smp, u8 smp_op)
              if (!hcon->out)
                      return 0;
 
-             BT_DBG("%s Starting passkey round %u", hdev->name,
-                    smp->passkey_round + 1);
+             bt_dev_dbg(hdev, "%s Starting passkey round %u", hdev->name,
+                        smp->passkey_round + 1);
 
              SMP_ALLOW_CMD(smp, SMP_CMD_PAIRING_CONFIRM);
 
@@ -1625,7 +1628,7 @@ int smp_user_confirm_reply(struct hci_conn *hcon, u16 mgmt_op, __le32 passkey)
      u32 value;
      int err;
 
-     BT_DBG("");
+     bt_dev_dbg(conn->hcon->hdev, "");
 
      if (!conn)
              return -ENOTCONN;
@@ -1651,7 +1654,7 @@ int smp_user_confirm_reply(struct hci_conn *hcon, u16 mgmt_op, __le32 passkey)
      case MGMT_OP_USER_PASSKEY_REPLY:
              value = le32_to_cpu(passkey);
              memset(smp->tk, 0, sizeof(smp->tk));
-             BT_DBG("PassKey: %d", value);
+             bt_dev_dbg(conn->hcon->hdev, "PassKey: %d", value);
              put_unaligned_le32(value, smp->tk);
              fallthrough;
      case MGMT_OP_USER_CONFIRM_REPLY:
@@ -1733,7 +1736,7 @@ static u8 smp_cmd_pairing_req(struct l2cap_conn *conn, struct sk_buff *skb)
      u8 key_size, auth, sec_level;
      int ret;
 
-     BT_DBG("conn %p", conn);
+     bt_dev_dbg(hdev, "conn %p", conn);
 
      if (skb->len < sizeof(*req))
              return SMP_INVALID_PARAMS;
@@ -1887,7 +1890,7 @@ static u8 sc_send_public_key(struct smp_chan *smp)
      }
 
      if (hci_dev_test_flag(hdev, HCI_USE_DEBUG_KEYS)) {
-             BT_DBG("Using debug keys");
+             bt_dev_dbg(hdev, "Using debug keys");
              if (set_ecdh_privkey(smp->tfm_ecdh, debug_sk))
                      return SMP_UNSPECIFIED;
              memcpy(smp->local_pk, debug_pk, 64);
@@ -1924,7 +1927,7 @@ static u8 smp_cmd_pairing_rsp(struct l2cap_conn *conn, struct sk_buff *skb)
      u8 key_size, auth;
      int ret;
 
-     BT_DBG("conn %p", conn);
+     bt_dev_dbg(hdev, "conn %p", conn);
 
      if (skb->len < sizeof(*rsp))
              return SMP_INVALID_PARAMS;
@@ -2019,7 +2022,7 @@ static u8 sc_check_confirm(struct smp_chan *smp)
 {
      struct l2cap_conn *conn = smp->conn;
 
-     BT_DBG("");
+     bt_dev_dbg(conn->hcon->hdev, "");
 
      if (smp->method == REQ_PASSKEY || smp->method == DSP_PASSKEY)
              return sc_passkey_round(smp, SMP_CMD_PAIRING_CONFIRM);
@@ -2078,8 +2081,10 @@ static u8 smp_cmd_pairing_confirm(struct l2cap_conn *conn, struct sk_buff *skb)
 {
      struct l2cap_chan *chan = conn->smp;
      struct smp_chan *smp = chan->data;
+     struct hci_conn *hcon = conn->hcon;
+     struct hci_dev *hdev = hcon->hdev;
 
-     BT_DBG("conn %p %s", conn, conn->hcon->out ? "master" : "slave");
+     bt_dev_dbg(hdev, "conn %p %s", conn, hcon->out ? "master" : "slave");
 
      if (skb->len < sizeof(smp->pcnf))
              return SMP_INVALID_PARAMS;
@@ -2094,7 +2099,7 @@ static u8 smp_cmd_pairing_confirm(struct l2cap_conn *conn, struct sk_buff *skb)
              if (test_bit(SMP_FLAG_REMOTE_PK, &smp->flags))
                      return sc_check_confirm(smp);
 
-             BT_ERR("Unexpected SMP Pairing Confirm");
+             bt_dev_err(hdev, "Unexpected SMP Pairing Confirm");
 
              ret = fixup_sc_false_positive(smp);
              if (ret)
@@ -2125,7 +2130,7 @@ static u8 smp_cmd_pairing_random(struct l2cap_conn *conn, struct sk_buff *skb)
      u32 passkey;
      int err;
 
-     BT_DBG("conn %p", conn);
+     bt_dev_dbg(hcon->hdev, "conn %p", conn);
 
      if (skb->len < sizeof(smp->rrnd))
              return SMP_INVALID_PARAMS;
@@ -2284,7 +2289,7 @@ static u8 smp_cmd_security_req(struct l2cap_conn *conn, struct sk_buff *skb)
      struct smp_chan *smp;
      u8 sec_level, auth;
 
-     BT_DBG("conn %p", conn);
+     bt_dev_dbg(hdev, "conn %p", conn);
 
      if (skb->len < sizeof(*rp))
              return SMP_INVALID_PARAMS;
@@ -2347,7 +2352,8 @@ int smp_conn_security(struct hci_conn *hcon, __u8 sec_level)
      __u8 authreq;
      int ret;
 
-     BT_DBG("conn %p hcon %p level 0x%2.2x", conn, hcon, sec_level);
+     bt_dev_dbg(hcon->hdev, "conn %p hcon %p level 0x%2.2x", conn, hcon,
+                sec_level);
 
      /* This may be NULL if there's an unexpected disconnection */
      if (!conn)
@@ -2483,7 +2489,7 @@ static int smp_cmd_encrypt_info(struct l2cap_conn *conn, struct sk_buff *skb)
      struct l2cap_chan *chan = conn->smp;
      struct smp_chan *smp = chan->data;
 
-     BT_DBG("conn %p", conn);
+     bt_dev_dbg(conn->hcon->hdev, "conn %p", conn);
 
      if (skb->len < sizeof(*rp))
              return SMP_INVALID_PARAMS;
@@ -2516,7 +2522,7 @@ static int smp_cmd_master_ident(struct l2cap_conn *conn, struct sk_buff *skb)
      struct smp_ltk *ltk;
      u8 authenticated;
 
-     BT_DBG("conn %p", conn);
+     bt_dev_dbg(hdev, "conn %p", conn);
 
      if (skb->len < sizeof(*rp))
              return SMP_INVALID_PARAMS;
@@ -2548,7 +2554,7 @@ static int smp_cmd_ident_info(struct l2cap_conn *conn, struct sk_buff *skb)
      struct l2cap_chan *chan = conn->smp;
      struct smp_chan *smp = chan->data;
 
-     BT_DBG("");
+     bt_dev_dbg(conn->hcon->hdev, "");
 
      if (skb->len < sizeof(*info))
              return SMP_INVALID_PARAMS;
@@ -2580,7 +2586,7 @@ static int smp_cmd_ident_addr_info(struct l2cap_conn *conn,
      struct hci_conn *hcon = conn->hcon;
      bdaddr_t rpa;
 
-     BT_DBG("");
+     bt_dev_dbg(hcon->hdev, "");
 
      if (skb->len < sizeof(*info))
              return SMP_INVALID_PARAMS;
@@ -2647,7 +2653,7 @@ static int smp_cmd_sign_info(struct l2cap_conn *conn, struct sk_buff *skb)
      struct smp_chan *smp = chan->data;
      struct smp_csrk *csrk;
 
-     BT_DBG("conn %p", conn);
+     bt_dev_dbg(conn->hcon->hdev, "conn %p", conn);
 
      if (skb->len < sizeof(*rp))
              return SMP_INVALID_PARAMS;
@@ -2727,7 +2733,7 @@ static int smp_cmd_public_key(struct l2cap_conn *conn, struct sk_buff *skb)
      struct smp_cmd_pairing_confirm cfm;
      int err;
 
-     BT_DBG("conn %p", conn);
+     bt_dev_dbg(hdev, "conn %p", conn);
 
      if (skb->len < sizeof(*key))
              return SMP_INVALID_PARAMS;
@@ -2791,7 +2797,7 @@ static int smp_cmd_public_key(struct l2cap_conn *conn, struct sk_buff *skb)
 
      smp->method = sc_select_method(smp);
 
-     BT_DBG("%s selected method 0x%02x", hdev->name, smp->method);
+     bt_dev_dbg(hdev, "%s selected method 0x%02x", hdev->name, smp->method);
 
      /* JUST_WORKS and JUST_CFM result in an unauthenticated key */
      if (smp->method == JUST_WORKS || smp->method == JUST_CFM)
@@ -2866,7 +2872,7 @@ static int smp_cmd_dhkey_check(struct l2cap_conn *conn, struct sk_buff *skb)
      u8 io_cap[3], r[16], e[16];
      int err;
 
-     BT_DBG("conn %p", conn);
+     bt_dev_dbg(hcon->hdev, "conn %p", conn);
 
      if (skb->len < sizeof(*check))
              return SMP_INVALID_PARAMS;
@@ -2926,7 +2932,7 @@ static int smp_cmd_keypress_notify(struct l2cap_conn *conn,
 {
      struct smp_cmd_keypress_notify *kp = (void *) skb->data;
 
-     BT_DBG("value 0x%02x", kp->value);
+     bt_dev_dbg(conn->hcon->hdev, "value 0x%02x", kp->value);
 
      return 0;
 }
@@ -3023,7 +3029,7 @@ static int smp_sig_channel(struct l2cap_chan *chan, struct sk_buff *skb)
              break;
 
      default:
-             BT_DBG("Unknown command code 0x%2.2x", code);
+             bt_dev_dbg(hcon->hdev, "Unknown command code 0x%2.2x", code);
              reason = SMP_CMD_NOTSUPP;
              goto done;
      }
@@ -3048,7 +3054,7 @@ static void smp_teardown_cb(struct l2cap_chan *chan, int err)
 {
      struct l2cap_conn *conn = chan->conn;
 
-     BT_DBG("chan %p", chan);
+     bt_dev_dbg(conn->hcon->hdev, "chan %p", chan);
 
      if (chan->data)
              smp_chan_destroy(conn);
@@ -3065,7 +3071,7 @@ static void bredr_pairing(struct l2cap_chan *chan)
      struct smp_cmd_pairing req;
      struct smp_chan *smp;
 
-     BT_DBG("chan %p", chan);
+     bt_dev_dbg(hdev, "chan %p", chan);
 
      /* Only new pairings are interesting */
      if (!test_bit(HCI_CONN_NEW_LINK_KEY, &hcon->flags))
@@ -3112,7 +3118,7 @@ static void bredr_pairing(struct l2cap_chan *chan)
 
      set_bit(SMP_FLAG_SC, &smp->flags);
 
-     BT_DBG("%s starting SMP over BR/EDR", hdev->name);
+     bt_dev_dbg(hdev, "%s starting SMP over BR/EDR", hdev->name);
 
      /* Prepare and send the BR/EDR SMP Pairing Request */
      build_bredr_pairing_cmd(smp, &req, NULL);
@@ -3130,7 +3136,7 @@ static void smp_resume_cb(struct l2cap_chan *chan)
      struct l2cap_conn *conn = chan->conn;
      struct hci_conn *hcon = conn->hcon;
 
-     BT_DBG("chan %p", chan);
+     bt_dev_dbg(hcon->hdev, "chan %p", chan);
 
      if (hcon->type == ACL_LINK) {
              bredr_pairing(chan);
@@ -3153,7 +3159,7 @@ static void smp_ready_cb(struct l2cap_chan *chan)
      struct l2cap_conn *conn = chan->conn;
      struct hci_conn *hcon = conn->hcon;
 
-     BT_DBG("chan %p", chan);
+     bt_dev_dbg(hcon->hdev, "chan %p", chan);
 
      /* No need to call l2cap_chan_hold() here since we already own
       * the reference taken in smp_new_conn_cb(). This is just the
@@ -3171,7 +3177,7 @@ static int smp_recv_cb(struct l2cap_chan *chan, struct sk_buff *skb)
 {
      int err;
 
-     BT_DBG("chan %p", chan);
+     bt_dev_dbg(chan->conn->hcon->hdev, "chan %p", chan);
 
      err = smp_sig_channel(chan, skb);
      if (err) {
@@ -3223,7 +3229,7 @@ static inline struct l2cap_chan *smp_new_conn_cb(struct l2cap_chan *pchan)
 {
      struct l2cap_chan *chan;
 
-     BT_DBG("pchan %p", pchan);
+     bt_dev_dbg(pchan->conn->hcon->hdev, "pchan %p", pchan);
 
      chan = l2cap_chan_create();
      if (!chan)
@@ -3244,7 +3250,7 @@ static inline struct l2cap_chan *smp_new_conn_cb(struct l2cap_chan *pchan)
       */
      atomic_set(&chan->nesting, L2CAP_NESTING_SMP);
 
-     BT_DBG("created chan %p", chan);
+     bt_dev_dbg(pchan->conn->hcon->hdev, "created chan %p", chan);
 
      return chan;
 }
@@ -3285,14 +3291,14 @@ static struct l2cap_chan *smp_add_cid(struct hci_dev *hdev, u16 cid)
 
      tfm_cmac = crypto_alloc_shash("cmac(aes)", 0, 0);
      if (IS_ERR(tfm_cmac)) {
-             BT_ERR("Unable to create CMAC crypto context");
+             bt_dev_err(hdev, "Unable to create CMAC crypto context");
              kfree_sensitive(smp);
              return ERR_CAST(tfm_cmac);
      }
 
      tfm_ecdh = crypto_alloc_kpp("ecdh", 0, 0);
      if (IS_ERR(tfm_ecdh)) {
-             BT_ERR("Unable to create ECDH crypto context");
+             bt_dev_err(hdev, "Unable to create ECDH crypto context");
              crypto_free_shash(tfm_cmac);
              kfree_sensitive(smp);
              return ERR_CAST(tfm_ecdh);
@@ -3348,7 +3354,7 @@ static void smp_del_chan(struct l2cap_chan *chan)
 {
      struct smp_dev *smp;
 
-     BT_DBG("chan %p", chan);
+     bt_dev_dbg(chan->conn->hcon->hdev, "chan %p", chan);
 
      smp = chan->data;
      if (smp) {
@@ -3391,7 +3397,7 @@ int smp_register(struct hci_dev *hdev)
 {
      struct l2cap_chan *chan;
 
Quoted 4 lines

net/bluetooth/smp.c int smp_register(struct hci_dev *hdev) · line 3400

Quoted 2 lines
net/bluetooth/smp.c +1 -1
-     BT_DBG("%s", hdev->name);
+     bt_dev_dbg(hdev, "%s", hdev->name);

this is rather pointless since it just ends up printing hciX twice.

Right, I missed the fact that bt_dev_debug does exactly that, I guess we should convert this to just bt_dev_dbg(hdev, "") or shall we remove it entirely?

Quoted 4 lines

Regards

Marcel

Signature · 1 line
Luiz Augusto von Dentz
maintainer
#4 lore raw

Hi Luiz,

Quoted 430 lines
Quoted 430 lines
Quoted 430 lines

This converts instances of BT_ERR and BT_DBG to bt_dev_err and bt_dev_dbg which can be enabled at runtime when BT_FEATURE_DEBUG is enabled.

Note: Not all instances could be converted as some are exercised by selftest.

---
v2: Fix issues found by CI

net/bluetooth/smp.c | 98 ++++++++++++++++++++++++---------------------

1 file changed, 52 insertions(+), 46 deletions(-)
net/bluetooth/smp.c +51 -45
index e03cc284161c..3cc1ad042edf 100644
@@ -595,7 +595,7 @@ static void smp_send_cmd(struct l2cap_conn *conn, u8 code, u16 len, void *data)
     if (!chan)
             return;
 
-     BT_DBG("code 0x%2.2x", code);
+     bt_dev_dbg(conn->hcon->hdev, "code 0x%2.2x", code);
 
     iv[0].iov_base = &code;
     iv[0].iov_len = 1;
@@ -859,7 +859,8 @@ static int tk_request(struct l2cap_conn *conn, u8 remote_oob, u8 auth,
     memset(smp->tk, 0, sizeof(smp->tk));
     clear_bit(SMP_FLAG_TK_VALID, &smp->flags);
 
-     BT_DBG("tk_request: auth:%d lcl:%d rem:%d", auth, local_io, remote_io);
+     bt_dev_dbg(hcon->hdev, "auth:%d lcl:%d rem:%d", auth, local_io,
+                remote_io);
 
     /* If neither side wants MITM, either "just" confirm an incoming
      * request or use just-works for outgoing ones. The JUST_CFM
@@ -924,7 +925,7 @@ static int tk_request(struct l2cap_conn *conn, u8 remote_oob, u8 auth,
             get_random_bytes(&passkey, sizeof(passkey));
             passkey %= 1000000;
             put_unaligned_le32(passkey, smp->tk);
-             BT_DBG("PassKey: %d", passkey);
+             bt_dev_dbg(hcon->hdev, "PassKey: %d", passkey);
             set_bit(SMP_FLAG_TK_VALID, &smp->flags);
     }
 
@@ -949,7 +950,7 @@ static u8 smp_confirm(struct smp_chan *smp)
     struct smp_cmd_pairing_confirm cp;
     int ret;
 
-     BT_DBG("conn %p", conn);
+     bt_dev_dbg(conn->hcon->hdev, "conn %p", conn);
 
     ret = smp_c1(smp->tk, smp->prnd, smp->preq, smp->prsp,
                  conn->hcon->init_addr_type, &conn->hcon->init_addr,
@@ -977,7 +978,8 @@ static u8 smp_random(struct smp_chan *smp)
     u8 confirm[16];
     int ret;
 
-     BT_DBG("conn %p %s", conn, conn->hcon->out ? "master" : "slave");
+     bt_dev_dbg(conn->hcon->hdev, "conn %p %s", conn,
+                conn->hcon->out ? "master" : "slave");
 
     ret = smp_c1(smp->tk, smp->rrnd, smp->preq, smp->prsp,
                  hcon->init_addr_type, &hcon->init_addr,
@@ -1236,7 +1238,7 @@ static void smp_distribute_keys(struct smp_chan *smp)
     struct hci_dev *hdev = hcon->hdev;
     __u8 *keydist;
 
-     BT_DBG("conn %p", conn);
+     bt_dev_dbg(hdev, "conn %p", conn);
 
     rsp = (void *) &smp->prsp[1];
 
@@ -1266,7 +1268,7 @@ static void smp_distribute_keys(struct smp_chan *smp)
             *keydist &= ~SMP_SC_NO_DIST;
     }
 
-     BT_DBG("keydist 0x%x", *keydist);
+     bt_dev_dbg(hdev, "keydist 0x%x", *keydist);
 
     if (*keydist & SMP_DIST_ENC_KEY) {
             struct smp_cmd_encrypt_info enc;
@@ -1366,13 +1368,14 @@ static void smp_timeout(struct work_struct *work)
                                         security_timer.work);
     struct l2cap_conn *conn = smp->conn;
 
-     BT_DBG("conn %p", conn);
+     bt_dev_dbg(conn->hcon->hdev, "conn %p", conn);
 
     hci_disconnect(conn->hcon, HCI_ERROR_REMOTE_USER_TERM);
 }
 
 static struct smp_chan *smp_chan_create(struct l2cap_conn *conn)
 {
+     struct hci_conn *hcon = conn->hcon;
     struct l2cap_chan *chan = conn->smp;
     struct smp_chan *smp;
 
@@ -1382,13 +1385,13 @@ static struct smp_chan *smp_chan_create(struct l2cap_conn *conn)
 
     smp->tfm_cmac = crypto_alloc_shash("cmac(aes)", 0, 0);
     if (IS_ERR(smp->tfm_cmac)) {
-             BT_ERR("Unable to create CMAC crypto context");
+             bt_dev_err(hcon->hdev, "Unable to create CMAC crypto context");
             goto zfree_smp;
     }
 
     smp->tfm_ecdh = crypto_alloc_kpp("ecdh", 0, 0);
     if (IS_ERR(smp->tfm_ecdh)) {
-             BT_ERR("Unable to create ECDH crypto context");
+             bt_dev_err(hcon->hdev, "Unable to create ECDH crypto context");
             goto free_shash;
     }
 
@@ -1399,7 +1402,7 @@ static struct smp_chan *smp_chan_create(struct l2cap_conn *conn)
 
     INIT_DELAYED_WORK(&smp->security_timer, smp_timeout);
 
-     hci_conn_hold(conn->hcon);
+     hci_conn_hold(hcon);
 
     return smp;
 
@@ -1564,8 +1567,8 @@ static u8 sc_passkey_round(struct smp_chan *smp, u8 smp_op)
             if (!hcon->out)
                     return 0;
 
-             BT_DBG("%s Starting passkey round %u", hdev->name,
-                    smp->passkey_round + 1);
+             bt_dev_dbg(hdev, "%s Starting passkey round %u", hdev->name,
+                        smp->passkey_round + 1);
 
             SMP_ALLOW_CMD(smp, SMP_CMD_PAIRING_CONFIRM);
 
@@ -1625,7 +1628,7 @@ int smp_user_confirm_reply(struct hci_conn *hcon, u16 mgmt_op, __le32 passkey)
     u32 value;
     int err;
 
-     BT_DBG("");
+     bt_dev_dbg(conn->hcon->hdev, "");
 
     if (!conn)
             return -ENOTCONN;
@@ -1651,7 +1654,7 @@ int smp_user_confirm_reply(struct hci_conn *hcon, u16 mgmt_op, __le32 passkey)
     case MGMT_OP_USER_PASSKEY_REPLY:
             value = le32_to_cpu(passkey);
             memset(smp->tk, 0, sizeof(smp->tk));
-             BT_DBG("PassKey: %d", value);
+             bt_dev_dbg(conn->hcon->hdev, "PassKey: %d", value);
             put_unaligned_le32(value, smp->tk);
             fallthrough;
     case MGMT_OP_USER_CONFIRM_REPLY:
@@ -1733,7 +1736,7 @@ static u8 smp_cmd_pairing_req(struct l2cap_conn *conn, struct sk_buff *skb)
     u8 key_size, auth, sec_level;
     int ret;
 
-     BT_DBG("conn %p", conn);
+     bt_dev_dbg(hdev, "conn %p", conn);
 
     if (skb->len < sizeof(*req))
             return SMP_INVALID_PARAMS;
@@ -1887,7 +1890,7 @@ static u8 sc_send_public_key(struct smp_chan *smp)
     }
 
     if (hci_dev_test_flag(hdev, HCI_USE_DEBUG_KEYS)) {
-             BT_DBG("Using debug keys");
+             bt_dev_dbg(hdev, "Using debug keys");
             if (set_ecdh_privkey(smp->tfm_ecdh, debug_sk))
                     return SMP_UNSPECIFIED;
             memcpy(smp->local_pk, debug_pk, 64);
@@ -1924,7 +1927,7 @@ static u8 smp_cmd_pairing_rsp(struct l2cap_conn *conn, struct sk_buff *skb)
     u8 key_size, auth;
     int ret;
 
-     BT_DBG("conn %p", conn);
+     bt_dev_dbg(hdev, "conn %p", conn);
 
     if (skb->len < sizeof(*rsp))
             return SMP_INVALID_PARAMS;
@@ -2019,7 +2022,7 @@ static u8 sc_check_confirm(struct smp_chan *smp)
 {
     struct l2cap_conn *conn = smp->conn;
 
-     BT_DBG("");
+     bt_dev_dbg(conn->hcon->hdev, "");
 
     if (smp->method == REQ_PASSKEY || smp->method == DSP_PASSKEY)
             return sc_passkey_round(smp, SMP_CMD_PAIRING_CONFIRM);
@@ -2078,8 +2081,10 @@ static u8 smp_cmd_pairing_confirm(struct l2cap_conn *conn, struct sk_buff *skb)
 {
     struct l2cap_chan *chan = conn->smp;
     struct smp_chan *smp = chan->data;
+     struct hci_conn *hcon = conn->hcon;
+     struct hci_dev *hdev = hcon->hdev;
 
-     BT_DBG("conn %p %s", conn, conn->hcon->out ? "master" : "slave");
+     bt_dev_dbg(hdev, "conn %p %s", conn, hcon->out ? "master" : "slave");
 
     if (skb->len < sizeof(smp->pcnf))
             return SMP_INVALID_PARAMS;
@@ -2094,7 +2099,7 @@ static u8 smp_cmd_pairing_confirm(struct l2cap_conn *conn, struct sk_buff *skb)
             if (test_bit(SMP_FLAG_REMOTE_PK, &smp->flags))
                     return sc_check_confirm(smp);
 
-             BT_ERR("Unexpected SMP Pairing Confirm");
+             bt_dev_err(hdev, "Unexpected SMP Pairing Confirm");
 
             ret = fixup_sc_false_positive(smp);
             if (ret)
@@ -2125,7 +2130,7 @@ static u8 smp_cmd_pairing_random(struct l2cap_conn *conn, struct sk_buff *skb)
     u32 passkey;
     int err;
 
-     BT_DBG("conn %p", conn);
+     bt_dev_dbg(hcon->hdev, "conn %p", conn);
 
     if (skb->len < sizeof(smp->rrnd))
             return SMP_INVALID_PARAMS;
@@ -2284,7 +2289,7 @@ static u8 smp_cmd_security_req(struct l2cap_conn *conn, struct sk_buff *skb)
     struct smp_chan *smp;
     u8 sec_level, auth;
 
-     BT_DBG("conn %p", conn);
+     bt_dev_dbg(hdev, "conn %p", conn);
 
     if (skb->len < sizeof(*rp))
             return SMP_INVALID_PARAMS;
@@ -2347,7 +2352,8 @@ int smp_conn_security(struct hci_conn *hcon, __u8 sec_level)
     __u8 authreq;
     int ret;
 
-     BT_DBG("conn %p hcon %p level 0x%2.2x", conn, hcon, sec_level);
+     bt_dev_dbg(hcon->hdev, "conn %p hcon %p level 0x%2.2x", conn, hcon,
+                sec_level);
 
     /* This may be NULL if there's an unexpected disconnection */
     if (!conn)
@@ -2483,7 +2489,7 @@ static int smp_cmd_encrypt_info(struct l2cap_conn *conn, struct sk_buff *skb)
     struct l2cap_chan *chan = conn->smp;
     struct smp_chan *smp = chan->data;
 
-     BT_DBG("conn %p", conn);
+     bt_dev_dbg(conn->hcon->hdev, "conn %p", conn);
 
     if (skb->len < sizeof(*rp))
             return SMP_INVALID_PARAMS;
@@ -2516,7 +2522,7 @@ static int smp_cmd_master_ident(struct l2cap_conn *conn, struct sk_buff *skb)
     struct smp_ltk *ltk;
     u8 authenticated;
 
-     BT_DBG("conn %p", conn);
+     bt_dev_dbg(hdev, "conn %p", conn);
 
     if (skb->len < sizeof(*rp))
             return SMP_INVALID_PARAMS;
@@ -2548,7 +2554,7 @@ static int smp_cmd_ident_info(struct l2cap_conn *conn, struct sk_buff *skb)
     struct l2cap_chan *chan = conn->smp;
     struct smp_chan *smp = chan->data;
 
-     BT_DBG("");
+     bt_dev_dbg(conn->hcon->hdev, "");
 
     if (skb->len < sizeof(*info))
             return SMP_INVALID_PARAMS;
@@ -2580,7 +2586,7 @@ static int smp_cmd_ident_addr_info(struct l2cap_conn *conn,
     struct hci_conn *hcon = conn->hcon;
     bdaddr_t rpa;
 
-     BT_DBG("");
+     bt_dev_dbg(hcon->hdev, "");
 
     if (skb->len < sizeof(*info))
             return SMP_INVALID_PARAMS;
@@ -2647,7 +2653,7 @@ static int smp_cmd_sign_info(struct l2cap_conn *conn, struct sk_buff *skb)
     struct smp_chan *smp = chan->data;
     struct smp_csrk *csrk;
 
-     BT_DBG("conn %p", conn);
+     bt_dev_dbg(conn->hcon->hdev, "conn %p", conn);
 
     if (skb->len < sizeof(*rp))
             return SMP_INVALID_PARAMS;
@@ -2727,7 +2733,7 @@ static int smp_cmd_public_key(struct l2cap_conn *conn, struct sk_buff *skb)
     struct smp_cmd_pairing_confirm cfm;
     int err;
 
-     BT_DBG("conn %p", conn);
+     bt_dev_dbg(hdev, "conn %p", conn);
 
     if (skb->len < sizeof(*key))
             return SMP_INVALID_PARAMS;
@@ -2791,7 +2797,7 @@ static int smp_cmd_public_key(struct l2cap_conn *conn, struct sk_buff *skb)
 
     smp->method = sc_select_method(smp);
 
-     BT_DBG("%s selected method 0x%02x", hdev->name, smp->method);
+     bt_dev_dbg(hdev, "%s selected method 0x%02x", hdev->name, smp->method);
 
     /* JUST_WORKS and JUST_CFM result in an unauthenticated key */
     if (smp->method == JUST_WORKS || smp->method == JUST_CFM)
@@ -2866,7 +2872,7 @@ static int smp_cmd_dhkey_check(struct l2cap_conn *conn, struct sk_buff *skb)
     u8 io_cap[3], r[16], e[16];
     int err;
 
-     BT_DBG("conn %p", conn);
+     bt_dev_dbg(hcon->hdev, "conn %p", conn);
 
     if (skb->len < sizeof(*check))
             return SMP_INVALID_PARAMS;
@@ -2926,7 +2932,7 @@ static int smp_cmd_keypress_notify(struct l2cap_conn *conn,
 {
     struct smp_cmd_keypress_notify *kp = (void *) skb->data;
 
-     BT_DBG("value 0x%02x", kp->value);
+     bt_dev_dbg(conn->hcon->hdev, "value 0x%02x", kp->value);
 
     return 0;
 }
@@ -3023,7 +3029,7 @@ static int smp_sig_channel(struct l2cap_chan *chan, struct sk_buff *skb)
             break;
 
     default:
-             BT_DBG("Unknown command code 0x%2.2x", code);
+             bt_dev_dbg(hcon->hdev, "Unknown command code 0x%2.2x", code);
             reason = SMP_CMD_NOTSUPP;
             goto done;
     }
@@ -3048,7 +3054,7 @@ static void smp_teardown_cb(struct l2cap_chan *chan, int err)
 {
     struct l2cap_conn *conn = chan->conn;
 
-     BT_DBG("chan %p", chan);
+     bt_dev_dbg(conn->hcon->hdev, "chan %p", chan);
 
     if (chan->data)
             smp_chan_destroy(conn);
@@ -3065,7 +3071,7 @@ static void bredr_pairing(struct l2cap_chan *chan)
     struct smp_cmd_pairing req;
     struct smp_chan *smp;
 
-     BT_DBG("chan %p", chan);
+     bt_dev_dbg(hdev, "chan %p", chan);
 
     /* Only new pairings are interesting */
     if (!test_bit(HCI_CONN_NEW_LINK_KEY, &hcon->flags))
@@ -3112,7 +3118,7 @@ static void bredr_pairing(struct l2cap_chan *chan)
 
     set_bit(SMP_FLAG_SC, &smp->flags);
 
-     BT_DBG("%s starting SMP over BR/EDR", hdev->name);
+     bt_dev_dbg(hdev, "%s starting SMP over BR/EDR", hdev->name);
 
     /* Prepare and send the BR/EDR SMP Pairing Request */
     build_bredr_pairing_cmd(smp, &req, NULL);
@@ -3130,7 +3136,7 @@ static void smp_resume_cb(struct l2cap_chan *chan)
     struct l2cap_conn *conn = chan->conn;
     struct hci_conn *hcon = conn->hcon;
 
-     BT_DBG("chan %p", chan);
+     bt_dev_dbg(hcon->hdev, "chan %p", chan);
 
     if (hcon->type == ACL_LINK) {
             bredr_pairing(chan);
@@ -3153,7 +3159,7 @@ static void smp_ready_cb(struct l2cap_chan *chan)
     struct l2cap_conn *conn = chan->conn;
     struct hci_conn *hcon = conn->hcon;
 
-     BT_DBG("chan %p", chan);
+     bt_dev_dbg(hcon->hdev, "chan %p", chan);
 
     /* No need to call l2cap_chan_hold() here since we already own
      * the reference taken in smp_new_conn_cb(). This is just the
@@ -3171,7 +3177,7 @@ static int smp_recv_cb(struct l2cap_chan *chan, struct sk_buff *skb)
 {
     int err;
 
-     BT_DBG("chan %p", chan);
+     bt_dev_dbg(chan->conn->hcon->hdev, "chan %p", chan);
 
     err = smp_sig_channel(chan, skb);
     if (err) {
@@ -3223,7 +3229,7 @@ static inline struct l2cap_chan *smp_new_conn_cb(struct l2cap_chan *pchan)
 {
     struct l2cap_chan *chan;
 
-     BT_DBG("pchan %p", pchan);
+     bt_dev_dbg(pchan->conn->hcon->hdev, "pchan %p", pchan);
 
     chan = l2cap_chan_create();
     if (!chan)
@@ -3244,7 +3250,7 @@ static inline struct l2cap_chan *smp_new_conn_cb(struct l2cap_chan *pchan)
      */
     atomic_set(&chan->nesting, L2CAP_NESTING_SMP);
 
-     BT_DBG("created chan %p", chan);
+     bt_dev_dbg(pchan->conn->hcon->hdev, "created chan %p", chan);
 
     return chan;
 }
@@ -3285,14 +3291,14 @@ static struct l2cap_chan *smp_add_cid(struct hci_dev *hdev, u16 cid)
 
     tfm_cmac = crypto_alloc_shash("cmac(aes)", 0, 0);
     if (IS_ERR(tfm_cmac)) {
-             BT_ERR("Unable to create CMAC crypto context");
+             bt_dev_err(hdev, "Unable to create CMAC crypto context");
             kfree_sensitive(smp);
             return ERR_CAST(tfm_cmac);
     }
 
     tfm_ecdh = crypto_alloc_kpp("ecdh", 0, 0);
     if (IS_ERR(tfm_ecdh)) {
-             BT_ERR("Unable to create ECDH crypto context");
+             bt_dev_err(hdev, "Unable to create ECDH crypto context");
             crypto_free_shash(tfm_cmac);
             kfree_sensitive(smp);
             return ERR_CAST(tfm_ecdh);
@@ -3348,7 +3354,7 @@ static void smp_del_chan(struct l2cap_chan *chan)
 {
     struct smp_dev *smp;
 
-     BT_DBG("chan %p", chan);
+     bt_dev_dbg(chan->conn->hcon->hdev, "chan %p", chan);
 
     smp = chan->data;
     if (smp) {
@@ -3391,7 +3397,7 @@ int smp_register(struct hci_dev *hdev)
 {
     struct l2cap_chan *chan;
 
Quoted 8 lines
Quoted 4 lines

net/bluetooth/smp.c int smp_register(struct hci_dev *hdev) · line 3400

Quoted 2 lines
net/bluetooth/smp.c +1 -1
-     BT_DBG("%s", hdev->name);
+     bt_dev_dbg(hdev, "%s", hdev->name);

this is rather pointless since it just ends up printing hciX twice.

Right, I missed the fact that bt_dev_debug does exactly that, I guess we should convert this to just bt_dev_dbg(hdev, "") or shall we remove it entirely?

lets use bt_dev_dbg(hdev, “") for now.

Regards

Marcel