On Wed, Oct 5, 2011 at 4:32 PM, Slawomir Bochenski <lkslawek@xxxxxxxxx> wrote: > OBEX_EV_REQ is the last thing that we are going to receive on PUT and > this is always going to be delivered. As the service driver will start > receiving data at or before its .put(), we can simply call flush() after > that. This also makes flush() usable in PUTs without length header. One thing I've forgotten to mention: Additionally the return value from flush() now follows the usual conventions - -EAGAIN is used to suspend request, other values less than zero will set appropriate OBEX error code. -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html