Bluetooth: Update L2CAP socket source address from HCI connection
authorMarcel Holtmann <marcel@holtmann.org>
Sun, 13 Oct 2013 12:56:37 +0000 (05:56 -0700)
committerJohan Hedberg <johan.hedberg@intel.com>
Sun, 13 Oct 2013 14:48:52 +0000 (17:48 +0300)
commit4637f7c0d0e95361f25f456b34cc2138fdfe95f8
tree3a114e561c24404cc265e4731847f12ad5c43e7c
parentf1560463ebb7d883be2f5e55e71f7e8b78c0ca1a
Bluetooth: Update L2CAP socket source address from HCI connection

When having LE connections, the source address is not always the
public address of the controller. So update the socket address
based on the actual used source address of the HCI connection.

This also remove the pointless source address pointer and adds
a proper lock around the socket structure.

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