diff options
author | Szymon Janc <szymon.janc@tieto.com> | 2012-12-11 08:51:19 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-02-03 18:21:37 -0600 |
commit | afd2d0e726252844755e85262cdd00ab31fc29ec (patch) | |
tree | 1c6904fe31d7dd06e83524a13d565c0646ad4370 /drivers/net/wireless/ath/ath9k/htc_hst.c | |
parent | 7948bfddbe1bbfe7d25b6a269d1c1d264cf52768 (diff) | |
download | kernel_samsung_aries-afd2d0e726252844755e85262cdd00ab31fc29ec.zip kernel_samsung_aries-afd2d0e726252844755e85262cdd00ab31fc29ec.tar.gz kernel_samsung_aries-afd2d0e726252844755e85262cdd00ab31fc29ec.tar.bz2 |
Bluetooth: Fix sending HCI commands after reset
commit dbccd791a3fbbdac12c33834b73beff3984988e9 upstream.
After sending reset command wait for its command complete event before
sending next command. Some chips sends CC event for command received
before reset if reset was send before chip replied with CC.
This is also required by specification that host shall not send
additional HCI commands before receiving CC for reset.
< HCI Command: Reset (0x03|0x0003) plen 0 [hci0] 18.404612
> HCI Event: Command Complete (0x0e) plen 4 [hci0] 18.405850
Write Extended Inquiry Response (0x03|0x0052) ncmd 1
Status: Success (0x00)
< HCI Command: Read Local Supported Features (0x04|0x0003) plen 0 [hci0] 18.406079
> HCI Event: Command Complete (0x0e) plen 4 [hci0] 18.407864
Reset (0x03|0x0003) ncmd 1
Status: Success (0x00)
< HCI Command: Read Local Supported Features (0x04|0x0003) plen 0 [hci0] 18.408062
> HCI Event: Command Complete (0x0e) plen 12 [hci0] 18.408835
Signed-off-by: Szymon Janc <szymon.janc@tieto.com>
Acked-by: Johan Hedberg <johan.hedberg@intel.com>
Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/htc_hst.c')
0 files changed, 0 insertions, 0 deletions