• Jaikumar Ganesh's avatar
    Bluetooth: Add BT_POWER L2CAP socket option. · 14b12d0b
    Jaikumar Ganesh authored
    Add BT_POWER socket option used to control the power
    characteristics of the underlying ACL link. When the remote end
    has put the link in sniff mode and the host stack wants to send
    data we need need to explicitly exit sniff mode to work well with
    certain devices (For example, A2DP on Plantronics Voyager 855).
    However, this causes problems with HID devices.
    
    Hence, moving into active mode when sending data, irrespective
    of who set the sniff mode has been made as a socket option. By
    default, we will move into active mode. HID devices can set the
    L2CAP socket option to prevent this from happening.
    
    Currently, this has been implemented for L2CAP sockets. This has been
    tested with incoming and outgoing L2CAP sockets for HID and A2DP.
    
    Based on discussions on linux-bluetooth and patches submitted by
    Andrei Emeltchenko.
    Signed-off-by: default avatarJaikumar Ganesh <jaikumar@google.com>
    Signed-off-by: default avatarGustavo F. Padovan <padovan@profusion.mobi>
    14b12d0b
l2cap.h 11.5 KB