Bluetooth: Add wait_queue to wait ack of all sent packets
authorGustavo F. Padovan <padovan@profusion.mobi>
Sat, 1 May 2010 19:15:44 +0000 (16:15 -0300)
committerMarcel Holtmann <marcel@holtmann.org>
Mon, 10 May 2010 07:28:53 +0000 (09:28 +0200)
commit6161c0382bbab883a634d284f7367a88bbe88534
tree86b4de3160054b0507d37a47351260e48073f579
parent1890d36bb556a27684ad29654a9898ab9a5f57ee
Bluetooth: Add wait_queue to wait ack of all sent packets

To guarantee that all packets we sent were received we need to wait for
theirs ack before shutdown the socket.

Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
Reviewed-by: João Paulo Rechi Vita <jprvita@profusion.mobi>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/l2cap.c