From: Ayush Garg <ayush.garg@samsung.com>
To: linux-bluetooth@vger.kernel.org
Cc: anupam.r@samsung.com, nitin.j@samsung.com
Subject: [PATCH BlueZ 8/8] monitor: Add support for LE PHY Update event
Date: Thu, 22 Jul 2021 11:19:51 +0530 [thread overview]
Message-ID: <20210722054951.8291-9-ayush.garg@samsung.com> (raw)
In-Reply-To: <20210722054951.8291-1-ayush.garg@samsung.com>
Verification logs:
=========================================
> 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(+)
diff --git a/monitor/packet.c b/monitor/packet.c
index 52d22ab21..eaa3070de 100644
--- a/monitor/packet.c
+++ b/monitor/packet.c
@@ -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 },
{ }
};
--
2.17.1
prev parent reply other threads:[~2021-07-22 6:01 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CGME20210722055008epcas5p28da6985b690d3bbc564a5957c1b209f4@epcas5p2.samsung.com>
2021-07-22 5:49 ` [PATCH BlueZ 0/8] Support for connection specific LE PHY configuration Ayush Garg
[not found] ` <CGME20210722055009epcas5p25e4997aa7e53cb2a6e3780fdb7301785@epcas5p2.samsung.com>
2021-07-22 5:49 ` [PATCH BlueZ 1/8] doc/device-api: Add Phy property Ayush Garg
2021-07-22 17:33 ` Luiz Augusto von Dentz
[not found] ` <CGME20210722055010epcas5p45a16ff704c37d108a9df0d6c0a1942a8@epcas5p4.samsung.com>
2021-07-22 5:49 ` [PATCH BlueZ 2/8] doc/mgmt-api: Add support for LE PHY Update Complete event Ayush Garg
2021-07-22 14:45 ` Marcel Holtmann
[not found] ` <CGME20210722055011epcas5p15299bfe8f8b8dd58e1354364071608e3@epcas5p1.samsung.com>
2021-07-22 5:49 ` [PATCH BlueZ 3/8] btio: Add BT_IO_PHY option to set le phy options Ayush Garg
[not found] ` <CGME20210722055012epcas5p1bb92b3e31233da03906c4f562b22b4fc@epcas5p1.samsung.com>
2021-07-22 5:49 ` [PATCH BlueZ 4/8] device: Add support for get/set PHY property Ayush Garg
[not found] ` <CGME20210722055013epcas5p350d88f402bbe4c55f1f868dbb2decbaf@epcas5p3.samsung.com>
2021-07-22 5:49 ` [PATCH BlueZ 5/8] adapter: Add support for LE PHY Update Complete event Ayush Garg
[not found] ` <CGME20210722055015epcas5p4db389aa15f16f1577a74ba5ce446919b@epcas5p4.samsung.com>
2021-07-22 5:49 ` [PATCH BlueZ 6/8] client: Add support for LE get/set device PHY in bluetoothctl Ayush Garg
[not found] ` <CGME20210722055016epcas5p267b70f0da3b5c1991d29ca47d685ab6d@epcas5p2.samsung.com>
2021-07-22 5:49 ` [PATCH BlueZ 7/8] device: Save device PHY in storage and read it at init Ayush Garg
[not found] ` <CGME20210722055017epcas5p4da91b311c34a5fb869148b369338ed07@epcas5p4.samsung.com>
2021-07-22 5:49 ` Ayush Garg [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210722054951.8291-9-ayush.garg@samsung.com \
--to=ayush.garg@samsung.com \
--cc=anupam.r@samsung.com \
--cc=linux-bluetooth@vger.kernel.org \
--cc=nitin.j@samsung.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.