Re: [Bluez-devel] combination keys support?

Marcel Holtmann
2004-11-14T23:09:40Z

Hi Marco,

> here the dump starting when i enter the pin in the mobile phone:
>
> ----- start -----
> > HCI Event: PIN Code Request (0x16) plen 6
> 8E 08 52 ED 0E 00
> < HCI Command: PIN Code Request Reply (0x01|0x000d) plen 23
> 8E 08 52 ED 0E 00 01 31 00 00 00 00 00 00 00 00 00 00 00 00
> 00 00 00
> > HCI Event: Command Complete (0x0e) plen 10
> 01 0D 04 00 8E 08 52 ED 0E 00
> > HCI Event: Link Key Notification (0x18) plen 23
> 8E 08 52 ED 0E 00 B9 2F DD 2F 51 0C 91 E3 79 3C 53 8A C1 54
> 22 50 01
> > ACL data: handle 0x0000 flags 0x02 dlen 8
> L2CAP(d): cid 0x0040 len 4 [psm 3]
> RFCOMM(s): SABM: cr 1 dlci 0 pf 1 ilen 0 fcs 0x1c
> < ACL data: handle 0x0000 flags 0x02 dlen 8
> L2CAP(d): cid 0x0040 len 4 [psm 3]
> RFCOMM(s): UA: cr 1 dlci 0 pf 1 ilen 0 fcs 0xd7
> > HCI Event: Disconn Complete (0x05) plen 4
> 00 00 00 29
> > HCI Event: Number of Completed Packets (0x13) plen 5
> 01 00 00 01 00
> ----- stop -----
>
> the mobile phone tells me "pairing and connection rejected for security
> reason".
> Then "disconnected from ..."
> if i enter an wrong pin, another message appears.

this is really weird. The error code 0x29 means "pairing with unit key
not supported", but actually it sends out the link key notification. It
tell us that the link key is a local unit key. Whatever local means in
this case. And the PIN code request happens before the SABM on the
control DLCI 0. There is something fundamental wrong.

What device do you use (hciconfig -a)? What kind of phone is this
(hcitool info <bdaddr>)?