]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitbfd883db7e61fbf1695e736270ba68baa8610813
tree5081f92ee6b9cb7f28bfc446b5bf194f82680a3b
parentdfc7b4085d5aca743b3fcea32eb447e16be7e80c
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