summaryrefslogtreecommitdiff
path: root/net/bluetooth
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@intel.com>2014-07-28 15:45:31 +0300
committerMarcel Holtmann <marcel@holtmann.org>2014-07-28 16:50:52 +0200
commit204e399003174ee8ceb7606c61daaa7f4e89e794 (patch)
treee66ef603a1857519672b47052110dea67c20caf3 /net/bluetooth
parent6304f8fc398e4c8d2bac884ae2b4467c66620fd1 (diff)
downloadlinux-rpi3-204e399003174ee8ceb7606c61daaa7f4e89e794.tar.gz
linux-rpi3-204e399003174ee8ceb7606c61daaa7f4e89e794.tar.bz2
linux-rpi3-204e399003174ee8ceb7606c61daaa7f4e89e794.zip
Bluetooth: Fix clearing HCI_PSCAN flag
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. Signed-off-by: Johan Hedberg <johan.hedberg@intel.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'net/bluetooth')
-rw-r--r--net/bluetooth/hci_event.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bluetooth/hci_event.c b/net/bluetooth/hci_event.c
index ba26fbfe481a..623501ddd1b8 100644
--- a/net/bluetooth/hci_event.c
+++ b/net/bluetooth/hci_event.c
@@ -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);