Bluetooth: Fix clearing HCI_PSCAN flag
Subsystems (2)
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
@@ -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
Marcel Holtmann
maintainerHi Johan,
Quoted 11 lines
This patch fixes a typo in the
hci_cc_write_scan_enable()function where we want to clear theHCI_PSCANflag if theSCAN_PAGEbit of the HCI command parameter was not set.Signed-off-by Johan Hedberg <[email protected]>---
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