net: lwm2m: add missing bootstrap-finish handling

When the bootstrap support was added, it looks like I somehow missed
the handling block in the engine.

Let's add it now to fix boostrap support.

Fixes: https://github.com/zephyrproject-rtos/zephyr/issues/18080

Signed-off-by: Michael Scott <mike@foundries.io>
This commit is contained in:
Michael Scott 2019-08-17 10:05:55 -07:00 committed by Ioannis Glaropoulos
parent 523123857c
commit e743d89cdc
1 changed files with 7 additions and 0 deletions

View File

@ -3312,6 +3312,13 @@ static int handle_request(struct coap_packet *request,
}
well_known = true;
#if defined(CONFIG_LWM2M_RD_CLIENT_SUPPORT_BOOTSTRAP)
/* check for bootstrap-finish */
} else if ((code & COAP_REQUEST_MASK) == COAP_METHOD_POST && r == 1 && \
strncmp(options[0].value, "bs", options[0].len) == 0) {
engine_bootstrap_finish();
return 0;
#endif
} else {
r = coap_options_to_path(options, r, &msg->path);
if (r < 0) {