Skip to contentSkip to conversation

Bluetooth: Fix Inquiry with RSSI event mask

PATCH In review Johan Hedberg 2 participants 2 messages Apr 26, 2012

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Bluetooth: Fix Inquiry with RSSI event mask

From: Johan Hedberg <[email protected]>

The right bit for "Inquiry with RSSI" is 0x02 and not 0x04 (which means "Read Remote Extended Features Complete").

---
 net/bluetooth/hci_event.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
net/bluetooth/hci_event.c +1 -1
index ec6c195..e3c4c1b 100644
@@ -521,7 +521,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 */
Signature · 1 line
1.7.10
maintainer
#1 lore raw

Hi Johan,

Quoted 7 lines

The right bit for "Inquiry with RSSI" is 0x02 and not 0x04 (which means "Read Remote Extended Features Complete").

---
 net/bluetooth/hci_event.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

patch has been applied to bluetooth and bluetooth-next trees.

Regards

Marcel