linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Bluetooth ECDH selftest failed (endianness issue?)
@ 2018-12-27  3:21 Andrey Batyiev
  2018-12-29  7:35 ` Marcel Holtmann
  0 siblings, 1 reply; 8+ messages in thread
From: Andrey Batyiev @ 2018-12-27  3:21 UTC (permalink / raw)
  To: linux-bluetooth

Hello everyone,

I'm trying to pair my MIPS based router with a phone (using bluez),
without success.
I have turned on debugging features of bluetooth kernel module and I
got this in dmesg:

[  234.481526] Bluetooth: Core ver 2.22
[  234.485231] Bluetooth: Starting self testing
[  234.525375] Bluetooth: ECDH sample 1 failed
[  234.529728] Bluetooth: Finished self testing

Also, I checked hcidump, and it seems that SMP "Pairing confirm"
command got rejected by the phone with an error ("Reason: Unspecified
Reason (0x08)").
As far as I understand, ECDH computation is involved in a pairing process.

However, my Linux desktop is able to successfully pair to the phone
(Ubuntu 18.04) via the same dongle, using same version of bluez.

The huge difference between my desktop and router is endianness:
router is big-endian, while desktop is little-endian. Maybe, that's
the case?

I'm not sure how to debug this, could you please advise?

Router specs:
CPU: QCA9531 (MIPS_24KC, big-endian)
Distro: OpenWRT git master
Linux: 4.14.88
BlueZ: 5.49
Bluetooth dongle: CSR8510 A10

Thanks,
  Andrey

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2019-01-21 16:57 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-12-27  3:21 Bluetooth ECDH selftest failed (endianness issue?) Andrey Batyiev
2018-12-29  7:35 ` Marcel Holtmann
2019-01-03 20:19   ` Andrey Batyiev
2019-01-07 22:37     ` Andrey Batyiev
2019-01-18  9:43       ` Marcel Holtmann
2019-01-18 13:51         ` Emil Lenngren
2019-01-21 14:53           ` Marcel Holtmann
2019-01-21 16:56             ` Emil Lenngren

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).