mirror of
https://git.kernel.org/pub/scm/bluetooth/bluez.git
synced 2024-12-16 23:45:37 +08:00
monitor: Add LE PHY update complete event decoding
This commit is contained in:
parent
c71c36f036
commit
677a3456af
@ -2763,6 +2763,14 @@ struct bt_hci_evt_le_direct_adv_report {
|
||||
int8_t rssi;
|
||||
} __attribute__ ((packed));
|
||||
|
||||
#define BT_HCI_EVT_LE_PHY_UPDATE_COMPLETE 0x0c
|
||||
struct bt_hci_evt_le_phy_update_complete {
|
||||
uint8_t status;
|
||||
uint16_t handle;
|
||||
uint8_t tx_phy;
|
||||
uint8_t rx_phy;
|
||||
} __attribute__ ((packed));
|
||||
|
||||
#define BT_HCI_EVT_LE_CHAN_SELECT_ALG 0x14
|
||||
struct bt_hci_evt_le_chan_select_alg {
|
||||
uint16_t handle;
|
||||
|
@ -8695,6 +8695,16 @@ static void le_direct_adv_report_evt(const void *data, uint8_t size)
|
||||
packet_hexdump(data + sizeof(*evt), size - sizeof(*evt));
|
||||
}
|
||||
|
||||
static void le_phy_update_complete_evt(const void *data, uint8_t size)
|
||||
{
|
||||
const struct bt_hci_evt_le_phy_update_complete *evt = data;
|
||||
|
||||
print_status(evt->status);
|
||||
print_handle(evt->handle);
|
||||
print_le_phy("TX PHY", evt->tx_phy);
|
||||
print_le_phy("RX PHY", evt->rx_phy);
|
||||
}
|
||||
|
||||
static void le_chan_select_alg_evt(const void *data, uint8_t size)
|
||||
{
|
||||
const struct bt_hci_evt_le_chan_select_alg *evt = data;
|
||||
@ -8769,7 +8779,8 @@ static const struct subevent_data le_meta_event_table[] = {
|
||||
le_enhanced_conn_complete_evt, 30, true },
|
||||
{ 0x0b, "LE Direct Advertising Report",
|
||||
le_direct_adv_report_evt, 1, false },
|
||||
{ 0x0c, "LE PHY Update Complete" },
|
||||
{ 0x0c, "LE PHY Update Complete",
|
||||
le_phy_update_complete_evt, 5, true},
|
||||
{ 0x0d, "LE Extended Advertising Report" },
|
||||
{ 0x0e, "LE Periodic Advertising Sync Established" },
|
||||
{ 0x0f, "LE Periodic Advertising Report" },
|
||||
|
Loading…
Reference in New Issue
Block a user