Subject: Re: Belkin Bluetooth vs aue vs ubt
To: Jason Thorpe <thorpej@shagadelic.org>
From: Stephen Borrill <netbsd@precedence.co.uk>
List: tech-kern
Date: 03/07/2007 21:10:45
On Wed, 7 Mar 2007, Jason Thorpe wrote:
> On Mar 7, 2007, at 12:51 PM, Daniel Carosone wrote:
>
>> On Wed, Mar 07, 2007 at 12:46:42PM -0800, Jason Thorpe wrote:
>>> Should be the other way around!  ubt should avoid matching non-
>>> UDPROTO_BLUETOOTH devices!
>> 
>> No, that's not the problem - ubt doesn't get a chance because aue
>> grabs the device first (and presumably would also for a real aue with
>> the same product id's).
>
> Uh, no, that's not how autoconfig works.
>
> Autoconfig, in the direct configuration case (like what USB does) gives 
> everyone a chance and then takes the highest-priority match (and if all 
> return the same priority, takes the first one, I think).

aue uses:
#define UMATCH_VENDOR_PRODUCT				13

ubt uses:
#define UMATCH_IFACECLASS_IFACESUBCLASS_IFACEPROTO	5

So aue will always win.

-- 
Stephen