This sequence can happen when disconnecting the MOTOROKR T505 2009-11-27 12:05:30.636932 > ACL data: handle 11 flags 0x02 dlen 12 L2CAP(s): Disconn req: dcid 0x0040 scid 0x0048 2009-11-27 12:05:30.637054 < ACL data: handle 11 flags 0x02 dlen 12 L2CAP(s): Disconn rsp: dcid 0x0040 scid 0x0048 2009-11-27 12:05:30.822540 > HCI Event: Number of Completed Packets (0x13) plen 5 handle 11 packets 1 2009-11-27 12:05:30.985656 > HCI Event: Disconn Complete (0x05) plen 4 status 0x00 handle 11 reason 0x13 Reason: Remote User Terminated Connection 2009-11-27 12:05:32.655273 < HCI Command: Disconnect (0x01|0x0006) plen 3 handle 0 reason 0x13 Reason: Remote User Terminated Connection 2009-11-27 12:05:32.661621 > HCI Event: Command Status (0x0f) plen 4 Disconnect (0x01|0x0006) status 0x12 ncmd 1 Error: Invalid HCI Command Parameters A similar situation (trying to disconnect handle 0) can occur by increasing the timeout value DISCONNECT_TIMER in src/device.c (default is 2). The problem seems to be that bluetoothd still calls src/device.c:do_disconnect even though the link has been disconnected. Attaching a patch proposal for function device_remove_connection to try to avoid this. The function looks to be called only when there is no longer an hci connection to the remote. /Daniel