This function is only executed if CONFIG_BT is set, so it should be enclosed by CONFIG_BT.