Skip to content
/ linux Public

Commit fce04c8

Browse files
ceggers-arrigregkh
authored andcommitted
Bluetooth: SMP: make SM/PER/KDU/BI-04-C happy
[ Upstream commit 0e4d4dc ] The last test step ("Test with Invalid public key X and Y, all set to 0") expects to get an "DHKEY check failed" instead of "unspecified". Fixes: 6d19628 ("Bluetooth: SMP: Fail if remote and local public keys are identical") Signed-off-by: Christian Eggers <ceggers@arri.de> Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 37021b1 commit fce04c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/bluetooth/smp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2743,7 +2743,7 @@ static int smp_cmd_public_key(struct l2cap_conn *conn, struct sk_buff *skb)
27432743
if (!test_bit(SMP_FLAG_DEBUG_KEY, &smp->flags) &&
27442744
!crypto_memneq(key, smp->local_pk, 64)) {
27452745
bt_dev_err(hdev, "Remote and local public keys are identical");
2746-
return SMP_UNSPECIFIED;
2746+
return SMP_DHKEY_CHECK_FAILED;
27472747
}
27482748

27492749
memcpy(smp->remote_pk, key, 64);

0 commit comments

Comments
 (0)