Skip to contentSkip to conversation

Bluetooth: btintel: improvement: mask vendor events from controller

PATCH In review Amit K Bag 2 participants 2 messages Apr 24, 2019 Bluetooth drivers

lore
Share & tools
lore

Amit K Bag

author
#0 lore raw

PATCH 1/1 Bluetooth: btintel: improvement: mask vendor events from controller

This patch mask unnecessary event notifications from controller to host

---
 drivers/bluetooth/btintel.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/bluetooth/btintel.c +1 -1
index 5270d5513201..7e5cdd37cc1f 100644
@@ -313,7 +313,7 @@ EXPORT_SYMBOL_GPL(btintel_load_ddc_config);
 
 int btintel_set_event_mask(struct hci_dev *hdev, bool debug)
 {
-	u8 mask[8] = { 0x87, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
+	u8 mask[8] = { 0x01, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
 	struct sk_buff *skb;
 	int err;
 
Signature · 1 line
2.7.4
maintainer
#1 lore raw

Hi Amit,

Quoted 12 lines

This patch mask unnecessary event notifications from controller to host

---
drivers/bluetooth/btintel.c | 2 +-

1 file changed, 1 insertion(+), 1 deletion(-)
drivers/bluetooth/btintel.c +0 -0
index 5270d5513201..7e5cdd37cc1f 100644

drivers/bluetooth/btintel.c EXPORT_SYMBOL_GPL(btintel_load_ddc_config); · line 318

Quoted 7 lines
drivers/bluetooth/btintel.c +1 -1
@@ -313,7 +313,7 @@ EXPORT_SYMBOL_GPL(btintel_load_ddc_config);
 
 int btintel_set_event_mask(struct hci_dev *hdev, bool debug)
 {
-	u8 mask[8] = { 0x87, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
+	u8 mask[8] = { 0x01, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
 	struct sk_buff *skb;
 	int err;

so I enabled actually many more events to ensure we get proper output in btmon in case something happens. So you need to be more specific why we want to not enable these events for our hardware.

Regards

Marcel