/* Calculates the maximum fragment size to use when sending the specified response packet.  */
static uint16_t smp_bt_get_mtu(const struct net_buf *nb)
/* Calculates the maximum fragment size to use when sending the specified response packet.  */
static uint16_t smp_bt_get_mtu(const struct net_buf *nb)
{
	struct bt_conn *conn;
	uint16_t mtu;
	conn = smp_bt_conn_from_pkt(nb);
	if (conn == NULL) {
		return 0;
	}
	mtu = bt_gatt_get_mtu(conn);
	return mtu - 3;
}