OSDN Git Service

Retry rfcomm socket connections after link key exchange error.
authorJaikumar Ganesh <jaikumar@google.com>
Sat, 8 Jan 2011 02:15:50 +0000 (18:15 -0800)
committerJaikumar Ganesh <jaikumar@google.com>
Mon, 28 Feb 2011 21:57:51 +0000 (13:57 -0800)
commitd6a1c1c4bf3da920582e17c8c6e32c7ef74a555f
treef239439bc4a00ac93f1858422a23297c5d6e28a5
parent66b7bea43b30c8a770229e961d9c18053726bd79
Retry rfcomm socket connections after link key exchange error.

If the devices were paired before, but unpaired on the
remote end, it will return an error (when sending a file)for the auth
request for the socket connection. Link keys will get exchanged
but we need to retry the socket connection. There is no good way to
inform this socket asking it to retry apart from
a delayed retry. The socket is opened at the kernel level
but the link key retrys happen at the Bluez userspace level.

Note: This is a temporary change, once the new mgmt interface comes
up in Bluez, we wouldn't need this.

Change-Id: Ifbd93d7f69b93515dda6c6f4ad2796853f9d5841
src/com/android/bluetooth/opp/BluetoothOppTransfer.java