Bluetooth: Store address information in L2CAP channel structure
authorMarcel Holtmann <marcel@holtmann.org>
Sun, 13 Oct 2013 15:12:47 +0000 (08:12 -0700)
committerJohan Hedberg <johan.hedberg@intel.com>
Sun, 13 Oct 2013 15:52:01 +0000 (18:52 +0300)
commit7eafc59e2f547fce3a31b3e2d03c14d57e9162b2
treea4c694fb05f051d3dda4a50f7dcf0a021d6ac039
parent4637f7c0d0e95361f25f456b34cc2138fdfe95f8
Bluetooth: Store address information in L2CAP channel structure

With the effort of abstracting the L2CAP socket from the underlying
L2CAP channel it is important to store the source and destination
address information directly in the L2CAP channel structure.

Direct access to the HCI connection address information is not
possible since they might not be avaiable at L2CAP channel
creation time. The address information will be updated when
the underlying BR/EDR or LE connection status changes.

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