From: Johan Hedberg Date: Thu, 11 Oct 2012 14:26:06 +0000 (+0200) Subject: Bluetooth: SMP: Fix setting unknown auth_req bits X-Git-Tag: v3.2.33~64 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2ce7b03705f186f899e45b7d6b9a657c2138ac8c;p=pandora-kernel.git Bluetooth: SMP: Fix setting unknown auth_req bits commit 065a13e2cc665f6547dc7e8a9d6b6565badf940a upstream. When sending a pairing request or response we should not just blindly copy the value that the remote device sent. Instead we should at least make sure to mask out any unknown bits. This is particularly critical from the upcoming LE Secure Connections feature perspective as incorrectly indicating support for it (by copying the remote value) would cause a failure to pair with devices that support it. Signed-off-by: Johan Hedberg Acked-by: Marcel Holtmann Signed-off-by: Gustavo Padovan Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed