Skip to contentSkip to conversation

Bluetooth: Remove quirk for HCI_VENDOR_PKT filter handling

PATCH In review Marcel Holtmann 1 participant 1 message Oct 9, 2015

Subsystems (2)
lore
Share & tools
lore

Marcel Holtmann

author maintainer
#0 lore raw

PATCH 1/3 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.

---
 net/bluetooth/hci_sock.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
net/bluetooth/hci_sock.c +1 -4
index 9a100c1fd7b5..bad86dfe134f 100644
@@ -120,10 +120,7 @@ static bool is_filtered_packet(struct sock *sk, struct sk_buff *skb)
 	/* Apply filter */
 	flt = &hci_pi(sk)->filter;
 
-	if (bt_cb(skb)->pkt_type == HCI_VENDOR_PKT)
-		flt_type = 0;
-	else
-		flt_type = bt_cb(skb)->pkt_type & HCI_FLT_TYPE_BITS;
+	flt_type = bt_cb(skb)->pkt_type & HCI_FLT_TYPE_BITS;
 
 	if (!test_bit(flt_type, &flt->type_mask))
 		return true;
Signature · 1 line
2.4.3