Bluetooth: Add channel policy to getsockopt/setsockopt
authorMat Martineau <mathewm@codeaurora.org>
Wed, 2 Nov 2011 23:18:30 +0000 (16:18 -0700)
committerGustavo F. Padovan <padovan@profusion.mobi>
Mon, 7 Nov 2011 19:25:00 +0000 (17:25 -0200)
commit2ea664822af6705574dfbbf8c77fc7d75a94e9b3
tree7fd806a991ac52244b2cb233b8e0798b5c84fde5
parentd7c4d11c649ae694b78f145120ed693a004fe496
Bluetooth: Add channel policy to getsockopt/setsockopt

Each channel has a policy to require BR/EDR (the default),
prefer BR/EDR, or prefer AMP.

Check for valid policy value and L2CAP mode.

Signed-off-by: Mat Martineau <mathewm@codeaurora.org>
Acked-by: Marcel Holtmann <marcel@holtmann.org>
Acked-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
include/net/bluetooth/l2cap.h
net/bluetooth/l2cap_sock.c