Bluetooth: Check if mode is supported on getsockopt
authorJoão Paulo Rechi Vita <jprvita@profusion.mobi>
Sat, 1 May 2010 19:15:42 +0000 (16:15 -0300)
committerMarcel Holtmann <marcel@holtmann.org>
Mon, 10 May 2010 07:28:51 +0000 (09:28 +0200)
commit0041ecfa3025d7612fdaab12b2f07c9c3c09f42f
treec0d3012f5fb96a05ed05033270a1fcf4be1c4555
parentbd3c9e255e76ae232d417e3914ca5d80ca3e9485
Bluetooth: Check if mode is supported on getsockopt

Add this check to getsockopt makes possible to fail early instead of
waiting until listen / connect.

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