Authentication issue during connection if remote deletes link key

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I am facing one issue with authentication during profile connection.
Two devices are there A and B which are paired.
From B I deleted the pairing of A.
Now from A I initiated a file transfer to B which failed during authentication
since remote link key is not there.
Please see the hcidump logs.
< HCI Command: Authentication Requested (0x01|0x0011) plen 2
   handle 12
< ACL data: handle 12 flags 0x00 dlen 12
   L2CAP(s): Disconn req: dcid 0x0046 scid 0x0040
HCI Event: Command Status (0x0f) plen 4
   Authentication Requested (0x01|0x0011) status 0x00 ncmd 1
HCI Event: Link Key Request (0x17) plen 6
   bdaddr BC:85:1F:74:7F:29
< HCI Command: Link Key Request Reply (0x01|0x000b) plen 22
   bdaddr BC:85:1F:74:7F:29 key 0E7B8C5C01CBF6CA7FF08050591C21BB
HCI Event: Command Complete (0x0e) plen 10
   Link Key Request Reply (0x01|0x000b) ncmd 1
   status 0x00 bdaddr BC:85:1F:74:7F:29
ACL data: handle 12 flags 0x02 dlen 12
   L2CAP(s): Disconn rsp: dcid 0x0046 scid 0x0040
HCI Event: Auth Complete (0x06) plen 3
   status 0x06 handle 12
   Error: PIN or Key Missing

But the same scenario with legacy pairing it is working fine. Pin code request is coming
from the controller.
< HCI Command: Authentication Requested (0x01|0x0011) plen 2
   handle 11
< ACL data: handle 11 flags 0x00 dlen 12
   L2CAP(s): Disconn req: dcid 0x0040 scid 0x0040
HCI Event: Command Status (0x0f) plen 4
   Authentication Requested (0x01|0x0011) status 0x00 ncmd 1
HCI Event: Link Key Request (0x17) plen 6
   bdaddr 00:80:98:E7:34:07
< HCI Command: Link Key Request Reply (0x01|0x000b) plen 22
   bdaddr 00:80:98:E7:34:07 key 0E174763D381917A5AF973E22C49A3FE
HCI Event: Command Complete (0x0e) plen 10
   Link Key Request Reply (0x01|0x000b) ncmd 1
   status 0x00 bdaddr 00:80:98:E7:34:07
ACL data: handle 11 flags 0x02 dlen 12
   L2CAP(s): Disconn rsp: dcid 0x0040 scid 0x0040
HCI Event: PIN Code Request (0x16) plen 6
   bdaddr 00:80:98:E7:34:07
HCI Event: Number of Completed Packets (0x13) plen 5
   handle 11 packets 1
< HCI Command: PIN Code Request Reply (0x01|0x000d) plen 23
   bdaddr 00:80:98:E7:34:07 len 1 pin '0'
HCI Event: Command Complete (0x0e) plen 10
   PIN Code Request Reply (0x01|0x000d) ncmd 1
   status 0x00 bdaddr 00:80:98:E7:34:07
HCI Event: Link Key Notification (0x18) plen 23
   bdaddr 00:80:98:E7:34:07 key 573CC496BB0C02EE461B4A18C2D758C0 type 0
   Type: Combination Key
HCI Event: Auth Complete (0x06) plen 3
   status 0x00 handle 11


Is it controller issue or BlueZ has to take care this?
Please let me know your opinion.

Thanks,
Jaganath


--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux