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>
{
struct sk_buff *skb;
__le16 param;
{
struct sk_buff *skb;
__le16 param;
BT_DBG("%s %ld", hdev->name, opt);
BT_DBG("%s %ld", hdev->name, opt);
/* Optional initialization */
/* Clear Event Filters */
/* 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);
/* Page timeout ~20 secs */
param = cpu_to_le16(0x8000);