diff --git a/net/ip/Kconfig b/net/ip/Kconfig index 74a63a01bef..5b57608c049 100644 --- a/net/ip/Kconfig +++ b/net/ip/Kconfig @@ -457,6 +457,7 @@ config NETWORKING_WITH_BT select BLUETOOTH select BLUETOOTH_PERIPHERAL select BLUETOOTH_L2CAP_DYNAMIC_CHANNEL + select BLUETOOTH_SMP default n help Enable Bluetooth driver that send and receives IPv6 packets, diff --git a/subsys/bluetooth/host/Kconfig b/subsys/bluetooth/host/Kconfig index 32b57bdb9cd..b006d9a4f9b 100644 --- a/subsys/bluetooth/host/Kconfig +++ b/subsys/bluetooth/host/Kconfig @@ -253,6 +253,7 @@ endif # BLUETOOTH_SMP config BLUETOOTH_L2CAP_DYNAMIC_CHANNEL bool "L2CAP Dynamic Channel support" + depends on BLUETOOTH_SMP default n help This option enables support for LE Connection oriented Channels, diff --git a/subsys/bluetooth/host/l2cap.c b/subsys/bluetooth/host/l2cap.c index d15fe70be16..9677d715586 100644 --- a/subsys/bluetooth/host/l2cap.c +++ b/subsys/bluetooth/host/l2cap.c @@ -608,13 +608,11 @@ static void le_conn_req(struct bt_l2cap *l2cap, uint8_t ident, goto rsp; } -#if defined(CONFIG_BLUETOOTH_SMP) /* Check if connection has minimum required security level */ if (conn->sec_level < server->sec_level) { rsp->result = sys_cpu_to_le16(BT_L2CAP_ERR_AUTHENTICATION); goto rsp; } -#endif /* CONFIG_BLUETOOTH_SMP */ if (!L2CAP_LE_CID_IS_DYN(scid)) { rsp->result = sys_cpu_to_le16(BT_L2CAP_ERR_INVALID_SCID);