]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - net/bluetooth/smp.c
Bluetooth: Convert hci_conn->link_mode into flags
authorJohan Hedberg <johan.hedberg@intel.com>
Tue, 24 Jun 2014 14:03:50 +0000 (17:03 +0300)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 3 Jul 2014 15:42:46 +0000 (17:42 +0200)
commit4dae27983eaaee15c6867561eb2c8d7b2d28d6cc
tree5081f92ee6b9cb7f28bfc446b5bf194f82680a3b
parent985d904902681d736924afe3f4dae212c0e5f6a4
Bluetooth: Convert hci_conn->link_mode into flags

Since the link_mode member of the hci_conn struct is a bit field and we
already have a flags member as well it makes sense to merge these two
together. This patch moves all used link_mode bits into corresponding
flags. To keep backwards compatibility with user space we still need to
provide a get_link_mode() helper function for the ioctl's that expect a
link_mode style value.

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