Bluetooth: Change the way we set ERTM mode as mandatory
authorGustavo F. Padovan <padovan@profusion.mobi>
Thu, 3 Jun 2010 21:43:28 +0000 (18:43 -0300)
committerMarcel Holtmann <marcel@holtmann.org>
Wed, 21 Jul 2010 17:39:07 +0000 (10:39 -0700)
commit85eb53c6f719523dde9e0658823dffd2664d4d1c
treee26bfedce9df120ee6b7e939d8e690c61d2bf859
parent64988868637304330f7df20d08b965592312c531
Bluetooth: Change the way we set ERTM mode as mandatory

If the socket type is SOCK_STREAM we set Enhanced Retransmisson Mode or
Streaming Mode as mandatory. That means that we will close the channel
if the other side doesn't support or request the the mandatory mode.
Basic mode can't be set as mandatory.

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