Skip to content

Commit 8cd4f58

Browse files
committed
Bluetooth: Remove quirk for HCI_VENDOR_PKT filter handling
The HCI_VENDOR_PKT quirk was needed for BPA-100/105 devices that send these messages. Now that there is support for proper diagnostic channel this quirk is no longer needed. Signed-off-by: Marcel Holtmann <marcel@holtmann.org> Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
1 parent 6d2e50d commit 8cd4f58

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

net/bluetooth/hci_sock.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -120,10 +120,7 @@ static bool is_filtered_packet(struct sock *sk, struct sk_buff *skb)
120120
/* Apply filter */
121121
flt = &hci_pi(sk)->filter;
122122

123-
if (bt_cb(skb)->pkt_type == HCI_VENDOR_PKT)
124-
flt_type = 0;
125-
else
126-
flt_type = bt_cb(skb)->pkt_type & HCI_FLT_TYPE_BITS;
123+
flt_type = bt_cb(skb)->pkt_type & HCI_FLT_TYPE_BITS;
127124

128125
if (!test_bit(flt_type, &flt->type_mask))
129126
return true;

0 commit comments

Comments
 (0)