OSDN Git Service

hciops: Fix event mask for Inquiry Result with RSSI
authorJohan Hedberg <johan.hedberg@intel.com>
Thu, 26 Apr 2012 06:40:31 +0000 (09:40 +0300)
committerJohan Hedberg <johan.hedberg@intel.com>
Thu, 26 Apr 2012 06:40:36 +0000 (09:40 +0300)
The right value is 0x02 and not 0x04 (which is "Read Remote Extended
Features Complete").

plugins/hciops.c

index 678ca1b..d74f2ea 100644 (file)
@@ -565,7 +565,7 @@ static void set_event_mask(int index)
        }
 
        if (dev->features[3] & LMP_RSSI_INQ)
-               events[4] |= 0x04; /* Inquiry Result with RSSI */
+               events[4] |= 0x02; /* Inquiry Result with RSSI */
 
        if (dev->features[5] & LMP_SNIFF_SUBR)
                events[5] |= 0x20; /* Sniff Subrating */