]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Fix ignoring unknown SMP authentication requirement bits
authorJohan Hedberg <johan.hedberg@intel.com>
Thu, 11 Sep 2014 00:37:42 +0000 (17:37 -0700)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 11 Sep 2014 00:45:24 +0000 (02:45 +0200)
commitab2ad79cec068902f1f0bce36094fc4fae6a6e71
treec37fc20b8ecc84f7c13a8b2e0915f96c3f399d2a
parent2e58f9c8fb816826046ddfacc81f0e07029961fa
Bluetooth: Fix ignoring unknown SMP authentication requirement bits

The SMP specification states that we should ignore any unknown bits from
the authentication requirement. We already have a define for masking out
unknown bits but we haven't used it in all places so far. This patch
adds usage of the AUTH_REQ_MASK to all places that need it and ensures
that we don't pass unknown bits onward to other functions.

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