Re: [PATCH v2] Bluetooth: Track both local and remote L2CAP fixed channel mask

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Johan,

> 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@xxxxxxxxx>
> ---
> v2: Use "data + 1" instead of "&data[1]"
> 
> include/net/bluetooth/l2cap.h |  4 ++--
> net/bluetooth/l2cap_core.c    | 37 ++++++++++++++++++-------------------
> 2 files changed, 20 insertions(+), 21 deletions(-)

patch has been applied to bluetooth-next tree.

Regards

Marcel

--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux