diff --git a/tools/smp-tester.c b/tools/smp-tester.c
index 0856708..46dc65a 100644
--- a/tools/smp-tester.c
+++ b/tools/smp-tester.c
tester_test_failed();
}
-static void new_conn(uint16_t handle, void *user_data)
+static void smp_server_new_conn(uint16_t handle, void *user_data)
{
struct test_data *data = user_data;
struct bthost *bthost = hciemu_client_get_host(data->hciemu);
}
bthost = hciemu_client_get_host(data->hciemu);
- bthost_set_connect_cb(bthost, new_conn, data);
+ bthost_set_connect_cb(bthost, smp_server_new_conn, data);
memcpy(&cp.addr.bdaddr, client_bdaddr, sizeof(bdaddr_t));
cp.addr.type = BDADDR_LE_PUBLIC;
NULL, NULL);
}
-static void client_smp_rsp(const void *data, uint16_t len, void *user_data)
+static void smp_client(const void *data, uint16_t len, void *user_data)
{
struct test_data *test_data = user_data;
const struct smp_server_data *srv = test_data->test_data;
- tester_print("Client received response");
+ tester_print("SMP client received response");
if (!srv->expect_rsp) {
tester_test_passed();
tester_test_failed();
}
-static void client_new_conn(uint16_t handle, void *user_data)
+static void smp_client_new_conn(uint16_t handle, void *user_data)
{
struct test_data *data = user_data;
const struct smp_server_data *srv = data->test_data;
struct bthost *bthost = hciemu_client_get_host(data->hciemu);
- tester_print("New client connection with handle 0x%04x", handle);
+ tester_print("New SMP client connection with handle 0x%04x", handle);
- bthost_add_cid_hook(bthost, handle, SMP_CID, client_smp_rsp, data);
+ bthost_add_cid_hook(bthost, handle, SMP_CID, smp_client, data);
if (!srv->send_req)
return;
}
bthost = hciemu_client_get_host(data->hciemu);
- bthost_set_connect_cb(bthost, client_new_conn, data);
+ bthost_set_connect_cb(bthost, smp_client_new_conn, data);
bthost_hci_connect(bthost, master_bdaddr, BDADDR_LE_PUBLIC);
}