From 7df751e60a623927d3a12269f2d710c7ecc236f7 Mon Sep 17 00:00:00 2001 From: Dominik Ermel Date: Wed, 6 Mar 2024 12:51:46 +0000 Subject: [PATCH] [nrf fromtree] mcumgr/img_mgmt: Fix CONFIG_MCUBOOT_BOOTLOADER_NO_DOWNGRADE Usage of the Kconfig, in code, has been missing CONFIG_, so selected or not it did nothing. Signed-off-by: Dominik Ermel (cherry picked from commit 1ec7116042f6f32c11ead15b4cc67589370ef7d6) --- subsys/mgmt/mcumgr/grp/os_mgmt/src/os_mgmt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subsys/mgmt/mcumgr/grp/os_mgmt/src/os_mgmt.c b/subsys/mgmt/mcumgr/grp/os_mgmt/src/os_mgmt.c index d5244cb07d8..6dbacf66633 100644 --- a/subsys/mgmt/mcumgr/grp/os_mgmt/src/os_mgmt.c +++ b/subsys/mgmt/mcumgr/grp/os_mgmt/src/os_mgmt.c @@ -472,7 +472,7 @@ os_mgmt_bootloader_info(struct smp_streamer *ctxt) ok = zcbor_tstr_put_lit(zse, "mode") && zcbor_int32_put(zse, BOOTLOADER_MODE); -#if IS_ENABLED(MCUBOOT_BOOTLOADER_NO_DOWNGRADE) +#if IS_ENABLED(CONFIG_MCUBOOT_BOOTLOADER_NO_DOWNGRADE) ok = zcbor_tstr_put_lit(zse, "no-downgrade") && zcbor_bool_encode(zse, true); #endif