Bluetooth: Add proper shutdown support to SCO sockets
authorMarcel Holtmann <marcel@holtmann.org>
Mon, 15 Jun 2009 22:01:49 +0000 (00:01 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Sat, 22 Aug 2009 21:11:46 +0000 (14:11 -0700)
commitfd0b3ff707dc1f7837079044bd4eca7ed505f70d
treea6e37b21f98ae3a3413ab0829730ba908f8cc446
parentf8f2109d4f6c525f893f6f2901ae62372e83245e
Bluetooth: Add proper shutdown support to SCO sockets

The SCO sockets for Bluetooth audio setup and streaming are missing the
shutdown implementation. This hasn't been a problem so far, but with a
more deeper integration with PulseAudio it is important to shutdown SCO
sockets properly.

Also the Headset profile 1.2 has more detailed qualification tests that
require that SCO and RFCOMM channels are terminated in the right order. A
proper shutdown function is necessary for this.

Based on a report by Johan Hedberg <johan.hedberg@nokia.com>

Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Tested-by: Johan Hedberg <johan.hedberg@nokia.com>
net/bluetooth/sco.c