Bluetooth: Fix init sequence for some CSR based controllers
authorJohan Hedberg <johan.hedberg@intel.com>
Thu, 1 Mar 2012 19:35:55 +0000 (21:35 +0200)
committerJohan Hedberg <johan.hedberg@intel.com>
Thu, 1 Mar 2012 19:44:55 +0000 (21:44 +0200)
commit75fb0e324daa48ec458fb5c2960eb07b80cfad9d
tree78229ecbcf7b08b1aa3a47ce9e5927e8e64dd6a2
parent8b90129cc5789a4c65547c91c9a7b1fd3a4d56a4
Bluetooth: Fix init sequence for some CSR based controllers

Some CSR controllers will generate a spontaneous reset during init and
just eat up any pending command without sending a command complete for
it. This patch solves the issue by just resending whatever was the last
sent command. hci_send_cmd is not used since we need to bypass all other
commands in the send queue.

Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Acked-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/hci_core.c