Message ID | 1585078044-14974-9-git-send-email-prathyusha.n@samsung.com (mailing list archive) |
---|---|
State | Accepted |
Delegated to: | Brian Gix |
Headers | show |
Series | [1/1] mesh: Send input complete for input OOB Authentication | expand |
Applied On Wed, 2020-03-25 at 00:57 +0530, Prathyusha Nelluri wrote: > From: Prathyusha N <prathyusha.n@samsung.com> > > 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 03972c227..20a2ce4be 100644 > --- a/mesh/prov-acceptor.c > +++ b/mesh/prov-acceptor.c > @@ -272,6 +272,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)
diff --git a/mesh/prov-acceptor.c b/mesh/prov-acceptor.c index 03972c227..20a2ce4be 100644 --- a/mesh/prov-acceptor.c +++ b/mesh/prov-acceptor.c @@ -272,6 +272,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)
From: Prathyusha N <prathyusha.n@samsung.com> Send input complete when user completes input operation. --- mesh/prov-acceptor.c | 6 ++++++ 1 file changed, 6 insertions(+)