L2CAP connection has faster transfer speed than RFCOMM one but not all OPP devices support L2CAP connection, so current b2g OPP implements only RFCOMM outbound connection. We should try L2CAP connection first and then RFCOMM one to cover both transfer speed and compatibility.
Component: Bluetooth → Gaia::Bluetooth File Transfer
Component: Gaia::Bluetooth File Transfer → Bluetooth
Created attachment 802134 [details] [diff] [review] Patch 1: OPP L2CAP outbound connection Changes - add a parameter in GetServiceChannel() function to indicate L2CAP channel - for OPP manager outbound connection, get L2CAP channel first and then RFCOMM channel if no L2CAP channel exists - fix some warnings
After testing we found l2cap and rfcomm sockets have similar speed limited by the max MTU size of l2cap, so we'd like to keep current rfcomm-only outbound connection. Mark as resolved.
Status: NEW → RESOLVED
Last Resolved: 5 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.