Skip to contentSkip to conversation

Bluetooth: Fix clearing HCI_PSCAN flag

PATCH In review [email protected] 2 participants 2 messages Jul 28, 2014

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

PATCH 1/1 Bluetooth: Fix clearing HCI_PSCAN flag

From: Johan Hedberg <[email protected]>

This patch fixes a typo in the hci_cc_write_scan_enable() function where we want to clear the HCI_PSCAN flag if the SCAN_PAGE bit of the HCI command parameter was not set.

---
This one should be applied before the following 5-patch set:
Subject: [PATCH v2 0/5] Bluetooth: Page scan fixes & improvements

 net/bluetooth/hci_event.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
net/bluetooth/hci_event.c +1 -1
index ba26fbfe481a..623501ddd1b8 100644
@@ -317,7 +317,7 @@ static void hci_cc_write_scan_enable(struct hci_dev *hdev, struct sk_buff *skb)
 	if (param & SCAN_PAGE)
 		set_bit(HCI_PSCAN, &hdev->flags);
 	else
-		clear_bit(HCI_ISCAN, &hdev->flags);
+		clear_bit(HCI_PSCAN, &hdev->flags);
 
 done:
 	hci_dev_unlock(hdev);
Signature · 1 line
1.9.3
maintainer
#1 lore raw

Hi Johan,

Quoted 11 lines

This patch fixes a typo in the hci_cc_write_scan_enable() function where we want to clear the HCI_PSCAN flag if the SCAN_PAGE bit of the HCI command parameter was not set.

---
This one should be applied before the following 5-patch set:
Subject: [PATCH v2 0/5] Bluetooth: Page scan fixes & improvements

net/bluetooth/hci_event.c | 2 +-

1 file changed, 1 insertion(+), 1 deletion(-)

patch has been applied to bluetooth-next tree.

Regards

Marcel