Date: Thu, 09 Jan 2014 16:14:12 +0100 From: Hans Petter Selasky <hps@bitfrost.no> To: Adrian Chadd <adrian@freebsd.org>, "freebsd-usb@freebsd.org" <freebsd-usb@freebsd.org> Subject: Re: USB_DEV_BCD_LTEQ() doesn't work Message-ID: <52CEBCC4.605@bitfrost.no> In-Reply-To: <CAJ-VmokvUZk930h_Q=mSvVQ9JNn5KbYG7um1ocg0wzRD=V_NJQ@mail.gmail.com> References: <CAJ-VmokvUZk930h_Q=mSvVQ9JNn5KbYG7um1ocg0wzRD=V_NJQ@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On 01/09/14 16:02, Adrian Chadd wrote: > Hi, > > I'm trying to fix the atheros bluetooth USB matching to match the > ath3k rules and unfortunately I'm hitting a snag. > > eg, in the blacklist: > > - { USB_VPI(0x0cf3, 0x3004, 0) }, > + { USB_VPI(0x0cf3, 0x3004, 0), USB_DEV_BCD_LTEQ(1) }, > > Now, the rule is "if it's in the list, it's blacklisted", and in this > instance, these devices with a bcdDevice of <=1 are blacklisted. > > However, this doesn't at all work. The USB matching code that looks > like it's doing it isn't. > > Ideas? > > Hi, Use both GTEQ and LTEQ to make a range: #define USB_DEV_BCD_GTEQ(lo) /* greater than or equal */ \ .match_flag_dev_lo = 1, .bcdDevice_lo = (lo) #define USB_DEV_BCD_LTEQ(hi) /* less than or equal */ \ .match_flag_dev_hi = 1, .bcdDevice_hi = (hi) --HPS
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?52CEBCC4.605>