Bluetooth: Channel move request handling
authorMat Martineau <mathewm@codeaurora.org>
Tue, 23 Oct 2012 22:24:10 +0000 (15:24 -0700)
committerGustavo Padovan <gustavo.padovan@collabora.co.uk>
Wed, 24 Oct 2012 02:09:15 +0000 (00:09 -0200)
commit02b0fbb92dbb0e3c50f1c955547444e3997c80e3
treeae848f370d64143399cfe56add8c58c4c2577aca
parentb1a130b7d372c5ccc2001d4ee08928b5324f0a76
Bluetooth: Channel move request handling

On receipt of a channel move request, the request must be validated
based on the L2CAP mode, connection state, and controller
capabilities.  ERTM channels must have their state machines cleared
and transmission paused while the channel move takes place.

If the channel is being moved to an AMP controller then
an AMP physical link must be prepared.  Moving the channel back to
BR/EDR proceeds immediately.

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 Padovan <gustavo.padovan@collabora.co.uk>
net/bluetooth/l2cap_core.c