build failed when configuring the OOB legacy pairing only mode in NCS v2.8.0

Hello,

I am using NCS v2.8.0. 

In this, when I configured the application to use OOB legacy pairing only mode, the build process failed. 

Following is the configuration I am using in prj.conf file,

CONFIG_BT_SMP=y
CONFIG_BT_SMP_OOB_LEGACY_PAIR_ONLY=y
CONFIG_BT_SMP_APP_PAIRING_ACCEPT=y
CONFIG_BT_BONDABLE=n

The error it generates in the build process,

-- Zephyr version: 3.7.99 (D:/ncs/v2.8.0/zephyr), build: v3.7.99-ncs1
[209/235] Building C object zephyr/subsys/bluetooth/host/CMakeFiles/subsys__bluetooth__host.dir/smp.c.obj
D:/ncs/v2.8.0/zephyr/subsys/bluetooth/host/smp.c: In function 'smp_pairing_random':
D:/ncs/v2.8.0/zephyr/subsys/bluetooth/host/smp.c:3780:25: warning: implicit declaration of function 'le_sc_oob_config_set' [-Wimplicit-function-declaration]
 3780 |                         le_sc_oob_config_set(smp, &info);
      |                         ^~~~~~~~~~~~~~~~~~~~
D:/ncs/v2.8.0/zephyr/subsys/bluetooth/host/smp.c: In function 'smp_public_key_periph':
D:/ncs/v2.8.0/zephyr/subsys/bluetooth/host/smp.c:4234:23: warning: implicit declaration of function 'display_passkey' [-Wimplicit-function-declaration]
 4234 |                 err = display_passkey(smp);
      |                       ^~~~~~~~~~~~~~~
D:/ncs/v2.8.0/zephyr/subsys/bluetooth/host/smp.c:4256:16: warning: implicit declaration of function 'generate_dhkey' [-Wimplicit-function-declaration]
 4256 |         return generate_dhkey(smp);
      |                ^~~~~~~~~~~~~~
[230/235] Linking C executable zephyr\zephyr_pre0.elf
D:/ncs/v2.8.0/zephyr/subsys/bluetooth/host/smp.c:3780: undefined reference to `le_sc_oob_config_set'
collect2.exe: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.

How can I fix this error? 

I think it requires a change in smp.c file? 

Thanks,
Narendra

Related