Bluetooth: Enter active mode before establishing a SCO link.
authorNick Pelly <npelly@google.com>
Fri, 13 Nov 2009 22:16:32 +0000 (14:16 -0800)
committerArve Hjønnevåg <arve@android.com>
Mon, 8 Feb 2010 23:35:59 +0000 (15:35 -0800)
commit8fd3238575a5410507846838dbb2d4553f3f5aa2
tree71975cce3344022bd1c4345080c235fdc5f6921b
parentdf28bc9c1957170dbf796063853a4a1aee1af6ac
Bluetooth: Enter active mode before establishing a SCO link.

When in sniff mode with a long interval time (1.28s) it can take 4+ seconds to
establish a SCO link. Fix by requesting active mode before requesting SCO
connection. This improves SCO setup time to ~500ms.

Bluetooth headsets that use a long interval time, and exhibit the long SCO
connection time include Motorola H790, HX1 and H17. They have a CSR 2.1 chipset

Verified this behavior and fix with host Bluetooth chipsets: BCM4329 and
TI1271.

Signed-off-by: Nick Pelly <npelly@google.com>
net/bluetooth/hci_conn.c