Skip to content

Commit

Permalink
[Bluetooth] Fix parameter list for event filter command
Browse files Browse the repository at this point in the history
On device initialization the event filters are cleared. In case of
clearing the filters the extra condition type shall be omitted.

Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
  • Loading branch information
Marcel Holtmann committed Sep 9, 2007
1 parent 7c631a6 commit 89f2783
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions net/bluetooth/hci_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ static void hci_init_req(struct hci_dev *hdev, unsigned long opt)
{
struct sk_buff *skb;
__le16 param;
__u8 flt_type;

BT_DBG("%s %ld", hdev->name, opt);

Expand Down Expand Up @@ -233,11 +234,8 @@ static void hci_init_req(struct hci_dev *hdev, unsigned long opt)
/* Optional initialization */

/* Clear Event Filters */
{
struct hci_cp_set_event_flt cp;
cp.flt_type = HCI_FLT_CLEAR_ALL;
hci_send_cmd(hdev, OGF_HOST_CTL, OCF_SET_EVENT_FLT, sizeof(cp), &cp);
}
flt_type = HCI_FLT_CLEAR_ALL;
hci_send_cmd(hdev, OGF_HOST_CTL, OCF_SET_EVENT_FLT, 1, &flt_type);

/* Page timeout ~20 secs */
param = cpu_to_le16(0x8000);
Expand Down

0 comments on commit 89f2783

Please sign in to comment.