diff options
author | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2020-11-10 15:10:09 -0800 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2020-11-13 15:12:14 -0800 |
commit | 129d729c47ee0e7a152853b1cc96b75bde321db2 (patch) | |
tree | e6a2b5ff0cc737323b5920786eab409b1152e64e /tools/smp-tester.c | |
parent | c7feea25284edc19d5b6b9c71040f4883eafb560 (diff) | |
download | bluez-129d729c47ee0e7a152853b1cc96b75bde321db2.tar.gz |
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.
Diffstat (limited to 'tools/smp-tester.c')
-rw-r--r-- | tools/smp-tester.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/smp-tester.c b/tools/smp-tester.c index 7823b6b17..644c451c2 100644 --- 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, |