From e4747b28a8f3edac3ba8282bb7172898940bcd37 Mon Sep 17 00:00:00 2001 From: Szymon Janc Date: Wed, 24 Apr 2024 13:55:56 +0200 Subject: [PATCH] Bluetooth: OTS: Fix checksum calculation support There was a typo in Kconfig check (missing CONFIG_ prefix) which resulted in not setting OACP_FEAT_BIT_CRC bit in features. This also resulted in checksum feature being disabled due to check in bt_ots_init(). This was affecting OTS/SR/OASP/BV-03-C qualificatio test case. Signed-off-by: Szymon Janc --- subsys/bluetooth/services/ots/ots.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subsys/bluetooth/services/ots/ots.c b/subsys/bluetooth/services/ots/ots.c index e6927cfddd..8a45929ad2 100644 --- a/subsys/bluetooth/services/ots/ots.c +++ b/subsys/bluetooth/services/ots/ots.c @@ -42,7 +42,7 @@ LOG_MODULE_REGISTER(bt_ots, CONFIG_BT_OTS_LOG_LEVEL); #define OACP_FEAT_BIT_DELETE 0 #endif -#if defined(BT_OTS_OACP_CHECKSUM_SUPPORT) +#if defined(CONFIG_BT_OTS_OACP_CHECKSUM_SUPPORT) #define OACP_FEAT_BIT_CRC BIT(BT_OTS_OACP_FEAT_CHECKSUM) #else #define OACP_FEAT_BIT_CRC 0