aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/bluetooth/l2cap.h
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2013-10-13 11:12:47 -0400
committerJohan Hedberg <johan.hedberg@intel.com>2013-10-13 11:52:01 -0400
commit7eafc59e2f547fce3a31b3e2d03c14d57e9162b2 (patch)
treea4c694fb05f051d3dda4a50f7dcf0a021d6ac039 /include/net/bluetooth/l2cap.h
parent4637f7c0d0e95361f25f456b34cc2138fdfe95f8 (diff)
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>
Diffstat (limited to 'include/net/bluetooth/l2cap.h')
-rw-r--r--include/net/bluetooth/l2cap.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/net/bluetooth/l2cap.h b/include/net/bluetooth/l2cap.h
index 1a929afe4f16..26b5066e74e2 100644
--- a/include/net/bluetooth/l2cap.h
+++ b/include/net/bluetooth/l2cap.h
@@ -444,6 +444,8 @@ struct l2cap_chan {
444 444
445 __u8 state; 445 __u8 state;
446 446
447 bdaddr_t dst;
448 bdaddr_t src;
447 __le16 psm; 449 __le16 psm;
448 __u16 dcid; 450 __u16 dcid;
449 __u16 scid; 451 __u16 scid;