Bluetooth: Fix CID initialization for fixed channels
authorJohan Hedberg <johan.hedberg@intel.com>
Sat, 25 Jan 2014 22:10:09 +0000 (17:10 -0500)
committerJohan Hedberg <johan.hedberg@intel.com>
Thu, 13 Feb 2014 07:51:37 +0000 (09:51 +0200)
commit7a8e5a31ecd50ace4fce57304c8fdd206f013fde
tree67ed961eef036b7ba6ad6a9bec7957ae70e7a49d
parente0c888ad739513b9baae5c25e85dd6490595e5be
Bluetooth: Fix CID initialization for fixed channels

Fixed channels have the same source and destination CID. Ensure that the
values get properly initialized when receiving incoming connections and
deriving values from the parent socket.

Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/l2cap_core.c
net/bluetooth/l2cap_sock.c