From owner-freebsd-bluetooth@FreeBSD.ORG Thu Aug 24 05:33:44 2006 Return-Path: X-Original-To: freebsd-bluetooth@freebsd.org Delivered-To: freebsd-bluetooth@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CCA1516A4DA for ; Thu, 24 Aug 2006 05:33:44 +0000 (UTC) (envelope-from bel@orel.ru) Received: from mail.orel.ru (relay.orel.ru [213.59.64.76]) by mx1.FreeBSD.org (Postfix) with ESMTP id 28F3F43D49 for ; Thu, 24 Aug 2006 05:33:43 +0000 (GMT) (envelope-from bel@orel.ru) Received: from [192.168.99.99] (pf1.net.orel.ru [213.59.64.75]) by mail.orel.ru (8.13.4/8.13.4) with ESMTP id k7O5XcA0058161; Thu, 24 Aug 2006 09:33:40 +0400 (MSD) (envelope-from bel@orel.ru) Message-ID: <44ED3A32.6080105@orel.ru> Date: Thu, 24 Aug 2006 09:33:38 +0400 From: Andrew Belashov Organization: ORIS User-Agent: Thunderbird 1.5 (X11/20060123) MIME-Version: 1.0 To: Maksim Yevmenkin References: <44EC4D93.6000603@orel.ru> <44EC91AD.1090405@savvis.net> In-Reply-To: <44EC91AD.1090405@savvis.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Antivirus: Dr.Web (R) for Mail Servers on mail.orel.ru host X-Antivirus-Code: 100000 X-Zombi-Check: on netra2.orel.ru Cc: freebsd-bluetooth@freebsd.org Subject: Re: The bluetooth stack does not work on FreeBSD/sparc64 X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Aug 2006 05:33:44 -0000 Maksim Yevmenkin wrote: > Andrew, > >> # l2control -a bel Read_Channel_List >> L2CAP channels: >> Remote BD_ADDR SCID/ DCID PSM IMTU/ OMTU State >> POCKET_PC 65/ 65 3 0/ 1691 OPEN > > [...] > >> < ACL data: handle 0x0001 flags 0x02 dlen 16 >> L2CAP(s): Config req: dcid 0x0041 flags 0x0000 clen 4 >> MTU 0 >> [hmmm, MTU=0! Why?] > > i think there is a bug in ng_btsocket_rfcomm.c. could you please try to > change ng_btsocket_rfcomm_session_create() function and define local mtu > valiable as u_int16_t instead of int, i.e. > > change > > static int > ng_btsocket_rfcomm_session_create(ng_btsocket_rfcomm_session_p *sp, > struct socket *l2so, bdaddr_p src, bdaddr_p dst, > struct thread *td) > { > ng_btsocket_rfcomm_session_p s = NULL; > struct sockaddr_l2cap l2sa; > struct sockopt l2sopt; > int mtu, error; > > to > > static int > ng_btsocket_rfcomm_session_create(ng_btsocket_rfcomm_session_p *sp, > struct socket *l2so, bdaddr_p src, bdaddr_p dst, > struct thread *td) > { > ng_btsocket_rfcomm_session_p s = NULL; > struct sockaddr_l2cap l2sa; > struct sockopt l2sopt; > int error; > u_int16_t mtu; > > thanks, > max > Yes, this patch solves a problem. Many thanks! I should issue the PR? -- With Best Regards, Andrew Belashov.