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)
commitc05b9339c8a448a2df0c8598424ea9c0933288d1
treec37fc20b8ecc84f7c13a8b2e0915f96c3f399d2a
parent3a7dbfb8ff943711be4221df978254ad2bc1ac46
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