Bluetooth: Improve Three-wire UART configuration handling
authorJohan Hedberg <johan.hedberg@intel.com>
Mon, 16 Jul 2012 13:12:18 +0000 (16:12 +0300)
committerGustavo Padovan <gustavo.padovan@collabora.co.uk>
Tue, 17 Jul 2012 17:49:14 +0000 (14:49 -0300)
commitafdc944c1b9604fd0399d490e5bec5e632f731d0
treebfa4863de5b695c8bae9257c33c688dd01b4c560
parentc826ed095d431c91f1d18f9b83b365569fcd977b
Bluetooth: Improve Three-wire UART configuration handling

The configuration request/response messages contain a configuration
field which contains the sliding window size (amount of unacked reliable
packets that can be pending). This patch makes sure that we configure
the correct size (minimum of local and remote values) and use it when
determining whether to send new packets or not.

Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
drivers/bluetooth/hci_h5.c