From ac940a70cede847b3cf79c357c5ddd98f170a34b Mon Sep 17 00:00:00 2001 From: Prathyusha N Date: Wed, 25 Mar 2020 00:57:23 +0530 Subject: [PATCH] mesh: Send input complete for input OOB Authentication Send input complete when user completes input operation. --- mesh/prov-acceptor.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/mesh/prov-acceptor.c b/mesh/prov-acceptor.c index d395bc5f2..24be70a95 100644 --- a/mesh/prov-acceptor.c +++ b/mesh/prov-acceptor.c @@ -278,6 +278,12 @@ static void static_cb(void *user_data, int err, uint8_t *key, uint32_t len) memcpy(prov->rand_auth_workspace + 16, key, 16); memcpy(prov->rand_auth_workspace + 32, key, 16); prov->material |= MAT_RAND_AUTH; + + if (prov->conf_inputs.start.auth_action == + PROV_ACTION_IN_ALPHA) { + msg.opcode = PROV_INP_CMPLT; + prov->trans_tx(prov->trans_data, &msg.opcode, 1); + } } static void priv_key_cb(void *user_data, int err, uint8_t *key, uint32_t len) -- 2.47.3