OSDN Git Service

Check for LMP version and not HCI revision
authorMarcel Holtmann <marcel@holtmann.org>
Sun, 10 May 2009 04:50:48 +0000 (21:50 -0700)
committerMarcel Holtmann <marcel@holtmann.org>
Sun, 10 May 2009 04:50:48 +0000 (21:50 -0700)
src/adapter.c

index 04d8170..977e507 100644 (file)
@@ -1812,7 +1812,7 @@ static int adapter_setup(struct btd_adapter *adapter, int dd)
        int err;
        char name[249];
 
-       if (dev->hci_rev > 1) {
+       if (dev->lmp_ver > 1) {
                if (dev->features[5] & LMP_SNIFF_SUBR)
                        events[5] |= 0x20;