Bluetooth: monitor: Add support for ISO packets
This adds types for TX/RX ISO packets so the likes of btmon can decode them properly. Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
This commit is contained in:
parent
81d34ecd19
commit
c29e6ffa73
1 changed files with 21 additions and 15 deletions
|
@ -24,6 +24,8 @@
|
||||||
#define BT_MONITOR_VENDOR_DIAG 11
|
#define BT_MONITOR_VENDOR_DIAG 11
|
||||||
#define BT_MONITOR_SYSTEM_NOTE 12
|
#define BT_MONITOR_SYSTEM_NOTE 12
|
||||||
#define BT_MONITOR_USER_LOGGING 13
|
#define BT_MONITOR_USER_LOGGING 13
|
||||||
|
#define BT_MONITOR_ISO_TX_PKT 18
|
||||||
|
#define BT_MONITOR_ISO_RX_PKT 19
|
||||||
#define BT_MONITOR_NOP 255
|
#define BT_MONITOR_NOP 255
|
||||||
|
|
||||||
#define BT_MONITOR_TYPE_PRIMARY 0
|
#define BT_MONITOR_TYPE_PRIMARY 0
|
||||||
|
@ -84,6 +86,10 @@ static inline uint8_t bt_monitor_opcode(struct net_buf *buf)
|
||||||
return BT_MONITOR_ACL_TX_PKT;
|
return BT_MONITOR_ACL_TX_PKT;
|
||||||
case BT_BUF_ACL_IN:
|
case BT_BUF_ACL_IN:
|
||||||
return BT_MONITOR_ACL_RX_PKT;
|
return BT_MONITOR_ACL_RX_PKT;
|
||||||
|
case BT_BUF_ISO_OUT:
|
||||||
|
return BT_MONITOR_ISO_TX_PKT;
|
||||||
|
case BT_BUF_ISO_IN:
|
||||||
|
return BT_MONITOR_ISO_RX_PKT;
|
||||||
default:
|
default:
|
||||||
return BT_MONITOR_NOP;
|
return BT_MONITOR_NOP;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue