From: Johan Hedberg Date: Mon, 28 Jul 2014 12:45:31 +0000 (+0300) Subject: Bluetooth: Fix clearing HCI_PSCAN flag X-Git-Tag: v3.17-rc1~106^2~12^2~41^2~1 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=204e399003174ee8ceb7606c61daaa7f4e89e794;p=~emulex%2Finfiniband.git 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 Signed-off-by: Marcel Holtmann --- diff --git a/net/bluetooth/hci_event.c b/net/bluetooth/hci_event.c index ba26fbfe481..623501ddd1b 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);