diff --git a/tools/smp-tester.c b/tools/smp-tester.c
index 1e0e1b0..12e0bed 100644
--- a/tools/smp-tester.c
+++ b/tools/smp-tester.c
.mitm = true,
};
+static void user_confirm_request_callback(uint16_t index, uint16_t length,
+ const void *param,
+ void *user_data)
+{
+ const struct mgmt_ev_user_confirm_request *ev = param;
+ struct test_data *data = tester_get_data();
+ struct mgmt_cp_user_confirm_reply cp;
+
+ memset(&cp, 0, sizeof(cp));
+ memcpy(&cp.addr, &ev->addr, sizeof(cp.addr));
+
+ mgmt_reply(data->mgmt, MGMT_OP_USER_CONFIRM_REPLY,
+ data->mgmt_index, sizeof(cp), &cp, NULL, NULL, NULL);
+}
+
static void client_connectable_complete(uint16_t opcode, uint8_t status,
const void *param, uint8_t len,
void *user_data)
struct test_data *data = tester_get_data();
unsigned char param[] = { 0x01 };
+ mgmt_register(data->mgmt, MGMT_EV_USER_CONFIRM_REQUEST,
+ data->mgmt_index, user_confirm_request_callback,
+ data, NULL);
+
tester_print("Powering on controller");
mgmt_send(data->mgmt, MGMT_OP_SET_LE, data->mgmt_index,