=========================================
> HCI Event: LE Meta Event (0x3e) plen 6
LE PHY Update Complete (0x0c)
Status: Success (0x00)
Handle: 0
TX PHY: LE 2M (0x02)
RX PHY: LE 2M (0x02)
@ MGMT Event: LE PHY Update Complete (0x002f) plen 12
LE Address: 45:18:F8:CF:23:7E (Resolvable)
Status: Success (0x00)
Updated PHYs: 0x1800
LE 2M TX
LE 2M RX
Reviewed-by: Anupam Roy <anupam.r@samsung.com>
---
monitor/packet.c | 14 ++++++++++++++
1 file changed, 14 insertions(+)
@@ -14304,6 +14304,18 @@ static void mgmt_controller_resume_evt(const void *data, uint16_t size)
mgmt_print_address(data, addr_type);
}
+static void mgmt_le_phy_update_complete_evt(const void *data,
+ uint16_t size)
+{
+ uint8_t address_type = get_u8(data + 6);
+ uint8_t status = get_u8(data + 7);
+ uint32_t selected_phys = get_le32(data + 8);
+
+ mgmt_print_address(data, address_type);
+ mgmt_print_status(status);
+ mgmt_print_phys("Updated PHYs", selected_phys);
+}
+
static const struct mgmt_data mgmt_event_table[] = {
{ 0x0001, "Command Complete",
mgmt_command_complete_evt, 3, false },
@@ -14393,6 +14405,8 @@ static const struct mgmt_data mgmt_event_table[] = {
mgmt_controller_suspend_evt, 1, true },
{ 0x002e, "Controller Resumed",
mgmt_controller_resume_evt, 8, true },
+ { 0x002f, "LE PHY Update Complete",
+ mgmt_le_phy_update_complete_evt, 12, true },
{ }
};