From owner-freebsd-bluetooth@FreeBSD.ORG Sun May 17 10:21:42 2009 Return-Path: Delivered-To: freebsd-bluetooth@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3EDF3106564A for ; Sun, 17 May 2009 10:21:42 +0000 (UTC) (envelope-from plunky@rya-online.net) Received: from smtp02.one2one.net (smtp02.one2one.net [149.254.192.174]) by mx1.freebsd.org (Postfix) with ESMTP id EBFB18FC15 for ; Sun, 17 May 2009 10:21:41 +0000 (UTC) (envelope-from plunky@rya-online.net) Received: from [127.0.0.1] (helo=localhost) by localhost.t-mobile.co.uk with esmtp (Exim 4.50) id 1M5dUu-00007E-UQ; Sun, 17 May 2009 10:21:37 +0000 Received: from localhost.t-mobile.co.uk ([127.0.0.1]) by localhost (smtpbeckt01 [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 32722-06; Sun, 17 May 2009 11:21:36 +0100 (BST) Received: from [10.215.72.127] (helo=rya-online.net) by localhost.t-mobile.co.uk with smtp (Exim 4.50) id 1M5dUr-00006U-Vm; Sun, 17 May 2009 10:21:36 +0000 Received: (nullmailer pid 3549 invoked by uid 1000); Sun, 17 May 2009 10:20:49 -0000 Date: Sun, 17 May 2009 11:20:48 +0100 (BST) To: Maksim Yevmenkin In-Reply-To: References: <1240386569.369073.696.nullmailer@galant.ukfsn.org> <1242294653.314348.1748.nullmailer@galant.ukfsn.org> <1242322384.832849.4269.nullmailer@galant.ukfsn.org> <1242328962.345875.22296.nullmailer@galant.ukfsn.org> <1242335731.252131.19040.nullmailer@galant.ukfsn.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Message-Id: <1242555649.223847.3574.nullmailer@galant.ukfsn.org> From: Iain Hibbert X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at example.com X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: plunky@rya-online.net X-SA-Exim-Scanned: No (on localhost.t-mobile.co.uk); SAEximRunCond expanded to false Cc: freebsd-bluetooth@freebsd.org Subject: Re: libhci update 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: Sun, 17 May 2009 10:21:42 -0000 Hi Max, more queries - in bt_devany_cb() you should perhaps make sure that the device is an enabled one? - I'm thinking that bt_devopen() should have an options argument, in order to pre-set any options such as TIMESTAMP, DIRECTION etc (even NBIO) which will get around the differences in API for that (BlueZ had a weird thing with not supporting SOL_SOCKET, SO_TIMESTAMP even though Linux does I don't know if they fixed it yet) - in bt_devinquiry() we accept (dev == NULL) to mean any device, should that happen in bt_devopen() too? - along this line I wonder if it is possible open a promiscuous socket (eg as used by hcidump) instead of any particular device? (could be dev==NULL I guess, or a PROMISCUOUS option?) I'm not sure how Linux works but on NetBSD you must explicitly bind to 00:00:00:00:00:00 to get that behaviour (IIRC FreeBSD gives it to you by default but I was paranoid :) regards, iain