aboutsummaryrefslogtreecommitdiffstats
path: root/include/net
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@intel.com>2014-12-02 03:09:26 -0500
committerMarcel Holtmann <marcel@holtmann.org>2014-12-02 03:26:50 -0500
commit0bd49fc75aab94a7bf3cd2f7c70e03b600635c65 (patch)
tree54ed21b90f1c0921ff545fd9e4259cbcad4a09c6 /include/net
parentf6af675ef5489c69fc3d4faf8c6f477df3cbf8b9 (diff)
Bluetooth: Track both local and remote L2CAP fixed channel mask
To pave the way for future fixed channels to be added easily we should track both the local and remote mask on a per-L2CAP connection (struct l2cap_conn) basis. So far the code has used a global variable in a racy way which anyway needs fixing. This patch renames the existing conn->fixed_chan_mask that tracked the remote mask to conn->remote_fixed_chan and adds a new variable conn->local_fixed_chan to track the local mask. Since the HS support info is now available in the local mask we can remove the conn->hs_enabled variable. Signed-off-by: Johan Hedberg <johan.hedberg@intel.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'include/net')
-rw-r--r--include/net/bluetooth/l2cap.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/net/bluetooth/l2cap.h b/include/net/bluetooth/l2cap.h
index 061e648052c8..d71dc3579354 100644
--- a/include/net/bluetooth/l2cap.h
+++ b/include/net/bluetooth/l2cap.h
@@ -619,8 +619,8 @@ struct l2cap_conn {
619 unsigned int mtu; 619 unsigned int mtu;
620 620
621 __u32 feat_mask; 621 __u32 feat_mask;
622 __u8 fixed_chan_mask; 622 __u8 remote_fixed_chan;
623 bool hs_enabled; 623 __u8 local_fixed_chan;
624 624
625 __u8 info_state; 625 __u8 info_state;
626 __u8 info_ident; 626 __u8 info_ident;