diff options
author | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2020-01-15 13:02:17 -0800 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2020-01-15 22:28:51 +0100 |
commit | f9a619db7c137b7c2dec0414d8deb8ec762ae8f9 (patch) | |
tree | 0d7fcc9a86dd2d7b45ae49668e387264a8ab1f05 /net/bluetooth | |
parent | f92a8cb569e39e28515e3f9c0ccaa16f874644b7 (diff) |
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>
Diffstat (limited to 'net/bluetooth')
-rw-r--r-- | net/bluetooth/hci_sock.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/net/bluetooth/hci_sock.c b/net/bluetooth/hci_sock.c index 5d0ed28c0d3a..3ae508674ef7 100644 --- a/net/bluetooth/hci_sock.c +++ b/net/bluetooth/hci_sock.c @@ -324,6 +324,12 @@ void hci_send_to_monitor(struct hci_dev *hdev, struct sk_buff *skb) else opcode = cpu_to_le16(HCI_MON_SCO_TX_PKT); break; + case HCI_ISODATA_PKT: + if (bt_cb(skb)->incoming) + opcode = cpu_to_le16(HCI_MON_ISO_RX_PKT); + else + opcode = cpu_to_le16(HCI_MON_ISO_TX_PKT); + break; case HCI_DIAG_PKT: opcode = cpu_to_le16(HCI_MON_VENDOR_DIAG); break; |