Skip to content

Commit

Permalink
Bluetooth: Fix clearing of HCI_PENDING_CLASS flag
Browse files Browse the repository at this point in the history
When doing reset HCI_PENDING_CLASS is one of the flags that should be
cleared (since it's used for a pending HCI command and a reset clear all
pending commands).

Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Acked-by: Marcel Holtmann <marcel@holtmann.org>
  • Loading branch information
Johan Hedberg committed Mar 2, 2012
1 parent 17b02e6 commit 9f8ce96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/bluetooth/hci_event.c
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ static void hci_cc_reset(struct hci_dev *hdev, struct sk_buff *skb)
hci_req_complete(hdev, HCI_OP_RESET, status);

/* Reset all non-persistent flags */
hdev->dev_flags &= ~(BIT(HCI_LE_SCAN));
hdev->dev_flags &= ~(BIT(HCI_LE_SCAN) | BIT(HCI_PENDING_CLASS));

hdev->discovery.state = DISCOVERY_STOPPED;
}
Expand Down

0 comments on commit 9f8ce96

Please sign in to comment.