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.7-rc3~7^2^2~18^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=065a13e2cc665f6547dc7e8a9d6b6565badf940a;p=pandora-kernel.git Bluetooth: SMP: Fix setting unknown auth_req bits 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 Cc: stable@kernel.org Acked-by: Marcel Holtmann Signed-off-by: Gustavo Padovan --- Reading git-diff-tree failed