]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Add clarifying comment for conn->auth_type
authorJohan Hedberg <johan.hedberg@intel.com>
Mon, 9 Jun 2014 11:41:25 +0000 (14:41 +0300)
committerMarcel Holtmann <marcel@holtmann.org>
Fri, 13 Jun 2014 11:30:45 +0000 (13:30 +0200)
commit9a1ac9d9a271c4a574cd1445d2a12655fff931cf
treebfab2aa2fdac88e2c16b6de9f979d16224b39e1a
parenta8d73d76cbc2945e04aeea66dd4353ea7c421b76
Bluetooth: Add clarifying comment for conn->auth_type

When responding to an IO capability request when we're the initiators of
the pairing we will not yet have the remote IO capability information.
Since the conn->auth_type variable is treated as an "absolute"
requirement instead of a hint of what's needed later in the user
confirmation request handler it's important that it doesn't have the
MITM bit set if there's any chance that the remote device doesn't have
the necessary IO capabilities.

This patch adds a clarifying comment so that conn->auth_type is left
untouched in this scenario.

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