NRF52840: NCS 2.5.0 -> NCS 2.7.0 BLE advertising stops on disconnect

I have a custom board that is in production but is running NCS 2.5.0. I am interested in migrating to 2.7.0 however I am running into a few issues. When I pair to the device with our phone app then disconnect, the device stops advertising (See log snippet below). 

[00:03:44.102,996] <inf> ble_module: Disconnected: 53:E2:A3:BA:89:A8 (random) (reason 19)
[00:03:44.103,271] <wrn> bt_hci_core: opcode 0x2005 status 0x0c
[00:03:44.103,271] <wrn> bt_id: cmd disallowed
[00:03:44.103,271] <err> bt_adv: Controller cannot resume connectable advertising (-13)

Long story short, this is a relatively new error message that I tracked to this zephyr commit: Bluetooth: Host: Map HCI cmd disallowed to errno · zephyrproject-rtos/zephyr@76559f2 (github.com)

Here are my BLE related Kconfig options.

# Enable Bluetooth
CONFIG_BT=y
CONFIG_BT_OBSERVER=y
CONFIG_BT_PERIPHERAL=y
CONFIG_BT_NUS=y
CONFIG_BT_DEVICE_NAME="CTT-NODE"
CONFIG_BT_DEVICE_NAME_DYNAMIC=y
CONFIG_BT_DEVICE_APPEARANCE=833
CONFIG_BT_MAX_CONN=1
CONFIG_BT_MAX_PAIRED=1
CONFIG_BT_RX_STACK_SIZE=4096
CONFIG_NCS_SAMPLE_MCUMGR_BT_OTA_DFU=y
CONFIG_NCS_SAMPLE_MCUMGR_BT_OTA_DFU_SPEEDUP=y

I'm guessing there is something not being configured properly due to the NCS upgrade. Any insights?

Related