Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 89f2783d authored by Marcel Holtmann's avatar Marcel Holtmann
Browse files

[Bluetooth] Fix parameter list for event filter command



On device initialization the event filters are cleared. In case of
clearing the filters the extra condition type shall be omitted.

Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
parent 7c631a67
Loading
Loading
Loading
Loading
+3 −5
Original line number Original line Diff line number Diff line
@@ -183,6 +183,7 @@ static void hci_init_req(struct hci_dev *hdev, unsigned long opt)
{
{
	struct sk_buff *skb;
	struct sk_buff *skb;
	__le16 param;
	__le16 param;
	__u8 flt_type;


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


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


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


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