]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
Bluetooth: Fix Inquiry with RSSI event mask
authorJohan Hedberg <johan.hedberg@intel.com>
Thu, 26 Apr 2012 06:47:46 +0000 (09:47 +0300)
committerGustavo Padovan <gustavo@padovan.org>
Sun, 29 Apr 2012 20:27:43 +0000 (17:27 -0300)
The right bit for "Inquiry with RSSI" is 0x02 and not 0x04 (which means
"Read Remote Extended Features Complete").

Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/hci_event.c

index 7869d41facd22d6bdc0ecca1f75324a8fbe85594..17f23641f93c030c1d3c53b6e209c6f6bfbaf3c0 100644 (file)
@@ -520,7 +520,7 @@ static void hci_setup_event_mask(struct hci_dev *hdev)
        events[5] |= 0x10; /* Synchronous Connection Changed */
 
        if (hdev->features[3] & LMP_RSSI_INQ)
-               events[4] |= 0x04; /* Inquiry Result with RSSI */
+               events[4] |= 0x02; /* Inquiry Result with RSSI */
 
        if (hdev->features[5] & LMP_SNIFF_SUBR)
                events[5] |= 0x20; /* Sniff Subrating */