From: Luiz Augusto von Dentz Date: Tue, 10 Nov 2020 23:10:09 +0000 (-0800) Subject: smp-tester: Fix not registering for MGMT_EV_USER_CONFIRM_REQUEST X-Git-Tag: submit/tizen/20220313.220938~569 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8fa9f913c137ebde5b1ef0f51272cdd4dce7e86a;p=platform%2Fupstream%2Fbluez.git smp-tester: Fix not registering for MGMT_EV_USER_CONFIRM_REQUEST For client test MGMT_EV_USER_CONFIRM_REQUEST shall be resgistered as well as the kernel has been updated to request user confirmation even when acting as initiator. Signed-off-by: Anuj Jain Signed-off-by: Ayush Garg --- diff --git a/tools/smp-tester.c b/tools/smp-tester.c index 7823b6b..644c451 100755 --- a/tools/smp-tester.c +++ b/tools/smp-tester.c @@ -501,6 +501,10 @@ static void setup_powered_client(const void *test_data) const struct smp_data *smp = data->test_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,