Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Bluetooth: monitor: Add support for ISO packets

This enables passing ISO packets to the monitor socket.

Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>

authored by

Luiz Augusto von Dentz and committed by
Marcel Holtmann
f9a619db f92a8cb5

+8
+2
include/net/bluetooth/hci_mon.h
··· 49 49 #define HCI_MON_CTRL_CLOSE 15 50 50 #define HCI_MON_CTRL_COMMAND 16 51 51 #define HCI_MON_CTRL_EVENT 17 52 + #define HCI_MON_ISO_TX_PKT 18 53 + #define HCI_MON_ISO_RX_PKT 19 52 54 53 55 struct hci_mon_new_index { 54 56 __u8 type;
+6
net/bluetooth/hci_sock.c
··· 324 324 else 325 325 opcode = cpu_to_le16(HCI_MON_SCO_TX_PKT); 326 326 break; 327 + case HCI_ISODATA_PKT: 328 + if (bt_cb(skb)->incoming) 329 + opcode = cpu_to_le16(HCI_MON_ISO_RX_PKT); 330 + else 331 + opcode = cpu_to_le16(HCI_MON_ISO_TX_PKT); 332 + break; 327 333 case HCI_DIAG_PKT: 328 334 opcode = cpu_to_le16(HCI_MON_VENDOR_DIAG); 329 335 break;