HID: bt: Wait for ACK on Sent Reports
authorAlan Ott <alan@signal11.us>
Tue, 18 Jan 2011 08:04:38 +0000 (03:04 -0500)
committerJiri Kosina <jkosina@suse.cz>
Fri, 11 Feb 2011 14:05:49 +0000 (15:05 +0100)
commit0825411ade21a39ac63b3e011d092b1f95b5f3f5
treec69a0088e46c93ef1a0916030af3e02c4cce04e9
parent0f69dca20f77dc374b67e17e10b30cec37e778c4
HID: bt: Wait for ACK on Sent Reports

Wait for an ACK from the device before returning from
hidp_output_raw_report(). This way, failures can be returned to the user
application. Also, it prevents ACK/NAK packets from an output packet from
being confused with ACK/NAK packets from an input request packet.

Signed-off-by: Alan Ott <alan@signal11.us>
Acked-by: Gustavo F. Padovan <padovan@profusion.mobi>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
net/bluetooth/hidp/core.c
net/bluetooth/hidp/hidp.h