diff --git a/subsys/bluetooth/mesh/dfd_srv.c b/subsys/bluetooth/mesh/dfd_srv.c index 60b21dfb09d4811..b52934bea6fdf3a 100644 --- a/subsys/bluetooth/mesh/dfd_srv.c +++ b/subsys/bluetooth/mesh/dfd_srv.c @@ -572,6 +572,10 @@ static int handle_upload_start_oob(struct bt_mesh_model *mod, struct bt_mesh_msg fwid_len = buf->len; fwid = net_buf_simple_pull_mem(buf, fwid_len); + LOG_DBG("Upload OOB Start"); + LOG_HEXDUMP_DBG(uri, uri_len, "URI"); + LOG_HEXDUMP_DBG(fwid, fwid_len, "FWID"); + if (upload_is_busy(srv)) { #ifdef CONFIG_BT_MESH_DFD_SRV_OOB_UPLOAD if (srv->upload.is_oob && diff --git a/tests/bluetooth/tester/src/btp_mesh.c b/tests/bluetooth/tester/src/btp_mesh.c index d0aaa3ee1bdda06..edb05d87150e749 100644 --- a/tests/bluetooth/tester/src/btp_mesh.c +++ b/tests/bluetooth/tester/src/btp_mesh.c @@ -21,7 +21,7 @@ #include #define LOG_MODULE_NAME bttester_mesh -LOG_MODULE_REGISTER(LOG_MODULE_NAME, CONFIG_BTTESTER_LOG_LEVEL); +LOG_MODULE_REGISTER(LOG_MODULE_NAME, 4);//CONFIG_BTTESTER_LOG_LEVEL); #include "btp/btp.h" #include "dfu_slot.h" @@ -250,11 +250,11 @@ static void oob_check_handler(struct k_work *work) int err; if (dfd_srv_oob_ctx.uri_len < 4 || memcmp(dfd_srv_oob_ctx.uri, SUPPORTED_SCHEME, - sizeof(SUPPORTED_SCHEME))) { + strlen(SUPPORTED_SCHEME))) { status = BT_MESH_DFD_ERR_URI_NOT_SUPPORTED; } else if (dfd_srv_oob_ctx.uri_len < 7 || memcmp(dfd_srv_oob_ctx.uri, SUPPORTED_SCHEME "://", - sizeof(SUPPORTED_SCHEME) + 3)) { + strlen(SUPPORTED_SCHEME) + 3)) { status = BT_MESH_DFD_ERR_URI_MALFORMED; } else { status = BT_MESH_DFD_SUCCESS;