Bluetooth: Fix HCI_RESET command synchronization
authorGustavo F. Padovan <padovan@profusion.mobi>
Wed, 16 Mar 2011 18:36:29 +0000 (15:36 -0300)
committerBrad Figg <brad.figg@canonical.com>
Wed, 27 Apr 2011 18:42:33 +0000 (11:42 -0700)
commitea12995eae7639821e35c394b813e461e3945e5a
tree86a812f7a30d791c9b14387cce0de9f4677c5fb5
parent962eb2ef5a82acae475547c8e21be571589f604d
Bluetooth: Fix HCI_RESET command synchronization

BugLink: http://bugs.launchpad.net/bugs/769042
BugLink: http://bugs.launchpad.net/bugs/700292

commit f630cf0d5434e3923e1b8226ffa2753ead6b0ce5 upstream.

We can't send new commands before a cmd_complete for the HCI_RESET command
shows up.

Reported-by: Mikko Vinni <mmvinni@yahoo.com>
Reported-by: Justin P. Mattock <justinmattock@gmail.com>
Reported-by: Ed Tomlinson <edt@aei.ca>
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
Tested-by: Justin P. Mattock <justinmattock@gmail.com>
Tested-by: Mikko Vinni <mmvinni@yahoo.com>
Tested-by: Ed Tomlinson <edt@aei.ca>
Signed-off-by: Leann Ogasawara <leann.ogasawara@canonical.com>
include/net/bluetooth/hci.h
net/bluetooth/hci_core.c
net/bluetooth/hci_event.c