Hi, The first patch in this series fix the issue remaining in v2. It also fix a crash because the request_stream callback was run synchronously. After that various fixes. Changes from v4 : Patch 2: take Luiz comment into account and create error domain for gateway Patch 4: also make sure gateway is set back to disconnected state in case of authorize errors. Best regards, Frédéric Frédéric Dalleau (6): Fix disconnect SCO at same time than RFCOMM Fix asynchronously run request stream cb Fix state to "playing" on SCO establishment Set state to "connecting" on connection requested Fix reference count issue in incoming connections Check all states before allowing gw connection audio/gateway.c | 194 ++++++++++++++++++++++++++++++++++++++----------------- audio/gateway.h | 12 +++- audio/manager.c | 8 ++- audio/unix.c | 13 +--- 4 files changed, 155 insertions(+), 72 deletions(-) -- 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