From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Message-ID: <4C4EA1CB.2050406@nokia.com> Date: Tue, 27 Jul 2010 12:07:23 +0300 From: Ville Tervo MIME-Version: 1.0 To: "linux-bluetooth@vger.kernel.org" CC: "Gustavo F. Padovan" Subject: L2CAP unknown options Content-Type: text/plain; charset=ISO-8859-1; format=flowed Sender: linux-bluetooth-owner@vger.kernel.org List-ID: Hi, I found following problem with bluetooth-next-2.6. Kernel disconnects if remote device replies with "unknown options" result code. I guess in that case a new config req should be sent without unknown option. I didn't check the spec yet. The remote device is Nokia 9300. 2010-07-27 11:44:07.364827 < ACL data: handle 11 flags 0x02 dlen 10 L2CAP(s): Info req: type 2 2010-07-27 11:44:07.365337 < HCI Command: Remote Name Request (0x01|0x0019) plen 10 bdaddr 00:12:37:F0:F1:77 mode 2 clkoffset 0x0000 2010-07-27 11:44:07.367793 > HCI Event: Command Status (0x0f) plen 4 Remote Name Request (0x01|0x0019) status 0x00 ncmd 1 2010-07-27 11:44:07.384797 > HCI Event: Max Slots Change (0x1b) plen 3 handle 11 slots 5 2010-07-27 11:44:07.406820 > ACL data: handle 11 flags 0x02 dlen 12 L2CAP(s): Info rsp: type 2 result 1 Not supported 2010-07-27 11:44:07.406849 < ACL data: handle 11 flags 0x02 dlen 12 L2CAP(s): Connect req: psm 1 scid 0x0040 2010-07-27 11:44:07.431790 > HCI Event: Remote Name Req Complete (0x07) plen 255 status 0x00 bdaddr 00:12:37:F0:F1:77 name 'vt-m' 2010-07-27 11:44:07.433780 > HCI Event: Number of Completed Packets (0x13) plen 5 handle 11 packets 2 2010-07-27 11:44:07.474801 > ACL data: handle 11 flags 0x02 dlen 16 L2CAP(s): Connect rsp: dcid 0x0042 scid 0x0040 result 1 status 2 Connection pending - Authorization pending 2010-07-27 11:44:07.668818 > ACL data: handle 11 flags 0x02 dlen 16 L2CAP(s): Connect rsp: dcid 0x0042 scid 0x0040 result 0 status 0 Connection successful 2010-07-27 11:44:07.668851 < ACL data: handle 11 flags 0x02 dlen 23 L2CAP(s): Config req: dcid 0x0042 flags 0x00 clen 11 RFC 0x00 (Basic) 2010-07-27 11:44:07.669814 > ACL data: handle 11 flags 0x02 dlen 12 L2CAP(s): Config req: dcid 0x0040 flags 0x00 clen 0 2010-07-27 11:44:07.669840 < ACL data: handle 11 flags 0x02 dlen 18 L2CAP(s): Config rsp: scid 0x0042 flags 0x00 result 0 clen 4 MTU 672 2010-07-27 11:44:07.675794 > HCI Event: Number of Completed Packets (0x13) plen 5 handle 11 packets 2 2010-07-27 11:44:07.682822 > ACL data: handle 11 flags 0x02 dlen 19 L2CAP(s): Config rsp: scid 0x0040 flags 0x00 result 3 clen 5 Failure - unknown options RFC QoS 0f 00 42 2010-07-27 11:44:07.682843 < ACL data: handle 11 flags 0x02 dlen 12 L2CAP(s): Disconn req: dcid 0x0042 scid 0x0040 2010-07-27 11:44:07.693823 > ACL data: handle 11 flags 0x02 dlen 12 L2CAP(s): Disconn rsp: dcid 0x0042 scid 0x0040